Passed
Push — php7 ( 5be74d...d0ad73 )
by Pascal
02:05
created
lib/SSpkS/Device/DeviceList.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,11 +44,13 @@
 block discarded – undo
44 44
         }
45 45
         $idx = 0;
46 46
         $sortkey = array();
47
-        if (!is_array($archlist) && !is_object($archlist))
48
-            throw new \Exception('Architectures list is not an array');
47
+        if (!is_array($archlist) && !is_object($archlist)) {
48
+                    throw new \Exception('Architectures list is not an array');
49
+        }
49 50
         foreach ($archlist as $family => $archlist) {
50
-            if (!is_array($archlist) && !is_object($archlist))
51
-                throw new \Exception("Models list in $family is not an array");
51
+            if (!is_array($archlist) && !is_object($archlist)) {
52
+                            throw new \Exception("Models list in $family is not an array");
53
+            }
52 54
             foreach ($archlist as $arch => $archmodels) {
53 55
                 foreach ($archmodels as $model) {
54 56
                     $this->devices[$idx] = array(
Please login to merge, or discard this patch.