Passed
Push — master ( 4508e2...fbf1f0 )
by Luiz Kim
09:19 queued 06:46
created
src/Listener/DefaultEventListener.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,9 @@
 block discarded – undo
51 51
             $service = $this->container->get($serviceName);
52 52
             if (method_exists($service, $method)) {
53 53
                 $entity = $service->$method($entity);
54
-                if ('postPersist' === $method && $entity)
55
-                    $this->manager->refresh($entity);
54
+                if ('postPersist' === $method && $entity) {
55
+                                    $this->manager->refresh($entity);
56
+                }
56 57
             }
57 58
         }
58 59
     }
Please login to merge, or discard this patch.
src/Service/NotificationService.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@
 block discarded – undo
10 10
 class NotificationService
11 11
 {
12 12
 
13
-  public function __construct(
13
+    public function __construct(
14 14
     private EntityManagerInterface $manager,
15 15
     private Security               $security,
16 16
     private RequestStack $requestStack,
17 17
     private PusherService $pusher
18
-  ) {
19
-  }
18
+    ) {
19
+    }
20 20
 
21
-  public function postPersist(Notification $notification)
22
-  {
21
+    public function postPersist(Notification $notification)
22
+    {
23 23
     $this->pusher->push(['company' => 1, 'people' => 1], 'my_topic');
24
-  }
24
+    }
25 25
 }
Please login to merge, or discard this patch.
src/Service/ExtraDataService.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             $this->discoveryIdentifier($entity);
67 67
             $this->discoveryUser($entity);
68 68
         } else {
69
-            $json =       json_decode($this->request->getContent(), true);
69
+            $json = json_decode($this->request->getContent(), true);
70 70
             $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null;
71 71
             if (!$extra_data)
72 72
                 return;
Please login to merge, or discard this patch.
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,8 +49,9 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function persist($entity)
51 51
     {
52
-        if (self::$persisted == true)
53
-            return;
52
+        if (self::$persisted == true) {
53
+                    return;
54
+        }
54 55
         self::$persisted = true;
55 56
 
56 57
         //$this->manager->persist($entity);
@@ -68,15 +69,17 @@  discard block
 block discarded – undo
68 69
         } else {
69 70
             $json =       json_decode($this->request->getContent(), true);
70 71
             $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null;
71
-            if (!$extra_data)
72
-                return;
72
+            if (!$extra_data) {
73
+                            return;
74
+            }
73 75
             $entity_id = $extra_data['entity_id'];
74 76
             $entity_name = $extra_data['entity_name'];
75 77
         }
76 78
 
77 79
 
78
-        if (!$entity_id || !$entity_name)
79
-            return;
80
+        if (!$entity_id || !$entity_name) {
81
+                    return;
82
+        }
80 83
 
81 84
         foreach ($extra_data['data'] as $key => $data) {
82 85
             $extra_fields = $this->manager->getRepository(ExtraFields::class)->find($key);
@@ -87,8 +90,9 @@  discard block
 block discarded – undo
87 90
                 'extra_fields' => $extra_fields
88 91
             ]);
89 92
 
90
-            if (!$extraData)
91
-                $extraData = new ExtraData();
93
+            if (!$extraData) {
94
+                            $extraData = new ExtraData();
95
+            }
92 96
 
93 97
             $extraData->setExtraFields($extra_fields);
94 98
             $extraData->setEntityName($entity_name);
Please login to merge, or discard this patch.