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:
@@ -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
|
||||||
{
|
{
|
||||||
|
@@ -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');
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
|
Reference in New Issue
Block a user