Passed
Push — master ( 50d8b5...e01d3a )
by Luiz Kim
02:41
created
src/Service/DeviceService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         return $devices;
29 29
     }
30 30
 
31
-    public function findDevices(array|string $devices)
31
+    public function findDevices(array | string $devices)
32 32
     {
33 33
         return $this->manager->getRepository(Device::class)->findBy([
34 34
             'device' => $devices
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $device = $this->discoveryDevice($deviceId);
72 72
 
73
-        $device_config = $this->discoveryDeviceConfig($device,  $people);
73
+        $device_config = $this->discoveryDeviceConfig($device, $people);
74 74
         foreach ($configs as $key => $config)
75
-            $device_config->addConfig($key,  $config);
75
+            $device_config->addConfig($key, $config);
76 76
 
77 77
         $this->manager->persist($device_config);
78 78
         $this->manager->flush();
Please login to merge, or discard this patch.
src/Service/AddressService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     $district = ($district && $city) ? $this->discoveryDistrict($city, $district) : null;
45 45
     $street = ($streetName && $cep && $district) ? $this->discoveryStreet($cep, $district, $streetName) : null;
46 46
 
47
-    $address =  $this->manager->getRepository(Address::class)->findOneBy([
47
+    $address = $this->manager->getRepository(Address::class)->findOneBy([
48 48
       'people' => $people,
49 49
       'street' => $street,
50 50
       'number' => $streetNumber,
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
       'district' => $district,
92 92
       'street' => $streetName
93 93
     ];
94
-    $street =  $this->manager->getRepository(Street::class)->findOneBy($search);
94
+    $street = $this->manager->getRepository(Street::class)->findOneBy($search);
95 95
 
96 96
     if (!$street) {
97 97
       $street = new Street();
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     $search['district'] = $districtName;
114 114
 
115
-    $district =  $this->manager->getRepository(District::class)->findOneBy($search);
115
+    $district = $this->manager->getRepository(District::class)->findOneBy($search);
116 116
 
117 117
     if (!$district) {
118 118
       $district = new District();
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     if ($cod_ibge)
137 137
       $search['cod_ibge'] = $cod_ibge;
138 138
 
139
-    $city =  $this->manager->getRepository(City::class)->findOneBy($search);
139
+    $city = $this->manager->getRepository(City::class)->findOneBy($search);
140 140
 
141 141
     if (!$city) {
142 142
       $city = new City();
Please login to merge, or discard this patch.