Passed
Pull Request — master (#1115)
by Maxim
22:29
created
src/Boot/src/BootloadManager/Checker/ClassExistsChecker.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
     /**
14 14
      * @throws ClassNotFoundException
15 15
      */
16
-    public function canInitialize(BootloaderInterface|string $bootloader, ?BootloadConfig $config = null): bool
16
+    public function canInitialize(BootloaderInterface | string $bootloader, ?BootloadConfig $config = null): bool
17 17
     {
18
-        if (!\is_string($bootloader)) {
18
+        if (!\is_string($bootloader)){
19 19
             return true;
20 20
         }
21 21
 
22
-        if (!\class_exists($bootloader)) {
22
+        if (!\class_exists($bootloader)){
23 23
             throw new ClassNotFoundException(\sprintf('Bootloader class `%s` does not exist.', $bootloader));
24 24
         }
25 25
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,13 @@
 block discarded – undo
15 15
      */
16 16
     public function canInitialize(BootloaderInterface|string $bootloader, ?BootloadConfig $config = null): bool
17 17
     {
18
-        if (!\is_string($bootloader)) {
18
+        if (!\is_string($bootloader))
19
+        {
19 20
             return true;
20 21
         }
21 22
 
22
-        if (!\class_exists($bootloader)) {
23
+        if (!\class_exists($bootloader))
24
+        {
23 25
             throw new ClassNotFoundException(\sprintf('Bootloader class `%s` does not exist.', $bootloader));
24 26
         }
25 27
 
Please login to merge, or discard this patch.