Passed
Push — master ( 2e5f1b...1edd03 )
by Igor
02:55
created
example/Helper.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,10 @@
 block discarded – undo
123 123
 
124 124
         for ($day_ago = 0; $day_ago < 360; $day_ago++) {
125 125
             $date = strtotime('-' . $day_ago . ' day');
126
-            for ($hash_id = 1; $hash_id < (1 + $size); $hash_id++)
127
-                for ($site_id = 100; $site_id < 199; $site_id++) {
126
+            for ($hash_id = 1; $hash_id < (1 + $size); $hash_id++) {
127
+                            for ($site_id = 100;
128
+            }
129
+            $site_id < 199; $site_id++) {
128 130
                     $j['event_time'] = date('Y-m-d H:00:00', $date);
129 131
                     $j['site_id'] = $site_id;
130 132
                     $j['hash_id'] = $hash_id;
Please login to merge, or discard this patch.
src/Query/Query.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,9 @@  discard block
 block discarded – undo
49 49
     private function applyFormatQuery()
50 50
     {
51 51
         // FORMAT\s(\w)*$
52
-        if (null === $this->format) return false;
52
+        if (null === $this->format) {
53
+            return false;
54
+        }
53 55
         $supportFormats=
54 56
             "FORMAT\\s+TSV|FORMAT\\s+TSVRaw|FORMAT\\s+TSVWithNames|FORMAT\\s+TSVWithNamesAndTypes|FORMAT\\s+Vertical|FORMAT\\s+JSONCompact|FORMAT\\s+JSONEachRow|FORMAT\\s+TSKV|FORMAT\\s+TabSeparatedWithNames|FORMAT\\s+TabSeparatedWithNamesAndTypes|FORMAT\\s+TabSeparatedRaw|FORMAT\\s+BlockTabSeparated|FORMAT\\s+CSVWithNames|FORMAT\\s+CSV|FORMAT\\s+JSON|FORMAT\\s+TabSeparated";
55 57
 
@@ -63,8 +65,7 @@  discard block
 block discarded – undo
63 65
                 $this->format=trim(str_ireplace('format','',$matches[0][0]));
64 66
 
65 67
             }
66
-        }
67
-        else {
68
+        } else {
68 69
             $this->sql = $this->sql . ' FORMAT ' . $this->format;
69 70
         }
70 71
 
Please login to merge, or discard this patch.