Completed
Push — master ( 61a713...9596c5 )
by P.R.
02:13
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   +8 added lines, -8 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);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
   {
209 209
     if ($name===null || $name==='')
210 210
     {
211
-      fwrite($this->handle, Html::generateElement('th', ['class' => 'id', 'id' => $id], (string)$id));
211
+      fwrite($this->handle, Html::generateElement('th', ['class' => 'id', 'id' => $id], (string) $id));
212 212
     }
213 213
     else
214 214
     {
@@ -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
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         throw new \InvalidArgumentException(sprintf('$name has unexpected type %s', gettype($name)));
234 234
       }
235 235
 
236
-      fwrite($this->handle, Html::generateElement('th', ['class' => 'id'], (string)$id));
236
+      fwrite($this->handle, Html::generateElement('th', ['class' => 'id'], (string) $id));
237 237
 
238 238
       fwrite($this->handle, Html::generateElement('th',
239 239
                                                   ['class' => $class,
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   +9 added lines, -9 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',
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
       }
260 260
       elseif (is_numeric($value))
261 261
       {
262
-        $args[$key] = Html::generateElement('span', ['class' => 'number'], (string)$value);
262
+        $args[$key] = Html::generateElement('span', ['class' => 'number'], (string) $value);
263 263
       }
264 264
       else
265 265
       {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
       }
277 277
       elseif ($isAssoc)
278 278
       {
279
-        $tmp = Html::generateElement('span', ['class' => 'number'], (string)$key);
279
+        $tmp = Html::generateElement('span', ['class' => 'number'], (string) $key);
280 280
         $tmp .= ' => ';
281 281
         $tmp .= $args[$key];
282 282
 
@@ -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
     }
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
   {
370 370
     fwrite($this->handle, '<p class="file">');
371 371
 
372
-    fwrite($this->handle, Html::generateElement('span', ['class' => 'level'], (string)$number));
372
+    fwrite($this->handle, Html::generateElement('span', ['class' => 'level'], (string) $number));
373 373
 
374 374
     if (isset($item['file']))
375 375
     {
Please login to merge, or discard this patch.