mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Apply fixes from StyleCI
This commit is contained in:
@@ -19,8 +19,6 @@ use Illuminate\Contracts\Container\Container;
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @package Flarum\Extend
|
||||
*/
|
||||
class Conditional implements ExtenderInterface
|
||||
{
|
||||
|
@@ -144,7 +144,7 @@ class ConditionalTest extends TestCase
|
||||
$this->extend(
|
||||
(new Extend\Conditional())
|
||||
->when(function (?ExtensionManager $extensions) {
|
||||
if (!$extensions) {
|
||||
if (! $extensions) {
|
||||
throw new Exception('ExtensionManager not injected');
|
||||
}
|
||||
}, [
|
||||
|
Reference in New Issue
Block a user