Skip to content

Commit

Permalink
Fix linting violations using php lint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acicovic committed Dec 13, 2024
1 parent 4430d3e commit 9ff845c
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initialize Parse.ly option before registering the setting ([#2001](https://github.com/Parsely/wp-parsely/pull/2001))


## [3.11.0](https://github.com/Parsely/wp-parsely/compare/3.10.0...3.11.0) - 2023-11-13

### Added
Expand Down
1 change: 0 additions & 1 deletion src/@types/assets/window.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,4 @@ declare global {
};
};
}

}
1 change: 0 additions & 1 deletion src/Telemetry/Tracks/class-tracks-pixel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Parsely\Utils\Utils;
use WP_Error;


/**
* Handles all operations related to the Tracks pixel.
*
Expand Down
1 change: 0 additions & 1 deletion src/content-helper/common/class-content-helper-feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ abstract public static function get_style_id(): string;
*/
abstract public function run(): void;


/**
* Examines filters and conditions to determine whether the feature can be
* enabled.
Expand Down
2 changes: 0 additions & 2 deletions src/content-helper/common/components/input-range/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,4 @@
}
}
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
}
}


// Multi-percentage bar.
div.multi-percentage-bar {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
}
}


.related-posts-list {
display: flex;
padding: to_rem(6px) 0 var(--grid-unit-20) 0;
Expand Down
2 changes: 0 additions & 2 deletions src/rest-api/content-helper/class-endpoint-smart-linking.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ public function get_smart_links( WP_REST_Request $request ): WP_REST_Response {
return new WP_REST_Response( array( 'data' => $response ), 200 );
}


/**
* API Endpoint: POST /smart-linking/{post_id}/add.
*
Expand Down Expand Up @@ -475,7 +474,6 @@ public function set_smart_links( WP_REST_Request $request ): WP_REST_Response {
return new WP_REST_Response( array( 'data' => $response ), 200 );
}


/**
* API Endpoint: POST /smart-linking/url-to-post-type.
*
Expand Down
1 change: 0 additions & 1 deletion src/rest-api/settings/class-base-settings-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ protected function get_default( array $keys ) {
return $current; // Return default value for valid key path.
}


/**
* Gets the specifications for nested settings based on a composite key.
*
Expand Down
1 change: 0 additions & 1 deletion src/services/class-base-api-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ abstract class Base_API_Service {
*/
private $parsely;


/**
* Initializes the class.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ public function call( array $args = array() ) {
return $this->request( 'GET', $query_args );
}


/**
* Appends multiple parameters to the URL.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ public function test_parsely_stats_column_visibility_on_empty_plugin_options():
self::assertNotContains( self::$parsely_stats_column_header, $this->get_admin_columns() );
}


/**
* Verifies Parse.ly Stats column visibility.
*
Expand Down Expand Up @@ -503,7 +502,6 @@ public function test_content_of_parsely_stats_column_on_valid_posts(): void {
);
}


/**
* Verifies content of Parse.ly Stats column.
*
Expand Down Expand Up @@ -768,7 +766,6 @@ private function mock_parsely_stats_response( ?array $return_value ): Post_List_
return $obj;
}


/**
* Verifies Parse.ly API call and enqueued status of Parse.ly Stats script.
*
Expand Down Expand Up @@ -1201,7 +1198,6 @@ public function test_parsely_stats_response_on_valid_post_type_and_having_data_f
);
}


/**
* Verifies Parse.ly Stats response.
*
Expand Down
1 change: 0 additions & 1 deletion tests/Integration/RestAPI/BaseAPIControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ public function test_register_multiple_endpoints(): void {
->method( 'get_endpoint_slug' )
->willReturn( 'test2' );


$this->test_controller->testable_register_endpoints( array( $endpoint1, $endpoint2 ) ); // @phpstan-ignore-line

$endpoints = $this->test_controller->get_endpoints();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ public function test_is_available_to_current_user_returns_error_if_no_permission
self::assertInstanceOf( WP_Error::class, $this->get_endpoint()->is_available_to_current_user( new WP_REST_Request() ) );
}


/**
* Tests that the endpoint is not available to the current user, since the user is not logged in.
*
Expand Down
1 change: 0 additions & 1 deletion tests/Integration/UI/SettingsPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ function () use ( $badge_options ) {
self::expectOutputContains( $expected_html );
}


/**
* Mocks a success response from the API credentials validation endpoint.
*
Expand Down
1 change: 0 additions & 1 deletion wp-parsely.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
// Load Telemetry classes.
require_once __DIR__ . '/src/Telemetry/telemetry-init.php';


add_action( 'plugins_loaded', __NAMESPACE__ . '\\parsely_initialize_plugin' );
/**
* Registers the basic classes to initialize the plugin.
Expand Down

0 comments on commit 9ff845c

Please sign in to comment.