Passed
Push — master ( d6def4...043641 )
by RN
01:52
created
src/Dolphin/Builders/QueryBuilder.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -78,21 +78,21 @@
 block discarded – undo
78 78
     }
79 79
 
80 80
     private function buildLimitQuery($limit, $offset, $query = array()){
81
-      $limitQuery = [];
82
-      if (!empty($limit)) {
83
-          $query[] = 'LIMIT';
81
+        $limitQuery = [];
82
+        if (!empty($limit)) {
83
+            $query[] = 'LIMIT';
84 84
 
85
-          if (!empty($offset)) {
86
-              $query[] = $offset.',';
87
-          }
85
+            if (!empty($offset)) {
86
+                $query[] = $offset.',';
87
+            }
88 88
 
89
-          $query[] = $limit;
90
-      }
89
+            $query[] = $limit;
90
+        }
91 91
 
92
-      if (count($limitQuery)) {
93
-          $query = array_merge($query, $limitQuery);
94
-      }
95
-      return $query;
92
+        if (count($limitQuery)) {
93
+            $query = array_merge($query, $limitQuery);
94
+        }
95
+        return $query;
96 96
     }
97 97
 
98 98
     public function buildQuery(array $params)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         return "'".$field."'";
69 69
     }
70 70
 
71
-    private function getQueryFields($fields, $tbl){
71
+    private function getQueryFields($fields, $tbl) {
72 72
         $startQuery = join(', ', $fields);
73 73
         if (empty($fields)) {
74 74
             $startQuery = $this->quote($tbl).'.*';
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         return $startQuery;
78 78
     }
79 79
 
80
-    private function buildLimitQuery($limit, $offset, $query = array()){
80
+    private function buildLimitQuery($limit, $offset, $query = array()) {
81 81
       $limitQuery = [];
82 82
       if (!empty($limit)) {
83 83
           $query[] = 'LIMIT';
Please login to merge, or discard this patch.