Merge pull request #41 from GaryJones/GaryJones/asset-pipeline #107
ci.yml
on: push
Lint and code standards
29s
Matrix: test
Annotations
20 warnings
|
WP master on PHP 8.5:
plugin-slug/src/Plugin.php#L83
Escaped Mutant for Mutator "Foreach_":
@@ @@
* @SInCE 0.1.0
*/
public function register_admin_pages(): void {
- foreach ( $this->getConfigKey( 'Settings', 'submenu_pages' ) as $page ) {
- $hook_suffix = add_submenu_page(
+ foreach ([] as $page) {
+ $hook_suffix = add_submenu_page(
$page['parent_slug'],
$page['page_title'](),
$page['menu_title'](),
@@ @@
require $page['view'];
}
);
-
- if ( $hook_suffix ) {
+ if ( $hook_suffix ) {
$this->page_hooks[] = $hook_suffix;
}
- }
+ }
}
/**
|
|
WP master on PHP 8.5:
plugin-slug/src/Plugin.php#L82
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
*
* @SInCE 0.1.0
*/
- public function register_admin_pages(): void {
+ protected function register_admin_pages(): void {
foreach ( $this->getConfigKey( 'Settings', 'submenu_pages' ) as $page ) {
$hook_suffix = add_submenu_page(
$page['parent_slug'],
|
|
WP master on PHP 8.5:
plugin-slug/src/Plugin.php#L71
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
public function run(): void {
add_action( 'admin_menu', $this->register_admin_pages( ... ) );
add_action( 'admin_init', $this->register_settings( ... ) );
- add_action( 'admin_enqueue_scripts', $this->enqueue_admin_assets( ... ) );
+
}
/**
|
|
WP master on PHP 8.5:
plugin-slug/src/Plugin.php#L70
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
*/
public function run(): void {
add_action( 'admin_menu', $this->register_admin_pages( ... ) );
- add_action( 'admin_init', $this->register_settings( ... ) );
+
add_action( 'admin_enqueue_scripts', $this->enqueue_admin_assets( ... ) );
}
|
|
WP master on PHP 8.5:
plugin-slug/src/Plugin.php#L69
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
* @SInCE 0.1.0
*/
public function run(): void {
- add_action( 'admin_menu', $this->register_admin_pages( ... ) );
+
add_action( 'admin_init', $this->register_settings( ... ) );
add_action( 'admin_enqueue_scripts', $this->enqueue_admin_assets( ... ) );
}
|
|
WP master on PHP 8.5:
plugin-slug/src/Plugin.php#L68
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
*
* @SInCE 0.1.0
*/
- public function run(): void {
+ protected function run(): void {
add_action( 'admin_menu', $this->register_admin_pages( ... ) );
add_action( 'admin_init', $this->register_settings( ... ) );
add_action( 'admin_enqueue_scripts', $this->enqueue_admin_assets( ... ) );
|
|
WP master on PHP 8.5:
plugin-slug/src/Plugin.php#L60
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
* @param ConfigInterface $config Config to parametrize the object.
*/
public function __construct( ConfigInterface $config ) {
- $this->processConfig( $config );
+
}
/**
|
|
WP master on PHP 8.5:
plugin-slug/src/Foo.php#L40
Escaped Mutant for Mutator "TrueValue":
@@ @@
* @return true
*/
public function is_true(): bool {
- return true;
+ return false;
}
}
|
|
WP master on PHP 8.5:
plugin-slug/src/Foo.php#L39
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
*
* @return true
*/
- public function is_true(): bool {
+ protected function is_true(): bool {
return true;
}
}
|
|
WP master on PHP 8.5:
plugin-slug/src/Foo.php#L28
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
*
* @return string Identification of the method being called.
*/
- public function bar(): string {
+ protected function bar(): string {
return 'Foo::bar()';
}
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Plugin.php#L83
Escaped Mutant for Mutator "Foreach_":
@@ @@
* @SInCE 0.1.0
*/
public function register_admin_pages(): void {
- foreach ( $this->getConfigKey( 'Settings', 'submenu_pages' ) as $page ) {
- $hook_suffix = add_submenu_page(
+ foreach ([] as $page) {
+ $hook_suffix = add_submenu_page(
$page['parent_slug'],
$page['page_title'](),
$page['menu_title'](),
@@ @@
require $page['view'];
}
);
-
- if ( $hook_suffix ) {
+ if ( $hook_suffix ) {
$this->page_hooks[] = $hook_suffix;
}
- }
+ }
}
/**
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Plugin.php#L82
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
*
* @SInCE 0.1.0
*/
- public function register_admin_pages(): void {
+ protected function register_admin_pages(): void {
foreach ( $this->getConfigKey( 'Settings', 'submenu_pages' ) as $page ) {
$hook_suffix = add_submenu_page(
$page['parent_slug'],
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Plugin.php#L71
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
public function run(): void {
add_action( 'admin_menu', $this->register_admin_pages( ... ) );
add_action( 'admin_init', $this->register_settings( ... ) );
- add_action( 'admin_enqueue_scripts', $this->enqueue_admin_assets( ... ) );
+
}
/**
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Plugin.php#L70
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
*/
public function run(): void {
add_action( 'admin_menu', $this->register_admin_pages( ... ) );
- add_action( 'admin_init', $this->register_settings( ... ) );
+
add_action( 'admin_enqueue_scripts', $this->enqueue_admin_assets( ... ) );
}
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Plugin.php#L69
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
* @SInCE 0.1.0
*/
public function run(): void {
- add_action( 'admin_menu', $this->register_admin_pages( ... ) );
+
add_action( 'admin_init', $this->register_settings( ... ) );
add_action( 'admin_enqueue_scripts', $this->enqueue_admin_assets( ... ) );
}
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Plugin.php#L68
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
*
* @SInCE 0.1.0
*/
- public function run(): void {
+ protected function run(): void {
add_action( 'admin_menu', $this->register_admin_pages( ... ) );
add_action( 'admin_init', $this->register_settings( ... ) );
add_action( 'admin_enqueue_scripts', $this->enqueue_admin_assets( ... ) );
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Plugin.php#L60
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
* @param ConfigInterface $config Config to parametrize the object.
*/
public function __construct( ConfigInterface $config ) {
- $this->processConfig( $config );
+
}
/**
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Foo.php#L40
Escaped Mutant for Mutator "TrueValue":
@@ @@
* @return true
*/
public function is_true(): bool {
- return true;
+ return false;
}
}
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Foo.php#L39
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
*
* @return true
*/
- public function is_true(): bool {
+ protected function is_true(): bool {
return true;
}
}
|
|
WP 6.9 on PHP 8.4:
plugin-slug/src/Foo.php#L28
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
*
* @return string Identification of the method being called.
*/
- public function bar(): string {
+ protected function bar(): string {
return 'Foo::bar()';
}
|