@@ -177,6 +177,9 @@ |
||
177 | 177 | $queue->add_all( $data_to_enqueue ); |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param Queue $queue |
|
182 | + */ |
|
180 | 183 | function enqueue_action( $current_filter, $args, $queue ) { |
181 | 184 | // don't enqueue an action during the outbound http request - this prevents recursion |
182 | 185 | if ( Settings::is_sending() ) { |
@@ -135,6 +135,9 @@ discard block |
||
135 | 135 | self::set_is_sending( null ); |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param boolean|null $is_importing |
|
140 | + */ |
|
138 | 141 | static function set_importing( $is_importing ) { |
139 | 142 | // set to NULL to revert to WP_IMPORTING, the standard behavior |
140 | 143 | self::$is_importing = $is_importing; |
@@ -165,6 +168,9 @@ discard block |
||
165 | 168 | return (bool) self::$is_syncing || ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST ); |
166 | 169 | } |
167 | 170 | |
171 | + /** |
|
172 | + * @param boolean|null $is_syncing |
|
173 | + */ |
|
168 | 174 | static function set_is_syncing( $is_syncing ) { |
169 | 175 | self::$is_syncing = $is_syncing; |
170 | 176 | } |
@@ -173,6 +179,9 @@ discard block |
||
173 | 179 | return (bool) self::$is_sending; |
174 | 180 | } |
175 | 181 | |
182 | + /** |
|
183 | + * @param boolean|null $is_sending |
|
184 | + */ |
|
176 | 185 | static function set_is_sending( $is_sending ) { |
177 | 186 | self::$is_sending = $is_sending; |
178 | 187 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @param string $vendorPath Path to the vendor directory. |
161 | 161 | * @param string $basePath Base Path. |
162 | 162 | * |
163 | - * @return array $classMap |
|
163 | + * @return string $classMap |
|
164 | 164 | */ |
165 | 165 | private function getClassMap( array $autoloads, Filesystem $filesystem, $vendorPath, $basePath ) { |
166 | 166 | $blacklist = null; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * Generate the PHP that will be used in the autoload_classmap_package.php files. |
226 | 226 | * |
227 | - * @param srting $classMap class map array string that is to be written out to the file. |
|
227 | + * @param string $classMap class map array string that is to be written out to the file. |
|
228 | 228 | * |
229 | 229 | * @return string |
230 | 230 | */ |