Completed
Push — master ( bb0f1c...d5b4f2 )
by Karsten
04:20
created
src/Creator/CreateWithNonPublicConstructor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Slumber/Annotation/Slumber/AsObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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'"
Please login to merge, or discard this patch.
src/Slumber/Annotation/Slumber/PropertyMappingMarkerBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/Property/EnumMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             return null;
49 49
         }
50 50
 
51
-        return (string)$value->getValue();
51
+        return (string) $value->getValue();
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/Property/GeoJson/PointMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/Property/GeoJson/LineStringMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Slumber/Core/LookUp/CachedEntityConfigLookUp.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Slumber/Annotation/SlumberAnnotation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Slumber/Core/LookUp/PropertyMarker2Mapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.