Passed
Push — master ( 79e32b...97290c )
by P.R.
03:59
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
         {
238 238
           $args[$key] = Html::generateElement('span',
239 239
                                               ['class' => 'string',
240
-                                               'title' => mb_substr($value, 0, 512)],
240
+                                                'title' => mb_substr($value, 0, 512)],
241 241
                                               mb_substr($value, 0, 32).'...');
242 242
         }
243 243
         else
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -210,9 +210,9 @@  discard block
 block discarded – undo
210 210
     foreach ($args as $key => $value)
211 211
     {
212 212
       $count++;
213
-      if ($count>=7)
213
+      if ($count >= 7)
214 214
       {
215
-        if ($count>7)
215
+        if ($count > 7)
216 216
         {
217 217
           unset($args[$key]);
218 218
         }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
       }
234 234
       elseif (is_string($value))
235 235
       {
236
-        if (mb_strlen($value)>32)
236
+        if (mb_strlen($value) > 32)
237 237
         {
238 238
           $args[$key] = Html::generateElement('span',
239 239
                                               ['class' => 'string',
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
     // div with lines numbers.
330 330
     fwrite($this->handle, '<div class="lines">');
331 331
     fwrite($this->handle, Html::generateTag('ol', ['start' => $first]));
332
-    for ($i = $first; $i<=$last; $i++)
332
+    for ($i = $first; $i <= $last; $i++)
333 333
     {
334 334
       fwrite($this->handle, '<li></li>');
335 335
     }
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 
339 339
     // The code as plain text (without markup and tags).
340 340
     fwrite($this->handle, '<pre><code class="php">');
341
-    for ($i = $first; $i<=$last; $i++)
341
+    for ($i = $first; $i <= $last; $i++)
342 342
     {
343 343
       fwrite($this->handle, Html::txt2Html($lines[$i - 1]));
344 344
       fwrite($this->handle, "\n");
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
     // div for markup.
349 349
     fwrite($this->handle, '<div class="markup">');
350 350
     fwrite($this->handle, Html::generateTag('ol', ['start' => $first]));
351
-    for ($i = $first; $i<=$last; $i++)
351
+    for ($i = $first; $i <= $last; $i++)
352 352
     {
353 353
       fwrite($this->handle, Html::generateElement('li', ['class' => ($i==$line) ? 'error' : null], ''));
354 354
     }
Please login to merge, or discard this patch.