@@ -29,8 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | return |
| 31 | 31 | \is_int($time) ? |
| 32 | - \Carbon\Carbon::createFromTimestamp($time, $tz) : |
|
| 33 | - new \Carbon\Carbon($time, $tz); |
|
| 32 | + \Carbon\Carbon::createFromTimestamp($time, $tz) : new \Carbon\Carbon($time, $tz); |
|
| 34 | 33 | } |
| 35 | 34 | |
| 36 | 35 | /** |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * @param array $args |
| 43 | 43 | * @return mixed |
| 44 | 44 | */ |
| 45 | - function (string $methodName, ...$args) { |
|
| 45 | + function(string $methodName, ...$args) { |
|
| 46 | 46 | if (\method_exists($this, $methodName)) { |
| 47 | 47 | return $this->$methodName(...$args); |
| 48 | 48 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | /** |
| 137 | 137 | * @return mixed |
| 138 | 138 | */ |
| 139 | - function () use ($propertyName) { |
|
| 139 | + function() use ($propertyName) { |
|
| 140 | 140 | if (\property_exists($this, $propertyName)) { |
| 141 | 141 | $class = new \ReflectionClass(typeOf($this)); |
| 142 | 142 | $property = $class->getProperty($propertyName); |