Completed
Push — master ( 7a6bdd...324ce1 )
by Sébastien
09:34
created
src/Test/RepositoryAssertion.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -66,16 +66,16 @@
 block discarded – undo
66 66
         $this->assertEntity($expected, $entity, 0, $message);
67 67
     }
68 68
     
69
-     /**
70
-     * Assert that two array of entities are equal
71
-     * 
72
-     * @param array $expectedEntities
73
-     * @param array $actualEntities
74
-     * @param int   $dateTimeDelta
75
-     * @param string $message
76
-      *
77
-      * @throws \Exception
78
-     */
69
+        /**
70
+         * Assert that two array of entities are equal
71
+         * 
72
+         * @param array $expectedEntities
73
+         * @param array $actualEntities
74
+         * @param int   $dateTimeDelta
75
+         * @param string $message
76
+         *
77
+         * @throws \Exception
78
+         */
79 79
     public function assertEntities($expectedEntities, $actualEntities, $dateTimeDelta = 5, $message = '')
80 80
     {
81 81
         if (is_string($dateTimeDelta)) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -189,16 +189,16 @@
 block discarded – undo
189 189
             $expectedValue = $expected[$attribute] ?? null;
190 190
 
191 191
             if (!is_object($expectedValue)) {
192
-                $this->assertSame($expectedValue, $value, $message . ': Expected attribute "'.$path.'" is not the same');
192
+                $this->assertSame($expectedValue, $value, $message.': Expected attribute "'.$path.'" is not the same');
193 193
                 continue;
194 194
             }
195 195
 
196 196
             if ($expectedValue instanceof Constraint) {
197
-                $this->assertThat($value, $expectedValue, $message . ': Expected attribute "'.$path.'" is not the same');
197
+                $this->assertThat($value, $expectedValue, $message.': Expected attribute "'.$path.'" is not the same');
198 198
             } elseif ($expectedValue instanceof \DateTimeInterface) {
199
-                $this->assertEqualsWithDelta($expectedValue, $value, $dateTimeDelta, $message . ': Expected attribute "'.$path.'" is not the same');
199
+                $this->assertEqualsWithDelta($expectedValue, $value, $dateTimeDelta, $message.': Expected attribute "'.$path.'" is not the same');
200 200
             } else {
201
-                $this->assertEquals($expectedValue, $value, $message . ': Expected attribute "'.$path.'" is not the same');
201
+                $this->assertEquals($expectedValue, $value, $message.': Expected attribute "'.$path.'" is not the same');
202 202
             }
203 203
         }
204 204
     }
Please login to merge, or discard this patch.
src/Test/TestPack.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @var array
32 32
      */
33 33
     protected $testPacks = [
34
-        'persistent'        => [],  // Entités créées non modifiables
34
+        'persistent'        => [], // Entités créées non modifiables
35 35
         'non-persistent'    => []   // Entités créées et détruites aprés un test
36 36
     ];
37 37
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
         // On ajoute la classe de l'entité uniquement si elle n'est pas déjà dans le tableau et si le test pack n'a pas démarré de savepoint
162 162
         foreach ($entityClasses as $entityClassName) {
163
-            if (! in_array($entityClassName, $this->entityClasses)) {
163
+            if (!in_array($entityClassName, $this->entityClasses)) {
164 164
                 if ($this->initialized) {
165 165
                     $this->create([$entityClassName]);
166 166
                 } else {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public function onInit(callable $callback)
221 221
     {
222
-        if (! $this->initialized) {
222
+        if (!$this->initialized) {
223 223
             $this->once('testpack.initialized', $callback);
224 224
         }
225 225
 
Please login to merge, or discard this patch.
src/Exception/HydratorException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function __construct($entityClass, $message = '', $previous = null)
23 23
     {
24
-        parent::__construct($entityClass . ' : ' . $message, 0, $previous);
24
+        parent::__construct($entityClass.' : '.$message, 0, $previous);
25 25
 
26 26
         $this->entityClass = $entityClass;
27 27
     }
Please login to merge, or discard this patch.
src/Configuration.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
             $this->_attributes['dbConfig'] = $this->_attributes['dbConfig']($this);
94 94
         }
95 95
 
96
-        if (! $this->_attributes['dbConfig'] instanceof ConnectionConfig) {
96
+        if (!$this->_attributes['dbConfig'] instanceof ConnectionConfig) {
97 97
             $this->_attributes['dbConfig'] = new ConnectionConfig((array) $this->_attributes['dbConfig']);
98 98
         }
99 99
 
Please login to merge, or discard this patch.
src/Logger/PsrDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
             );
95 95
         }
96 96
 
97
-        return ' : [' . implode(', ', $buffer) . ']';
97
+        return ' : ['.implode(', ', $buffer).']';
98 98
     }
99 99
     
100 100
     /**
Please login to merge, or discard this patch.
src/Relations/Util/SimpleTableJoinRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         $query->joinEntity(
45 45
             $this->distant->entityName(),
46
-            function (JoinClause $clause) use($alias, $query) { $this->buildJoinClause($clause, $query, $alias); },
46
+            function(JoinClause $clause) use($alias, $query) { $this->buildJoinClause($clause, $query, $alias); },
47 47
             null,
48 48
             $alias
49 49
         );
Please login to merge, or discard this patch.
src/Relations/Relation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
                 break;
231 231
 
232 232
             default:
233
-                throw new \RuntimeException('Unknown type from relation "' . $relationName . '" in ' . $repository->entityName());
233
+                throw new \RuntimeException('Unknown type from relation "'.$relationName.'" in '.$repository->entityName());
234 234
         }
235 235
 
236 236
         return $relation->setOptions($relationMeta);
Please login to merge, or discard this patch.
src/Relations/ByInheritance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     public function join($query, $alias = null)
93 93
     {
94
-        $parts = explode('#', (string)$alias);
94
+        $parts = explode('#', (string) $alias);
95 95
 
96 96
         if (!isset($parts[1])) {
97 97
             throw new \LogicException('Joins are not supported on polymorph without discriminator');
Please login to merge, or discard this patch.
src/Relations/EntityRelation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function saveAll($relations = [])
144 144
     {
145
-        return $this->relation->saveAll($this->owner, (array)$relations);
145
+        return $this->relation->saveAll($this->owner, (array) $relations);
146 146
     }
147 147
 
148 148
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function deleteAll($relations = [])
156 156
     {
157
-        return $this->relation->deleteAll($this->owner, (array)$relations);
157
+        return $this->relation->deleteAll($this->owner, (array) $relations);
158 158
     }
159 159
 
160 160
     /**
Please login to merge, or discard this patch.