Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 18, 2023
1 parent 74a9e01 commit 15ba5d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions extensions/mentions/src/TagExtender.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/

namespace Flarum\Mentions;

use Flarum\Api\Controller;
Expand Down
2 changes: 1 addition & 1 deletion framework/core/src/Extend/Conditional.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function whenExtensionEnabled(string $extensionId, callable|string $exten
public function whenExtensionDisabled(string $extensionId, callable|string $extenders): self
{
return $this->when(function (ExtensionManager $extensions) use ($extensionId) {
return !$extensions->isEnabled($extensionId);
return ! $extensions->isEnabled($extensionId);
}, $extenders);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function conditional_enabled_extension_enabled_applies_invokable_class()

$this->assertArrayHasKey('customConditionalAttribute', $payload['data']['attributes']);
}

/** @test */
public function conditional_does_not_instantiate_extender_if_condition_is_false_using_callable()
{
Expand Down

0 comments on commit 15ba5d4

Please sign in to comment.