Skip to content

Commit

Permalink
More PHPCS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Jan 8, 2024
1 parent 3be7c2b commit 22aea03
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/Telemetry/Contracts/Abstract_Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ abstract class Abstract_Subscriber implements Subscriber_Interface {
public function __construct( ContainerInterface $container ) {
$this->container = $container;
}

}
1 change: 0 additions & 1 deletion src/Telemetry/Contracts/Subscriber_Interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ interface Subscriber_Interface {
* @return void
*/
public function register();

}
1 change: 0 additions & 1 deletion src/Telemetry/Events/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,4 @@ protected function get_url() {
*/
return apply_filters( 'stellarwp/telemetry/' . Config::get_hook_prefix() . 'events_url', $events_url );
}

}
2 changes: 0 additions & 2 deletions src/Telemetry/Exit_Interview/Exit_Interview_Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use StellarWP\Telemetry\Contracts\Abstract_Subscriber;
use StellarWP\Telemetry\Config;
use StellarWP\Telemetry\Core;
use StellarWP\Telemetry\Opt_In\Status;
use StellarWP\Telemetry\Telemetry\Telemetry;

Expand Down Expand Up @@ -161,5 +160,4 @@ public function plugin_action_links( $links, $plugin_file ) {

return array_merge( $before_deactivate, $after_deactivate );
}

}
1 change: 0 additions & 1 deletion src/Telemetry/Exit_Interview/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use StellarWP\Telemetry\Admin\Resources;
use StellarWP\Telemetry\Config;
use StellarWP\Telemetry\Contracts\Template_Interface;
use StellarWP\Telemetry\Core;

/**
* The primary class for rendering the "Exit Interview" modal on plugin deactivation.
Expand Down
2 changes: 1 addition & 1 deletion src/Telemetry/Opt_In/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function get() {

$status = self::STATUS_INACTIVE;
$option = $this->get_option();
$plugins = isset( $option['plugins'] ) ? $option['plugins'] : [];
$plugins = $option['plugins'] ?? [];

if ( count( $plugins ) === 0 ) {
$status = self::STATUS_INACTIVE;
Expand Down

0 comments on commit 22aea03

Please sign in to comment.