@@ -74,7 +74,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |