Completed
Push — master ( 2f6da3...fdf5fc )
by Jacob
02:08
created
src/Display.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             )
34 34
         );
35 35
         foreach ($console->getLogs() as $log) {
36
-            switch($log['type']) {
36
+            switch ($log['type']) {
37 37
                 case 'log':
38 38
                     $message = array(
39 39
                         'data' => print_r($log['data'], true),
@@ -162,6 +162,6 @@  discard block
 block discarded – undo
162 162
     public function __invoke()
163 163
     {
164 164
         $output = $this->output;
165
-        require_once __DIR__ .'/../asset/display.tpl.php';
165
+        require_once __DIR__.'/../asset/display.tpl.php';
166 166
     }
167 167
 }	
Please login to merge, or discard this patch.
src/PhpQuickProfiler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
       "largest" => 0,
49 49
     );
50 50
 
51
-    foreach($files as $file) {
51
+    foreach ($files as $file) {
52 52
       $size = filesize($file);
53 53
       $fileList[] = array(
54 54
           'name' => $file,
55 55
           'size' => $this->getReadableFileSize($size)
56 56
         );
57 57
       $fileTotals['size'] += $size;
58
-      if($size > $fileTotals['largest']) $fileTotals['largest'] = $size;
58
+      if ($size > $fileTotals['largest']) $fileTotals['largest'] = $size;
59 59
     }
60 60
     
61 61
     $fileTotals['size'] = $this->getReadableFileSize($fileTotals['size']);
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
     $queryTotals['time'] = 0;
93 93
     $queries = array();
94 94
     
95
-    if($this->db != '') {
95
+    if ($this->db != '') {
96 96
       $queryTotals['count'] += $this->db->queryCount;
97
-      foreach($this->db->queries as $query) {
97
+      foreach ($this->db->queries as $query) {
98 98
         $query = $this->attemptToExplainQuery($query);
99 99
         $queryTotals['time'] += $query['time'];
100 100
         $query['time'] = $this->getReadableTime($query['time']);
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
       $sql = 'EXPLAIN '.$query['sql'];
117 117
       $rs = $this->db->query($sql);
118 118
     }
119
-    catch(Exception $e) {}
120
-    if($rs) {
119
+    catch (Exception $e) {}
120
+    if ($rs) {
121 121
       $row = mysql_fetch_array($rs, MYSQL_ASSOC);
122 122
       $query['explain'] = $row;
123 123
     }
Please login to merge, or discard this patch.