Completed
Push — master ( 7ac428...ba03ff )
by Karsten
10:44
created
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.
src/PropertyAccess/ScopedPropertyAccess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@
 block discarded – undo
79 79
     private function init()
80 80
     {
81 81
         self::$initialized = true;
82
-        self::$getAccess   = function ($prop) { return $this->$prop; };
83
-        self::$setAccess   = function ($prop, $value) { $this->$prop = $value; };
82
+        self::$getAccess   = function($prop) { return $this->$prop; };
83
+        self::$setAccess   = function($prop, $value) { $this->$prop = $value; };
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.
src/Slumber/Core/LookUp/AnnotatedEntityConfigReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
 
140 140
                 $propertyName = $property->getName();
141 141
 
142
-                if (! isset($result[$propertyName])) {
142
+                if (!isset($result[$propertyName])) {
143 143
 
144 144
                     $context = $this->getPropertyValidationContext($subjectClass, $property);
145 145
                     $marker  = $this->getPropertyAnnotationsOfType($context);
Please login to merge, or discard this patch.
src/Emitter/EmitterImpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function bind($eventName, $handler)
37 37
     {
38
-        if (! self::isListener($handler)) {
38
+        if (!self::isListener($handler)) {
39 39
             throw new \LogicException('Invalid listener');
40 40
         }
41 41
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $listeners = $this->bindings[$eventName];
47 47
 
48
-        if (! $listeners->offsetExists($handler)) {
48
+        if (!$listeners->offsetExists($handler)) {
49 49
             $listeners->offsetSet($handler);
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/Property/SimpleDateMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 
94 94
         if ($identifiers === null) {
95 95
             $ids = timezone_identifiers_list();
96
-            array_walk($ids, function (&$id) { $id = strtolower($id); });
96
+            array_walk($ids, function(&$id) { $id = strtolower($id); });
97 97
 
98 98
             $identifiers = array_flip($ids);
99 99
 
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/Property/AbstractCollectionMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      */
143 143
     public function setLeafParentsCollectionType($collectionClass)
144 144
     {
145
-        if (! is_a($collectionClass, Collection::class, true)) {
145
+        if (!is_a($collectionClass, Collection::class, true)) {
146 146
             throw new \LogicException("The given class $collectionClass does not implement " . Collection::class);
147 147
         }
148 148
 
Please login to merge, or discard this patch.
src/Toolbox/BaseUtil.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
             return;
38 38
         }
39 39
 
40
-        if (! @mkdir($dir, $mode, true) && ! @is_dir($dir)) {
40
+        if (!@mkdir($dir, $mode, true) && !@is_dir($dir)) {
41 41
             error_reporting($old);
42 42
             throw new \RuntimeException('Could not create directory');
43 43
         }
Please login to merge, or discard this patch.
src/Slumber/Helper/ClassesInPackageValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
             // we have to exclude manually since it does not work on the finder when using exclude()
97 97
             $excludeIt = Psi::it($excludeDirs)
98
-                ->filter(function ($dir) use ($item) {
98
+                ->filter(function($dir) use ($item) {
99 99
                     return strpos($item->getRealPath(), $dir) === 0;
100 100
                 })
101 101
                 ->count();
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $namespace = '';
109 109
 
110 110
             for ($index = 0; isset($tokens[$index]); $index++) {
111
-                if (! isset($tokens[$index][0])) {
111
+                if (!isset($tokens[$index][0])) {
112 112
                     continue;
113 113
                 }
114 114
                 if (T_NAMESPACE === $tokens[$index][0]) {
Please login to merge, or discard this patch.
src/Collections/ArrayCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function appendAll($items)
59 59
     {
60
-        if (! \is_array($items) && ! $items instanceof \Traversable) {
60
+        if (!\is_array($items) && !$items instanceof \Traversable) {
61 61
             return $this;
62 62
         }
63 63
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function appendIfNotExists($item, $comparator = null)
82 82
     {
83
-        if (! $this->contains($item, $comparator)) {
83
+        if (!$this->contains($item, $comparator)) {
84 84
             $this->append($item);
85 85
         }
86 86
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     public function remove($item)
172 172
     {
173 173
         return $this->removeWhen(
174
-            function ($storedItem) use ($item) {
174
+            function($storedItem) use ($item) {
175 175
                 return $storedItem === $item;
176 176
             }
177 177
         );
Please login to merge, or discard this patch.