Skip to content

Commit

Permalink
fix phpcs ruleset notice
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jun 7, 2023
1 parent be23fb2 commit a0edcd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion includes/admin/class-review-notice.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function show() {
* @return int
*/
private function time_since_first_use() {
$options = get_option( 'mc4wp', array( ) );
$options = get_option( 'mc4wp', array() );
if ( ! is_array( $options ) ) {
$options = array();
}
Expand Down
8 changes: 2 additions & 6 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<file>integrations/</file>
<file>config/</file>

<config name="minimum_supported_wp_version" value="4.6"/>

<exclude-pattern>**/*.js</exclude-pattern>

<rule ref="WordPress-Core">
Expand All @@ -31,12 +33,6 @@
</properties>
</rule>

<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="4.6"/>
</properties>
</rule>

<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false"/>
Expand Down
1 change: 0 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

echo 'Welcome to the Mailchimp for WordPress Test Suite' . PHP_EOL;


require __DIR__ . '/../vendor/antecedent/patchwork/Patchwork.php';
require __DIR__ . '/mock.php';
require __DIR__ . '/../vendor/autoload.php';

0 comments on commit a0edcd5

Please sign in to comment.