@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | // we call the private/protected constructor with the scope of the class that is defining it |
| 39 | 39 | $closure = \Closure::bind( |
| 40 | - function () use ($fqcn) { |
|
| 40 | + function() use ($fqcn) { |
|
| 41 | 41 | return new $fqcn(); |
| 42 | 42 | }, |
| 43 | 43 | null, |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | // NOTICE: we also accept interfaces here, as the interface can define a Slumber\Polymorphic |
| 35 | - if (! class_exists($this->value) && ! interface_exists($this->value)) { |
|
| 35 | + if (!class_exists($this->value) && !interface_exists($this->value)) { |
|
| 36 | 36 | throw $this->createValidationException( |
| 37 | 37 | $context, |
| 38 | 38 | "you provided the non-existing class '$this->value'" |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function hasAlias() |
| 43 | 43 | { |
| 44 | - return ! empty($this->alias); |
|
| 44 | + return !empty($this->alias); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | return null; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - return (string)$value->getValue(); |
|
| 51 | + return (string) $value->getValue(); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function slumber(Slumberer $slumberer, $value) |
| 34 | 34 | { |
| 35 | - if (! $value instanceof Point) { |
|
| 35 | + if (!$value instanceof Point) { |
|
| 36 | 36 | return null; |
| 37 | 37 | } |
| 38 | 38 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function slumber(Slumberer $slumberer, $value) |
| 34 | 34 | { |
| 35 | - if (! $value instanceof LineString) { |
|
| 35 | + if (!$value instanceof LineString) { |
|
| 36 | 36 | return null; |
| 37 | 37 | } |
| 38 | 38 | |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | return $this->loadOrCreate( |
| 54 | 54 | $cacheKey, |
| 55 | - function () use ($cacheKey, $cls) { |
|
| 55 | + function() use ($cacheKey, $cls) { |
|
| 56 | 56 | return $this->fetchFromCache($cacheKey, $cls); |
| 57 | 57 | }, |
| 58 | - function () use ($cls) { |
|
| 58 | + function() use ($cls) { |
|
| 59 | 59 | return $this->delegate->getEntityConfig($cls); |
| 60 | 60 | }, |
| 61 | 61 | $cls |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | if (($data = $this->cache->fetch($cacheKey)) !== false) { |
| 104 | 104 | /** @noinspection NestedPositiveIfStatementsInspection */ |
| 105 | - if (! $this->debug || $this->isCacheFresh($cacheKey, $class)) { |
|
| 105 | + if (!$this->debug || $this->isCacheFresh($cacheKey, $class)) { |
|
| 106 | 106 | return $data; |
| 107 | 107 | } |
| 108 | 108 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | protected function buildValidationMessage(ValidationContext $context, $msg) |
| 96 | 96 | { |
| 97 | 97 | return 'For ' . $context->getAnnotationLocation() . ' the validation of @' . static::class . |
| 98 | - ' failed, due to: ' . $msg . ' '; |
|
| 98 | + ' failed, due to: ' . $msg . ' '; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function __construct($default, $mappings) |
| 27 | 27 | { |
| 28 | - $this->default = $default; // TODO: get rid of the default... either we can or cannot map |
|
| 28 | + $this->default = $default; // TODO: get rid of the default... either we can or cannot map |
|
| 29 | 29 | $this->mappings = $mappings; |
| 30 | 30 | } |
| 31 | 31 | |