Completed
Pull Request — master (#40)
by Lars
05:46
created
src/voku/db/Debug.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
     $this->logger(
140 140
         [
141 141
             'error',
142
-            '<strong>' . \date(
142
+            '<strong>'.\date(
143 143
                 'd. m. Y G:i:s'
144
-            ) . ' (' . $fileInfo['file'] . ' line: ' . $fileInfo['line'] . ') (sql-error):</strong> ' . $error . '<br>',
144
+            ).' ('.$fileInfo['file'].' line: '.$fileInfo['line'].') (sql-error):</strong> '.$error.'<br>',
145 145
         ]
146 146
     );
147 147
 
@@ -157,16 +157,16 @@  discard block
 block discarded – undo
157 157
 
158 158
       if (\PHP_SAPI === 'cli') {
159 159
         echo "\n";
160
-        echo 'file:line -> ' . $fileInfo['file'] . ':' . $fileInfo['line'] . "\n";
161
-        echo 'error: ' . \str_replace(["\r\n", "\n", "\r"], '', $error);
160
+        echo 'file:line -> '.$fileInfo['file'].':'.$fileInfo['line']."\n";
161
+        echo 'error: '.\str_replace(["\r\n", "\n", "\r"], '', $error);
162 162
         echo "\n";
163 163
       } else {
164 164
         echo '
165
-        <div class="OBJ-mysql-box" style="border: ' . $box_border . '; background: ' . $box_bg . '; padding: 10px; margin: 10px;">
165
+        <div class="OBJ-mysql-box" style="border: ' . $box_border.'; background: '.$box_bg.'; padding: 10px; margin: 10px;">
166 166
           <b style="font-size: 14px;">MYSQL Error:</b>
167 167
           <code style="display: block;">
168
-            file:line -> ' . $fileInfo['file'] . ':' . $fileInfo['line'] . '
169
-            ' . $error . '
168
+            file:line -> ' . $fileInfo['file'].':'.$fileInfo['line'].'
169
+            ' . $error.'
170 170
           </code>
171 171
         </div>
172 172
         ';
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
       /** @noinspection PhpUsageOfSilenceOperatorInspection */
309 309
       $infoExtra = @\mysqli_info($tmpLink);
310 310
       if ($infoExtra) {
311
-        $infoExtra = ' | info => ' . $infoExtra;
311
+        $infoExtra = ' | info => '.$infoExtra;
312 312
       }
313 313
     }
314 314
 
@@ -316,14 +316,14 @@  discard block
 block discarded – undo
316 316
     // logging
317 317
     //
318 318
 
319
-    $info = 'time => ' . \round($duration, 5) . ' | results => ' . (int)$results . $infoExtra . ' | SQL => ' . UTF8::htmlentities($sql);
319
+    $info = 'time => '.\round($duration, 5).' | results => '.(int)$results.$infoExtra.' | SQL => '.UTF8::htmlentities($sql);
320 320
 
321 321
     $fileInfo = $this->getFileAndLineFromSql();
322 322
 
323 323
     return $this->logger(
324 324
         [
325 325
             $logLevel,
326
-            '<strong>' . \date('d. m. Y G:i:s') . ' (' . $fileInfo['file'] . ' line: ' . $fileInfo['line'] . '):</strong> ' . $info . '<br>',
326
+            '<strong>'.\date('d. m. Y G:i:s').' ('.$fileInfo['file'].' line: '.$fileInfo['line'].'):</strong> '.$info.'<br>',
327 327
             'sql',
328 328
         ]
329 329
     );
@@ -389,21 +389,21 @@  discard block
 block discarded – undo
389 389
         $this->logger(
390 390
             [
391 391
                 'debug',
392
-                $subject . ' | ' . $htmlBody,
392
+                $subject.' | '.$htmlBody,
393 393
             ]
394 394
         );
395 395
       } elseif ($priority > 3) {
396 396
         $this->logger(
397 397
             [
398 398
                 'error',
399
-                $subject . ' | ' . $htmlBody,
399
+                $subject.' | '.$htmlBody,
400 400
             ]
401 401
         );
402 402
       } elseif ($priority < 3) {
403 403
         $this->logger(
404 404
             [
405 405
                 'info',
406
-                $subject . ' | ' . $htmlBody,
406
+                $subject.' | '.$htmlBody,
407 407
             ]
408 408
         );
409 409
       }
Please login to merge, or discard this patch.