| @@ -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 | /** | 
| @@ -64,9 +64,9 @@ discard block | ||
| 64 | 64 | ); | 
| 65 | 65 | } | 
| 66 | 66 | |
| 67 | -        if (! empty ($this->collection)) { | |
| 67 | +        if (!empty ($this->collection)) { | |
| 68 | 68 | |
| 69 | -            if (! class_exists($this->collection)) { | |
| 69 | +            if (!class_exists($this->collection)) { | |
| 70 | 70 | throw $this->createValidationException( | 
| 71 | 71 | $context, | 
| 72 | 72 |                      "The collection class '{$this->collection}' does not exist'" | 
| @@ -75,7 +75,7 @@ discard block | ||
| 75 | 75 | |
| 76 | 76 | $expectedType = Collection::class; | 
| 77 | 77 | |
| 78 | -            if (! is_a($this->collection, $expectedType, true)) { | |
| 78 | +            if (!is_a($this->collection, $expectedType, true)) { | |
| 79 | 79 | throw $this->createValidationException( | 
| 80 | 80 | $context, | 
| 81 | 81 |                      "The collection class '{$this->collection}' must be instance of '{$expectedType}'" | 
| @@ -84,14 +84,14 @@ discard block | ||
| 84 | 84 | ); | 
| 85 | 85 | } | 
| 86 | 86 | |
| 87 | -        if (! $context->getProvider()->has($service)) { | |
| 87 | +        if (!$context->getProvider()->has($service)) { | |
| 88 | 88 | throw $this->createValidationException( | 
| 89 | 89 | $context, | 
| 90 | 90 | "you requested the non-existing service '$service'" | 
| 91 | 91 | ); | 
| 92 | 92 | } | 
| 93 | 93 | |
| 94 | -        if (! class_exists($ofClass) && ! interface_exists($ofClass)) { | |
| 94 | +        if (!class_exists($ofClass) && !interface_exists($ofClass)) { | |
| 95 | 95 | throw $this->createValidationException( | 
| 96 | 96 | $context, | 
| 97 | 97 | "you requested a service instance of the non-existing class or interface '$ofClass'" | 
| @@ -101,7 +101,7 @@ discard block | ||
| 101 | 101 | $instance = $this->getService($context->getProvider()); | 
| 102 | 102 | $check = new IsInstanceOf($ofClass); | 
| 103 | 103 | |
| 104 | -        if (! $check->__invoke($instance)) { | |
| 104 | +        if (!$check->__invoke($instance)) { | |
| 105 | 105 | throw $this->createValidationException( | 
| 106 | 106 | $context, | 
| 107 | 107 | "the service '$service' is not of instance '$ofClass' but is '" . | 
| @@ -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 | } |