Passed
Push — master ( 603c4d...0858c3 )
by Luiz Kim
02:31
created
src/Controller/AddDeviceConfigAction.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,11 +36,13 @@
 block discarded – undo
36 36
         'people' =>  $people,
37 37
         'device' => $json['device']
38 38
       ]);
39
-      if (!$device)
40
-        $device  = new Device();
39
+      if (!$device) {
40
+              $device  = new Device();
41
+      }
41 42
 
42
-      foreach ($configs as $key => $config)
43
-        $device->addConfigs($key,  $config);
43
+      foreach ($configs as $key => $config) {
44
+              $device->addConfigs($key,  $config);
45
+      }
44 46
       $device->setPeople($people);
45 47
       $device->setDevice($json['device']);
46 48
 
Please login to merge, or discard this patch.