@@ -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); |
@@ -38,8 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | return |
40 | 40 | is_int($time) ? |
41 | - Carbon::createFromTimestamp($time, $tz) : |
|
42 | - new Carbon($time, $tz); |
|
41 | + Carbon::createFromTimestamp($time, $tz) : new Carbon($time, $tz); |
|
43 | 42 | } |
44 | 43 | |
45 | 44 | /** |