Passed
Push — master ( bc35bb...9630a7 )
by Caen
03:22 queued 11s
created
packages/framework/src/Foundation/Concerns/ManagesExtensions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             throw new BadMethodCallException('Cannot register an extension after the Kernel has been booted.');
40 40
         }
41 41
 
42
-        if (! is_subclass_of($extension, HydeExtension::class)) {
42
+        if (!is_subclass_of($extension, HydeExtension::class)) {
43 43
             // We want to make sure that the extension class extends the HydeExtension class,
44 44
             // so that we won't have to check the methods we need to call exist later on.
45 45
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function getExtension(string $extension): HydeExtension
65 65
     {
66
-        if (! isset($this->extensions[$extension])) {
66
+        if (!isset($this->extensions[$extension])) {
67 67
             throw new InvalidArgumentException("Extension [$extension] is not registered.");
68 68
         }
69 69
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /** @return array<class-string<\Hyde\Pages\Concerns\HydePage>> */
96 96
     public function getRegisteredPageClasses(): array
97 97
     {
98
-        return array_unique(array_merge(...array_map(function (string $extension): array {
98
+        return array_unique(array_merge(...array_map(function(string $extension): array {
99 99
             /** @var <class-string<\Hyde\Foundation\Concerns\HydeExtension>> $extension */
100 100
             return $extension::getPageClasses();
101 101
         }, $this->getRegisteredExtensions())));
Please login to merge, or discard this patch.