Passed
Push — master ( e92183...e10f0e )
by Darío
06:35
created
module/Auth/source/Model/UserTbl.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,8 +49,9 @@  discard block
 block discarded – undo
49 49
 
50 50
         foreach ($row as $key => $value)
51 51
         {
52
-            if (is_string($key))
53
-                $filtered_array[$key] = $value;
52
+            if (is_string($key)) {
53
+                            $filtered_array[$key] = $value;
54
+            }
54 55
         }
55 56
 
56 57
         $user = new User();
@@ -75,8 +76,9 @@  discard block
 block discarded – undo
75 76
             $username_credential => $username
76 77
         ]);
77 78
 
78
-        if (!count($rowset))
79
-            throw new \Exception("The user does not exists!");
79
+        if (!count($rowset)) {
80
+                    throw new \Exception("The user does not exists!");
81
+        }
80 82
 
81 83
         $row = array_shift($rowset);
82 84
 
@@ -84,8 +86,9 @@  discard block
 block discarded – undo
84 86
 
85 87
         foreach ($row as $key => $value)
86 88
         {
87
-            if (is_string($key))
88
-                $filtered_array[$key] = $value;
89
+            if (is_string($key)) {
90
+                            $filtered_array[$key] = $value;
91
+            }
89 92
         }
90 93
 
91 94
         $user = new User();
Please login to merge, or discard this patch.