Skip to content

Commit

Permalink
fix: new pint lints
Browse files Browse the repository at this point in the history
  • Loading branch information
arzola committed Oct 9, 2024
1 parent 477f9d7 commit 8bb5ff6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Services/MenuManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MenuManager

public function registerMenus(): void
{
if(!is_main_site() && !is_network_admin()) {
if (!is_main_site() && !is_network_admin()) {
return;
}
add_menu_page(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use PressbooksMultiInstitution\Actions\InstitutionalManagerDashboard;

use Tests\TestCase;
use Tests\Traits\CreatesModels;

Expand Down
1 change: 0 additions & 1 deletion tests/Feature/Support/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Tests\Feature\Support;

use Tests\TestCase;

use Tests\Traits\CreatesModels;

use function PressbooksMultiInstitution\Support\get_institution_by_manager;
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/Assertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function assertHasCallbackAction(string $hook, string $expectedClass):

$closure = new ReflectionFunction($callback['function']);

if($closure->getClosureScopeClass()?->getName() === $expectedClass) {
if ($closure->getClosureScopeClass()?->getName() === $expectedClass) {
$hasHandler = true;

break;
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/CreatesModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function newBook(array $properties = []): int

$blog = $this->factory()->blog->create($properties);

if(!isset($properties['no_collector'])) {
if (!isset($properties['no_collector'])) {
DataCollector::init()->copyBookMetaIntoSiteTable($blog);
}

Expand Down

0 comments on commit 8bb5ff6

Please sign in to comment.