1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 00:47:00 +02:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2023-10-11 11:15:11 +00:00
parent 198229b0a9
commit 3aa604eb25
2 changed files with 1 additions and 3 deletions

View File

@@ -19,8 +19,6 @@ use Illuminate\Contracts\Container\Container;
* *
* This is useful for applying extenders only if certain conditions are met, * This is useful for applying extenders only if certain conditions are met,
* such as the presence of an enabled extension or a specific configuration setting. * such as the presence of an enabled extension or a specific configuration setting.
*
* @package Flarum\Extend
*/ */
class Conditional implements ExtenderInterface class Conditional implements ExtenderInterface
{ {

View File

@@ -144,7 +144,7 @@ class ConditionalTest extends TestCase
$this->extend( $this->extend(
(new Extend\Conditional()) (new Extend\Conditional())
->when(function (?ExtensionManager $extensions) { ->when(function (?ExtensionManager $extensions) {
if (!$extensions) { if (! $extensions) {
throw new Exception('ExtensionManager not injected'); throw new Exception('ExtensionManager not injected');
} }
}, [ }, [