Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timarney committed Jul 18, 2022
1 parent ab8507e commit 09ead76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function media_states( $media_states, $post ): array {
*
* @since 1.23.0
*
* @return boolean data removal value.
* @return bool data removal value.
*/
public function data_removal(): array {
return absint( $this->settings->get_setting( $this->settings::SETTING_NAME_DATA_REMOVAL ) );
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/integration/tests/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function test_media_states_with_active_logo(): void {
*/
public function test_data_removal_on(): void {
$post = self::factory()->post->create_and_get( [] );
$this->settings->update_setting($this->settings::SETTING_NAME_DATA_REMOVAL, true);
$this->settings->update_setting( $this->settings::SETTING_NAME_DATA_REMOVAL, true );
$result = $this->instance->data_removal();
$this->assertEqualSets( true, $result );
}
Expand All @@ -266,7 +266,7 @@ public function test_data_removal_on(): void {
*/
public function test_data_removal_off(): void {
$post = self::factory()->post->create_and_get( [] );
$this->settings->update_setting($this->settings::SETTING_NAME_DATA_REMOVAL, false);
$this->settings->update_setting( $this->settings::SETTING_NAME_DATA_REMOVAL, false );
$result = $this->instance->data_removal();
$this->assertEqualSets( false, $result );
}
Expand Down

0 comments on commit 09ead76

Please sign in to comment.