Test Failed
Push — master ( 0d0381...aed6b1 )
by P.R.
01:58
created
src/HtmlVarWriter.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -237,8 +237,8 @@
 block discarded – undo
237 237
 
238 238
       fwrite($this->handle, Html::generateElement('th',
239 239
                                                   ['class' => $class,
240
-                                                   'id'    => $id,
241
-                                                   'title' => $title],
240
+                                                    'id'    => $id,
241
+                                                    'title' => $title],
242 242
                                                   $text));
243 243
     }
244 244
   }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
    */
110 110
   public function writeFloat(?int $id, ?int $ref, float &$value, $name): void
111 111
   {
112
-    $this->writeScalar($id, $ref, $name, (string)$value, 'number');
112
+    $this->writeScalar($id, $ref, $name, (string) $value, 'number');
113 113
   }
114 114
 
115 115
   //--------------------------------------------------------------------------------------------------------------------
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
    */
119 119
   public function writeInt(?int $id, ?int $ref, int &$value, $name): void
120 120
   {
121
-    $this->writeScalar($id, $ref, $name, (string)$value, 'number');
121
+    $this->writeScalar($id, $ref, $name, (string) $value, 'number');
122 122
   }
123 123
 
124 124
   //--------------------------------------------------------------------------------------------------------------------
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
   {
169 169
     $html = Html::generateElement('span', ['class' => 'class'], $class);
170 170
     $html .= ', ';
171
-    $html .= Html::generateElement('a', ['href' => '#'.(string)$ref], 'see '.(string)$ref);
171
+    $html .= Html::generateElement('a', ['href' => '#'.(string) $ref], 'see '.(string) $ref);
172 172
 
173 173
     fwrite($this->handle, '<tr>');
174 174
     $this->writeName($name);
@@ -216,16 +216,16 @@  discard block
 block discarded – undo
216 216
 
217 217
       if (is_int($name))
218 218
       {
219
-        $text  = (string)$name;
219
+        $text  = (string) $name;
220 220
         $class = 'number';
221 221
       }
222 222
       elseif (is_string($name))
223 223
       {
224 224
         $class = 'string';
225
-        $text  = mb_strimwidth((string)$name, 0, 20, '...');
225
+        $text  = mb_strimwidth((string) $name, 0, 20, '...');
226 226
         if ($text!=$name)
227 227
         {
228
-          $title = mb_strimwidth((string)$name, 0, 512, '...');
228
+          $title = mb_strimwidth((string) $name, 0, 512, '...');
229 229
         }
230 230
       }
231 231
       else
Please login to merge, or discard this patch.
src/CoreErrorLogger.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -231,9 +231,9 @@
 block discarded – undo
231 231
         if (mb_strlen($value)>32)
232 232
         {
233 233
           $out[$key] = Html::generateElement('span',
234
-                                             ['class' => 'string',
234
+                                              ['class' => 'string',
235 235
                                               'title' => mb_substr($value, 0, 512)],
236
-                                             mb_substr($value, 0, 32).'...');
236
+                                              mb_substr($value, 0, 32).'...');
237 237
         }
238 238
         else
239 239
         {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     foreach ($args as $key => $value)
213 213
     {
214 214
       $count++;
215
-      if ($count>=7)
215
+      if ($count >= 7)
216 216
       {
217 217
         $out[$key] = '...';
218 218
         break;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
       }
229 229
       elseif (is_string($value))
230 230
       {
231
-        if (mb_strlen($value)>32)
231
+        if (mb_strlen($value) > 32)
232 232
         {
233 233
           $out[$key] = Html::generateElement('span',
234 234
                                              ['class' => 'string',
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     // div with lines numbers.
325 325
     fwrite($this->handle, '<div class="lines">');
326 326
     fwrite($this->handle, Html::generateTag('ol', ['start' => $first]));
327
-    for ($i = $first; $i<=$last; $i++)
327
+    for ($i = $first; $i <= $last; $i++)
328 328
     {
329 329
       fwrite($this->handle, '<li></li>');
330 330
     }
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 
334 334
     // The code as plain text (without markup and tags).
335 335
     fwrite($this->handle, '<pre><code class="php">');
336
-    for ($i = $first; $i<=$last; $i++)
336
+    for ($i = $first; $i <= $last; $i++)
337 337
     {
338 338
       fwrite($this->handle, Html::txt2Html($lines[$i - 1]));
339 339
       fwrite($this->handle, "\n");
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
     // div for markup.
344 344
     fwrite($this->handle, '<div class="markup">');
345 345
     fwrite($this->handle, Html::generateTag('ol', ['start' => $first]));
346
-    for ($i = $first; $i<=$last; $i++)
346
+    for ($i = $first; $i <= $last; $i++)
347 347
     {
348 348
       fwrite($this->handle, Html::generateElement('li', ['class' => ($i==$line) ? 'error' : null], ''));
349 349
     }
Please login to merge, or discard this patch.