Passed
Push — master ( db2d78...4bbc8c )
by Sebastian
03:26
created
src/NamedClosure.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public static function fromClosure(Closure $closure, $origin) : NamedClosure
76 76
     {
77
-        if(is_object($origin)) {
77
+        if (is_object($origin)) {
78 78
             $origin = get_class($origin);
79 79
         }
80 80
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param string|object $origin Optional origin. If not specified, the object and method name are used instead.
88 88
      * @return NamedClosure
89 89
      */
90
-    public static function fromObject(object $object, string $method, $origin='') : NamedClosure
90
+    public static function fromObject(object $object, string $method, $origin = '') : NamedClosure
91 91
     {
92 92
         return self::fromArray(array($object, $method), $origin);
93 93
     }
@@ -97,11 +97,11 @@  discard block
 block discarded – undo
97 97
      * @param string|object $origin
98 98
      * @return NamedClosure
99 99
      */
100
-    public static function fromArray(array $callback, $origin='') : NamedClosure
100
+    public static function fromArray(array $callback, $origin = '') : NamedClosure
101 101
     {
102
-        if(empty($origin)) {
102
+        if (empty($origin)) {
103 103
             $origin = ConvertHelper::callback2string($callback);
104
-        } else if(is_object($origin)) {
104
+        } else if (is_object($origin)) {
105 105
             $origin = get_class($origin);
106 106
         }
107 107
 
Please login to merge, or discard this patch.