Passed
Push — master ( f7fdeb...4f4caa )
by Iman
02:35
created
src/Utils/Normalizers/ControllerNormalizer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     private function checkControllerExists(string $ctrlClass): void
28 28
     {
29
-        if (! class_exists($ctrlClass)) {
29
+        if (!class_exists($ctrlClass)) {
30 30
             throw new \InvalidArgumentException("Controller class: [{$ctrlClass}] not found.");
31 31
         }
32 32
     }
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
         }
42 42
 
43 43
         [$ctrlClass, $method] = $ctrlClass;
44
-        if (! method_exists($ctrlClass, $method)) {
45
-            throw new \InvalidArgumentException("'data' method not found on ".$ctrlClass);
44
+        if (!method_exists($ctrlClass, $method)) {
45
+            throw new \InvalidArgumentException("'data' method not found on " . $ctrlClass);
46 46
         }
47 47
     }
48 48
 
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
         // We decide to call data method on widget object by default.
56 56
         // If the user has explicitly declared controller class path on widget
57 57
         // then we decide to call data method on that instead.
58
-        if (! property_exists($widget, 'controller')) {
58
+        if (!property_exists($widget, 'controller')) {
59 59
             return [[$widget, 'data'], get_class($widget)];
60 60
         }
61 61
 
62 62
         if (is_string($widget->controller)) {
63
-            if (! str_contains($widget->controller, '@')) {
64
-                return [$widget->controller.'@data', $widget->controller];
63
+            if (!str_contains($widget->controller, '@')) {
64
+                return [$widget->controller . '@data', $widget->controller];
65 65
             }
66 66
             $widget->controller = explode('@', $widget->controller);
67 67
         }
Please login to merge, or discard this patch.