Skip to content

Commit f9eda61

Browse files
authored
Fix phpcs
1 parent e7c1f7c commit f9eda61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

classes/Collector_Assets.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ protected static function get_script_modules(): ?array {
283283
$reflector = new ReflectionClass( $modules );
284284

285285
$get_marked_for_enqueue = $reflector->getMethod( 'get_marked_for_enqueue' );
286-
(\PHP_VERSION_ID < 80100) and $get_marked_for_enqueue->setAccessible( true );
286+
( \PHP_VERSION_ID < 80100 ) && $get_marked_for_enqueue->setAccessible( true );
287287

288288
$get_dependencies = $reflector->getMethod( 'get_dependencies' );
289-
(\PHP_VERSION_ID < 80100) and $get_dependencies->setAccessible( true );
289+
( \PHP_VERSION_ID < 80100 ) && $get_dependencies->setAccessible( true );
290290

291291
$get_src = $reflector->getMethod( 'get_src' );
292-
(\PHP_VERSION_ID < 80100) and $get_src->setAccessible( true );
292+
( \PHP_VERSION_ID < 80100 ) && $get_src->setAccessible( true );
293293

294294
/**
295295
* @var array<string, array<string, mixed>> $enqueued
@@ -365,9 +365,9 @@ protected static function get_script_modules(): ?array {
365365
}
366366

367367
// @todo check isPrivate before changing visibility back
368-
(\PHP_VERSION_ID < 80100) and $get_marked_for_enqueue->setAccessible( false );
369-
(\PHP_VERSION_ID < 80100) and $get_dependencies->setAccessible( false );
370-
(\PHP_VERSION_ID < 80100) and $get_src->setAccessible( false );
368+
( \PHP_VERSION_ID < 80100 ) && $get_marked_for_enqueue->setAccessible( false );
369+
( \PHP_VERSION_ID < 80100 ) && $get_dependencies->setAccessible( false );
370+
( \PHP_VERSION_ID < 80100 ) && $get_src->setAccessible( false );
371371

372372
return $sources;
373373
}

0 commit comments

Comments
 (0)