Completed
Push — master ( ab4ae0...06d3fe )
by Ankit
02:53
created
src/User.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,18 +33,18 @@
 block discarded – undo
33 33
         if($para == True)
34 34
         {
35 35
             $this->query = "SELECT * from login where login_id = '$details'";
36
-        }
37
-        else
36
+        } else
38 37
         {
39 38
             $this->query = "SELECT * from login where username = '$details'";
40 39
         }
41 40
         $this->result = $this->connect->query($this->query);
42
-        if($this->result->num_rows > 0)                   // if true
41
+        if($this->result->num_rows > 0) {
42
+            // if true
43 43
         {
44 44
             $this->details = $this->result->fetch_assoc();
45
-            return $this->details;
46 45
         }
47
-        else
46
+            return $this->details;
47
+        } else
48 48
         {
49 49
             return NULL;
50 50
         }
Please login to merge, or discard this patch.