Passed
Pull Request — master (#4)
by Alex
08:39
created
test/unit/Service/Connection/ConnectionFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
             $config,
123 123
             $configuration,
124 124
             $eventManager
125
-        ): Connection {
125
+        ) : Connection {
126 126
             Assert::assertSame($configurationArg, $configuration);
127 127
             Assert::assertSame($eventManagerArg, $eventManager);
128 128
             Assert::assertSame(
Please login to merge, or discard this patch.
src/Factory/Console/DoctrineApplicationFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@
 block discarded – undo
85 85
         }
86 86
 
87 87
         if (isset($options['auto_exit'])) {
88
-            $application->setAutoExit((bool)$options['auto_exit']);
88
+            $application->setAutoExit((bool) $options['auto_exit']);
89 89
         }
90 90
 
91 91
         if (isset($options['catch_exceptions'])) {
92
-            $application->setCatchExceptions((bool)$options['catch_exceptions']);
92
+            $application->setCatchExceptions((bool) $options['catch_exceptions']);
93 93
         }
94 94
 
95 95
         if (isset($options['default_command'])) {
Please login to merge, or discard this patch.
src/Console/Command/ImportCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
         $this->executor->execute(
77 77
             $this->fixtures,
78
-            (bool)$input->getOption('append')
78
+            (bool) $input->getOption('append')
79 79
         );
80 80
 
81 81
         $output->writeln(sprintf('Completed execution of \'%d\' fixtures', count($this->fixtures)));
Please login to merge, or discard this patch.
src/Repository/Persistence/PersistService.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function saveCollection(iterable $collection, array $options = []): iterable
83 83
     {
84
-        $transaction = (bool)($options['transaction'] ?? true);
85
-        $flush = (bool)($options['flush'] ?? true);
84
+        $transaction = (bool) ($options['transaction'] ?? true);
85
+        $flush = (bool) ($options['flush'] ?? true);
86 86
 
87 87
         try {
88 88
             if ($transaction) {
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
      */
141 141
     protected function update(EntityInterface $entity, array $options = []): EntityInterface
142 142
     {
143
-        $transaction = (bool)($options['transaction'] ?? false);
144
-        $flush = (bool)($options['flush'] ?? true);
143
+        $transaction = (bool) ($options['transaction'] ?? false);
144
+        $flush = (bool) ($options['flush'] ?? true);
145 145
 
146 146
         try {
147 147
             if ($transaction) {
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
      */
186 186
     protected function insert(EntityInterface $entity, array $options = []): EntityInterface
187 187
     {
188
-        $transaction = (bool)($options['transaction'] ?? false);
189
-        $flush = (bool)($options['flush'] ?? true);
188
+        $transaction = (bool) ($options['transaction'] ?? false);
189
+        $flush = (bool) ($options['flush'] ?? true);
190 190
 
191 191
         try {
192 192
             $this->entityManager->persist($entity);
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function delete(EntityInterface $entity, array $options = []): bool
236 236
     {
237
-        $transaction = (bool)($options['transaction'] ?? false);
238
-        $flush = (bool)($options['flush'] ?? true);
237
+        $transaction = (bool) ($options['transaction'] ?? false);
238
+        $flush = (bool) ($options['flush'] ?? true);
239 239
 
240 240
         try {
241 241
             if ($transaction) {
@@ -283,8 +283,8 @@  discard block
 block discarded – undo
283 283
      */
284 284
     public function deleteCollection(iterable $collection, array $options = []): int
285 285
     {
286
-        $transaction = (bool)($options['transaction'] ?? true);
287
-        $flush = (bool)($options['flush'] ?? true);
286
+        $transaction = (bool) ($options['transaction'] ?? true);
287
+        $flush = (bool) ($options['flush'] ?? true);
288 288
 
289 289
         try {
290 290
             if ($transaction) {
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
             $deletedCount = 0;
303 303
             foreach ($collection as $entity) {
304 304
                 if ($this->delete($entity, $saveOptions)) {
305
-                    $deletedCount++;
305
+                    $deletedCount ++;
306 306
                 }
307 307
             }
308 308
 
Please login to merge, or discard this patch.
src/Hydrator/EntityHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     protected function toMany($object, $collectionName, $target, $values): void
45 45
     {
46 46
         if (!is_iterable($values)) {
47
-            $values = (array)$values;
47
+            $values = (array) $values;
48 48
         }
49 49
 
50 50
         $metadata = $this->objectManager->getClassMetadata($target);
Please login to merge, or discard this patch.