Passed
Branch release/v3.0.0 (e54636)
by Anatoly
05:20 queued 01:46
created
src/Bundle/Example/Service/EntryManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             ->getRepository(Entry::class)
67 67
             ->find($id);
68 68
 
69
-        if (! ($entry instanceof Entry)) {
69
+        if (!($entry instanceof Entry)) {
70 70
             throw new EntityNotFoundException();
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Bundle/Example/Service/EntrySerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
      */
32 32
     public function listSerialize(Entry ...$entries) : array
33 33
     {
34
-        $result = [];
34
+        $result = [ ];
35 35
         foreach ($entries as $entry) {
36
-            $result[] = $this->serialize($entry);
36
+            $result[ ] = $this->serialize($entry);
37 37
         }
38 38
 
39 39
         return $result;
Please login to merge, or discard this patch.
src/Exception/InvalidEntityException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public static function assert(object $entity, ValidatorInterface $validator) : void
34 34
     {
35 35
         $violations = self::normalizeViolations($validator->validate($entity));
36
-        if ([] === $violations) {
36
+        if ([ ] === $violations) {
37 37
             return;
38 38
         }
39 39
 
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
      */
52 52
     private static function normalizeViolations(ConstraintViolationListInterface $violations) : array
53 53
     {
54
-        $result = [];
54
+        $result = [ ];
55 55
         foreach ($violations as $violation) {
56
-            $result[] = [
56
+            $result[ ] = [
57 57
                 'message' => $violation->getMessage(),
58 58
                 'property' => $violation->getPropertyPath(),
59 59
             ];
Please login to merge, or discard this patch.
src/Bundle/Example/Tests/Service/EntryManagerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $entryManager = $container->get('entryManager');
34 34
         $this->assertSame(0, $entryManager->countAll());
35 35
 
36
-        $entryManager->create(['name' => 'foo', 'slug' => 'foo']);
36
+        $entryManager->create([ 'name' => 'foo', 'slug' => 'foo' ]);
37 37
         $this->assertSame(1, $entryManager->countAll());
38 38
     }
39 39
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->createDatabaseSchema($entityManager);
52 52
 
53 53
         $entryManager = $container->get('entryManager');
54
-        $this->assertSame([], $entryManager->getList(null, null));
54
+        $this->assertSame([ ], $entryManager->getList(null, null));
55 55
 
56 56
         // to be continued...
57 57
     }
Please login to merge, or discard this patch.