Completed
Push — master ( 112c81...95d2b9 )
by Jacob
02:48 queued 19s
created
asset/display.tpl.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$css = file_get_contents(__DIR__ . '/pQp.css');
3
+$css = file_get_contents(__DIR__.'/pQp.css');
4 4
 		
5 5
 echo <<<JAVASCRIPT
6 6
 <!-- JavaScript -->
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
 echo '<div id="pqp-console" class="pqp-box">';
133 133
 
134
-if(count($output['console']) ==  0) {
134
+if (count($output['console']) == 0) {
135 135
 	echo '<h3>This panel has no log items.</h3>';
136 136
 }
137 137
 else {
@@ -148,29 +148,29 @@  discard block
 block discarded – undo
148 148
 		<table class="main" cellspacing="0">';
149 149
 		
150 150
 		$class = '';
151
-		foreach($output['console']['messages'] as $log) {
151
+		foreach ($output['console']['messages'] as $log) {
152 152
 			echo '<tr class="log-'.$log['type'].'">
153 153
 				<td class="type">'.$log['type'].'</td>
154 154
 				<td class="'.$class.'">';
155
-			if($log['type'] == 'log') {
155
+			if ($log['type'] == 'log') {
156 156
 				echo '<div><pre>'.$log['data'].'</pre></div>';
157 157
 			}
158
-			elseif($log['type'] == 'memory') {
158
+			elseif ($log['type'] == 'memory') {
159 159
 				echo '<div><pre>'.$log['data'].'</pre>';
160 160
           if (!empty($log['data_type'])) {
161 161
             echo '<em>'.$log['data_type'].'</em>: ';
162 162
           }
163 163
         echo $log['name'].' </div>';
164 164
 			}
165
-			elseif($log['type'] == 'speed') {
165
+			elseif ($log['type'] == 'speed') {
166 166
 				echo '<div><pre>'.$log['data'].'</pre> <em>'.$log['name'].'</em></div>';
167 167
 			}
168
-			elseif($log['type'] == 'error') {
168
+			elseif ($log['type'] == 'error') {
169 169
 				echo '<div><em>Line '.$log['line'].'</em> : '.$log['data'].' <pre>'.$log['file'].'</pre></div>';
170 170
 			}
171 171
 		
172 172
 			echo '</td></tr>';
173
-			if($class == '') $class = 'alt';
173
+			if ($class == '') $class = 'alt';
174 174
 			else $class = '';
175 175
 		}
176 176
 			
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
 echo '<div id="pqp-speed" class="pqp-box">';
183 183
 
184
-if($output['console']['count']['speed'] ==  0) {
184
+if ($output['console']['count']['speed'] == 0) {
185 185
 	echo '<h3>This panel has no log items.</h3>';
186 186
 }
187 187
 else {
@@ -192,13 +192,13 @@  discard block
 block discarded – undo
192 192
 		<table class="main" cellspacing="0">';
193 193
 		
194 194
 		$class = '';
195
-		foreach($output['console']['messages'] as $log) {
196
-			if($log['type'] == 'speed') {
195
+		foreach ($output['console']['messages'] as $log) {
196
+			if ($log['type'] == 'speed') {
197 197
 				echo '<tr class="log-'.$log['type'].'">
198 198
 				<td class="'.$class.'">';
199 199
 				echo '<div><pre>'.$log['data'].'</pre> <em>'.$log['name'].'</em></div>';
200 200
 				echo '</td></tr>';
201
-				if($class == '') $class = 'alt';
201
+				if ($class == '') $class = 'alt';
202 202
 				else $class = '';
203 203
 			}
204 204
 		}
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
 echo '<div id="pqp-queries" class="pqp-box">';
212 212
 
213
-if($output['queryTotals']['count'] ==  0) {
213
+if ($output['queryTotals']['count'] == 0) {
214 214
 	echo '<h3>This panel has no log items.</h3>';
215 215
 }
216 216
 else {
@@ -222,10 +222,10 @@  discard block
 block discarded – undo
222 222
 		<table class="main" cellspacing="0">';
223 223
 		
224 224
 		$class = '';
225
-		foreach($output['queries'] as $query) {
225
+		foreach ($output['queries'] as $query) {
226 226
 			echo '<tr>
227 227
 				<td class="'.$class.'">'.$query['sql'];
228
-			if($query['explain']) {
228
+			if ($query['explain']) {
229 229
 					echo '<em>
230 230
 						Possible keys: <b>'.$query['explain']['possible_keys'].'</b> &middot; 
231 231
 						Key Used: <b>'.$query['explain']['key'].'</b> &middot; 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 					</em>';
236 236
 			}
237 237
 			echo '</td></tr>';
238
-			if($class == '') $class = 'alt';
238
+			if ($class == '') $class = 'alt';
239 239
 			else $class = '';
240 240
 		}
241 241
 			
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 
247 247
 echo '<div id="pqp-memory" class="pqp-box">';
248 248
 
249
-if($output['console']['count']['memory'] ==  0) {
249
+if ($output['console']['count']['memory'] == 0) {
250 250
 	echo '<h3>This panel has no log items.</h3>';
251 251
 }
252 252
 else {
@@ -257,8 +257,8 @@  discard block
 block discarded – undo
257 257
 		<table class="main" cellspacing="0">';
258 258
 		
259 259
 		$class = '';
260
-		foreach($output['console']['messages'] as $log) {
261
-			if($log['type'] == 'memory') {
260
+		foreach ($output['console']['messages'] as $log) {
261
+			if ($log['type'] == 'memory') {
262 262
 				echo '<tr class="log-'.$log['type'].'">';
263 263
 				echo '<td class="'.$class.'"><b>'.$log['data'].'</b>';
264 264
           if ($log['data_type']) {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
           }
267 267
         echo $log['name'].'</td>';
268 268
 				echo '</tr>';
269
-				if($class == '') $class = 'alt';
269
+				if ($class == '') $class = 'alt';
270 270
 				else $class = '';
271 271
 			}
272 272
 		}
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 
279 279
 echo '<div id="pqp-files" class="pqp-box">';
280 280
 
281
-if($output['fileTotals']['count'] ==  0) {
281
+if ($output['fileTotals']['count'] == 0) {
282 282
 	echo '<h3>This panel has no log items.</h3>';
283 283
 }
284 284
 else {
@@ -289,10 +289,10 @@  discard block
 block discarded – undo
289 289
 		 </table>
290 290
 		<table class="main" cellspacing="0">';
291 291
 		
292
-		$class ='';
293
-		foreach($output['files'] as $file) {
292
+		$class = '';
293
+		foreach ($output['files'] as $file) {
294 294
 			echo '<tr><td class="'.$class.'"><b>'.$file['size'].'</b> '.$file['name'].'</td></tr>';
295
-			if($class == '') $class = 'alt';
295
+			if ($class == '') $class = 'alt';
296 296
 			else $class = '';
297 297
 		}
298 298
 			
Please login to merge, or discard this patch.
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.