Completed
Push — master ( 3f741d...05077a )
by Antarès
04:36
created
lib/Accessible/AutomatedBehaviorTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 foreach ($constraintsViolations as $violation) {
120 120
                     $errorMessageList[] = $violation->getMessage();
121 121
                 }
122
-                $errorMessage .= implode("\", \n\"", $errorMessageList) . "\".";
122
+                $errorMessage .= implode("\", \n\"", $errorMessageList)."\".";
123 123
 
124 124
                 throw new \InvalidArgumentException($errorMessage);
125 125
             }
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
             $associatedProperty = $association['property'];
148 148
             switch ($association['association']) {
149 149
                 case 'inverted':
150
-                    $invertedGetMethod = 'get' . ucfirst($associatedProperty);
151
-                    $invertedSetMethod = 'set' . ucfirst($associatedProperty);
150
+                    $invertedGetMethod = 'get'.ucfirst($associatedProperty);
151
+                    $invertedSetMethod = 'set'.ucfirst($associatedProperty);
152 152
                     if ($oldValue !== null && $oldValue->$invertedGetMethod() === $this) {
153 153
                         $oldValue->$invertedSetMethod(null);
154 154
                     }
@@ -159,9 +159,9 @@  discard block
 block discarded – undo
159 159
 
160 160
                 case 'mapped':
161 161
                     $itemName = $association['itemName'];
162
-                    $mappedGetMethod = 'get' . ucfirst($associatedProperty);
163
-                    $mappedAddMethod = 'add' . ucfirst($itemName);
164
-                    $mappedRemoveMethod = 'remove' . ucfirst($itemName);
162
+                    $mappedGetMethod = 'get'.ucfirst($associatedProperty);
163
+                    $mappedAddMethod = 'add'.ucfirst($itemName);
164
+                    $mappedRemoveMethod = 'remove'.ucfirst($itemName);
165 165
 
166 166
                     if ($oldValue !== null && CollectionManager::collectionContains($this, $oldValue->$mappedGetMethod())) {
167 167
                         $oldValue->$mappedRemoveMethod($this);
Please login to merge, or discard this patch.