PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | vendor/jetpack-autoloader/class-version-loader.php +22 -2 13.7.216.3-a.1 View file →
@@ -4,9 +4,9 @@
4 4 *
5 5 * @package automattic/jetpack-autoloader
6 6 */
7 7
8 -namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ13_7\al3_0_9;
8 +namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ16_3_a_1\al6_0_0;
9 9
10 10 // phpcs:ignore
11 11
12 12 /**
@@ -57,8 +57,28 @@
57 57 $this->filemap = $filemap;
58 58 }
59 59
60 60 /**
61 + * Fetch the classmap.
62 + *
63 + * @since 3.1.0
64 + * @return array<string, array>
65 + */
66 + public function get_class_map() {
67 + return $this->classmap;
68 + }
69 +
70 + /**
71 + * Fetch the psr-4 mappings.
72 + *
73 + * @since 3.1.0
74 + * @return array<string, array>
75 + */
76 + public function get_psr4_map() {
77 + return $this->psr4_map;
78 + }
79 +
80 + /**
61 81 * Finds the file path for the given class.
62 82 *
63 83 * @param string $class_name The class to find.
64 84 *
@@ -122,9 +142,9 @@
122 142 *
123 143 * @return array|null $data The version and path path to the file if found, null otherwise.
124 144 */
125 145 private function find_psr4_file( $class_name ) {
126 - if ( ! isset( $this->psr4_map ) ) {
146 + if ( empty( $this->psr4_map ) ) {
127 147 return null;
128 148 }
129 149
130 150 // Don't bother with classes that have no namespace.