Passed
Push — main ( bffc9e...33c372 )
by Sammy
02:00
created
Tracer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     private function filter($q, $options)
93 93
     {
94 94
         if (isset($options['on'])) {
95
-            $q->whereLike('query_on', $options['on'] . '%');
95
+            $q->whereLike('query_on', $options['on'].'%');
96 96
         }
97 97
 
98 98
         if (isset($options['by'])) {
Please login to merge, or discard this patch.
Trace.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -9,33 +9,33 @@  discard block
 block discarded – undo
9 9
     private $query_id;
10 10
     private $query_by;
11 11
 
12
-    public function isUpdate($setter=null)
12
+    public function isUpdate($setter = null)
13 13
     {
14
-      if(is_bool($setter))
14
+      if (is_bool($setter))
15 15
         $this->query_type = self::CODE_UPDATE;
16 16
 
17 17
       return $this->query_type === self::CODE_UPDATE;
18 18
     }
19 19
 
20
-    public function isDelete($setter=null)
20
+    public function isDelete($setter = null)
21 21
     {
22
-      if(is_bool($setter))
22
+      if (is_bool($setter))
23 23
         $this->query_type = self::CODE_DELETE;
24 24
 
25 25
       return $this->query_type === self::CODE_DELETE;
26 26
     }
27 27
 
28
-    public function isInsert($setter=null)
28
+    public function isInsert($setter = null)
29 29
     {
30
-      if(is_bool($setter))
30
+      if (is_bool($setter))
31 31
         $this->query_type = self::CODE_CREATE;
32 32
 
33 33
       return $this->query_type === self::CODE_CREATE;
34 34
     }
35 35
 
36
-    public function isSelect($setter=null)
36
+    public function isSelect($setter = null)
37 37
     {
38
-      if(is_bool($setter))
38
+      if (is_bool($setter))
39 39
         $this->query_type = self::CODE_SELECT;
40 40
 
41 41
       return $this->query_type === self::CODE_SELECT;
@@ -47,23 +47,23 @@  discard block
 block discarded – undo
47 47
       return $this->query_type;
48 48
     }
49 49
 
50
-    public function tableName($setter=null)
50
+    public function tableName($setter = null)
51 51
     {
52
-      if(!is_null($setter))
52
+      if (!is_null($setter))
53 53
         $this->query_table = $setter;
54 54
       return $this->query_table;
55 55
     }
56 56
 
57
-    public function tablePk($setter=null)
57
+    public function tablePk($setter = null)
58 58
     {
59
-      if(!is_null($setter))
59
+      if (!is_null($setter))
60 60
         $this->query_id = $setter;
61 61
       return $this->query_id;
62 62
     }
63 63
 
64
-    public function operatorId($setter=null)
64
+    public function operatorId($setter = null)
65 65
     {
66
-      if(!is_null($setter))
66
+      if (!is_null($setter))
67 67
         $this->query_by = $setter;
68 68
       return $this->query_by;
69 69
     }
Please login to merge, or discard this patch.
Braces   +21 added lines, -14 removed lines patch added patch discarded remove patch
@@ -11,32 +11,36 @@  discard block
 block discarded – undo
11 11
 
12 12
     public function isUpdate($setter=null)
13 13
     {
14
-      if(is_bool($setter))
15
-        $this->query_type = self::CODE_UPDATE;
14
+      if(is_bool($setter)) {
15
+              $this->query_type = self::CODE_UPDATE;
16
+      }
16 17
 
17 18
       return $this->query_type === self::CODE_UPDATE;
18 19
     }
19 20
 
20 21
     public function isDelete($setter=null)
21 22
     {
22
-      if(is_bool($setter))
23
-        $this->query_type = self::CODE_DELETE;
23
+      if(is_bool($setter)) {
24
+              $this->query_type = self::CODE_DELETE;
25
+      }
24 26
 
25 27
       return $this->query_type === self::CODE_DELETE;
26 28
     }
27 29
 
28 30
     public function isInsert($setter=null)
29 31
     {
30
-      if(is_bool($setter))
31
-        $this->query_type = self::CODE_CREATE;
32
+      if(is_bool($setter)) {
33
+              $this->query_type = self::CODE_CREATE;
34
+      }
32 35
 
33 36
       return $this->query_type === self::CODE_CREATE;
34 37
     }
35 38
 
36 39
     public function isSelect($setter=null)
37 40
     {
38
-      if(is_bool($setter))
39
-        $this->query_type = self::CODE_SELECT;
41
+      if(is_bool($setter)) {
42
+              $this->query_type = self::CODE_SELECT;
43
+      }
40 44
 
41 45
       return $this->query_type === self::CODE_SELECT;
42 46
     }
@@ -49,22 +53,25 @@  discard block
 block discarded – undo
49 53
 
50 54
     public function tableName($setter=null)
51 55
     {
52
-      if(!is_null($setter))
53
-        $this->query_table = $setter;
56
+      if(!is_null($setter)) {
57
+              $this->query_table = $setter;
58
+      }
54 59
       return $this->query_table;
55 60
     }
56 61
 
57 62
     public function tablePk($setter=null)
58 63
     {
59
-      if(!is_null($setter))
60
-        $this->query_id = $setter;
64
+      if(!is_null($setter)) {
65
+              $this->query_id = $setter;
66
+      }
61 67
       return $this->query_id;
62 68
     }
63 69
 
64 70
     public function operatorId($setter=null)
65 71
     {
66
-      if(!is_null($setter))
67
-        $this->query_by = $setter;
72
+      if(!is_null($setter)) {
73
+              $this->query_by = $setter;
74
+      }
68 75
       return $this->query_by;
69 76
     }
70 77
 }
Please login to merge, or discard this patch.