Passed
Push — master ( 00ac51...bca565 )
by P.R.
02:10
created
src/CoreErrorLogger.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -229,29 +229,29 @@  discard block
 block discarded – undo
229 229
       if (is_object($value))
230 230
       {
231 231
         $out[$key] = Html::htmlNested(['tag'  => 'span',
232
-                                       'attr' => ['class' => 'class'],
233
-                                       'text' => get_class($value)]);
232
+                                        'attr' => ['class' => 'class'],
233
+                                        'text' => get_class($value)]);
234 234
       }
235 235
       elseif (is_bool($value))
236 236
       {
237 237
         $out[$key] = Html::htmlNested(['tag'  => 'span',
238
-                                       'attr' => ['class' => 'keyword'],
239
-                                       'text' => ($value ? 'true' : 'false')]);
238
+                                        'attr' => ['class' => 'keyword'],
239
+                                        'text' => ($value ? 'true' : 'false')]);
240 240
       }
241 241
       elseif (is_string($value))
242 242
       {
243 243
         if (mb_strlen($value)>32)
244 244
         {
245 245
           $out[$key] = Html::htmlNested(['tag'  => 'span',
246
-                                         'attr' => ['class' => 'string',
246
+                                          'attr' => ['class' => 'string',
247 247
                                                     'title' => mb_substr($value, 0, 512)],
248
-                                         'text' => mb_substr($value, 0, 32).'...']);
248
+                                          'text' => mb_substr($value, 0, 32).'...']);
249 249
         }
250 250
         else
251 251
         {
252 252
           $out[$key] = Html::htmlNested(['tag'  => 'span',
253
-                                         'attr' => ['class' => 'string'],
254
-                                         'text' => $value]);
253
+                                          'attr' => ['class' => 'string'],
254
+                                          'text' => $value]);
255 255
         }
256 256
       }
257 257
       elseif (is_array($value))
@@ -265,14 +265,14 @@  discard block
 block discarded – undo
265 265
       elseif (is_resource($value))
266 266
       {
267 267
         $out[$key] = Html::htmlNested(['tag'  => 'span',
268
-                                       'attr' => ['class' => 'keyword'],
269
-                                       'text' => get_resource_type($value)]);
268
+                                        'attr' => ['class' => 'keyword'],
269
+                                        'text' => get_resource_type($value)]);
270 270
       }
271 271
       elseif (is_numeric($value))
272 272
       {
273 273
         $out[$key] = Html::htmlNested(['tag'  => 'span',
274
-                                       'attr' => ['class' => 'number'],
275
-                                       'text' => $value]);
274
+                                        'attr' => ['class' => 'number'],
275
+                                        'text' => $value]);
276 276
       }
277 277
       else
278 278
       {
@@ -282,8 +282,8 @@  discard block
 block discarded – undo
282 282
       if (is_string($key))
283 283
       {
284 284
         $tmp = Html::htmlNested(['tag'  => 'span',
285
-                                 'attr' => ['class' => 'string'],
286
-                                 'text' => $key]);
285
+                                  'attr' => ['class' => 'string'],
286
+                                  'text' => $key]);
287 287
         $tmp .= ' => ';
288 288
         $tmp .= (strpos($key, 'password')===false) ? $out[$key] : str_repeat('*', 12);
289 289
 
@@ -292,8 +292,8 @@  discard block
 block discarded – undo
292 292
       elseif ($isAssoc)
293 293
       {
294 294
         $tmp = Html::htmlNested(['tag'  => 'span',
295
-                                 'attr' => ['class' => 'number'],
296
-                                 'text' => $key]);
295
+                                  'attr' => ['class' => 'number'],
296
+                                  'text' => $key]);
297 297
         $tmp .= ' => ';
298 298
         $tmp .= $out[$key];
299 299
 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     // div with lines numbers.
353 353
     fwrite($this->handle, '<div class="lines">');
354 354
     fwrite($this->handle, str_replace('/>', '>', Html::htmlNested(['tag'  => 'ol',
355
-                                                                   'attr' => ['start' => $first]])));
355
+                                                                    'attr' => ['start' => $first]])));
356 356
     for ($i = $first; $i<=$last; $i++)
357 357
     {
358 358
       fwrite($this->handle, '<li></li>');
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
     // div for markup.
373 373
     fwrite($this->handle, '<div class="markup">');
374 374
     fwrite($this->handle, str_replace('/>', '>', Html::htmlNested(['tag'  => 'ol',
375
-                                                                   'attr' => ['start' => $first]])));
375
+                                                                    'attr' => ['start' => $first]])));
376 376
     for ($i = $first; $i<=$last; $i++)
377 377
     {
378 378
       fwrite($this->handle, Html::htmlNested(['tag'  => 'li',
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     foreach ($args as $key => $value)
221 221
     {
222 222
       $count++;
223
-      if ($count>=7)
223
+      if ($count >= 7)
224 224
       {
225 225
         $out[$key] = '...';
226 226
         break;
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
       }
241 241
       elseif (is_string($value))
242 242
       {
243
-        if (mb_strlen($value)>32)
243
+        if (mb_strlen($value) > 32)
244 244
         {
245 245
           $out[$key] = Html::htmlNested(['tag'  => 'span',
246 246
                                          'attr' => ['class' => 'string',
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     fwrite($this->handle, '<div class="lines">');
354 354
     fwrite($this->handle, str_replace('/>', '>', Html::htmlNested(['tag'  => 'ol',
355 355
                                                                    'attr' => ['start' => $first]])));
356
-    for ($i = $first; $i<=$last; $i++)
356
+    for ($i = $first; $i <= $last; $i++)
357 357
     {
358 358
       fwrite($this->handle, '<li></li>');
359 359
     }
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 
363 363
     // The code as plain text (without markup and tags).
364 364
     fwrite($this->handle, '<pre><code class="php">');
365
-    for ($i = $first; $i<=$last; $i++)
365
+    for ($i = $first; $i <= $last; $i++)
366 366
     {
367 367
       fwrite($this->handle, Html::txt2Html($lines[$i - 1]));
368 368
       fwrite($this->handle, "\n");
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
     fwrite($this->handle, '<div class="markup">');
374 374
     fwrite($this->handle, str_replace('/>', '>', Html::htmlNested(['tag'  => 'ol',
375 375
                                                                    'attr' => ['start' => $first]])));
376
-    for ($i = $first; $i<=$last; $i++)
376
+    for ($i = $first; $i <= $last; $i++)
377 377
     {
378 378
       fwrite($this->handle, Html::htmlNested(['tag'  => 'li',
379 379
                                               'attr' => ['class' => ($i==$line) ? 'error' : null],
Please login to merge, or discard this patch.
src/HtmlVarWriter.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
                               'text' => 'array']);
94 94
     $html .= ', ';
95 95
     $html .= Html::htmlNested(['tag'  => 'a',
96
-                               'attr' => ['href' => '#'.$ref],
97
-                               'text' => 'see '.$ref]);
96
+                                'attr' => ['href' => '#'.$ref],
97
+                                'text' => 'see '.$ref]);
98 98
 
99 99
     fwrite($this->handle, '<tr>');
100 100
     $this->writeName($name);
@@ -183,8 +183,8 @@  discard block
 block discarded – undo
183 183
                               'text' => $class]);
184 184
     $html .= ', ';
185 185
     $html .= Html::htmlNested(['tag'  => 'a',
186
-                               'attr' => ['href' => '#'.$ref],
187
-                               'text' => 'see '.$ref]);
186
+                                'attr' => ['href' => '#'.$ref],
187
+                                'text' => 'see '.$ref]);
188 188
 
189 189
     fwrite($this->handle, '<tr>');
190 190
     $this->writeName($name);
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     {
237 237
       fwrite($this->handle, Html::htmlNested(['tag'  => 'th',
238 238
                                               'attr' => ['class' => 'id',
239
-                                                         'id'    => $id],
239
+                                                          'id'    => $id],
240 240
                                               'text' => $id]));
241 241
     }
242 242
     else
@@ -268,8 +268,8 @@  discard block
 block discarded – undo
268 268
 
269 269
       fwrite($this->handle, Html::htmlNested(['tag'  => 'th',
270 270
                                               'attr' => ['class' => $class,
271
-                                                         'id'    => $id,
272
-                                                         'title' => $title],
271
+                                                          'id'    => $id,
272
+                                                          'title' => $title],
273 273
                                               'text' => $text]));
274 274
     }
275 275
   }
@@ -295,8 +295,8 @@  discard block
 block discarded – undo
295 295
     {
296 296
       $html .= ', ';
297 297
       $html .= Html::htmlNested(['tag'  => 'a',
298
-                                 'attr' => ['href' => '#'.$ref],
299
-                                 'text' => 'see '.$ref]);
298
+                                  'attr' => ['href' => '#'.$ref],
299
+                                  'text' => 'see '.$ref]);
300 300
     }
301 301
 
302 302
     fwrite($this->handle, '<tr>');
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
    */
119 119
   public function writeFloat(?int $id, ?int $ref, float &$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
   //--------------------------------------------------------------------------------------------------------------------
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
    */
128 128
   public function writeInt(?int $id, ?int $ref, int &$value, $name): void
129 129
   {
130
-    $this->writeScalar($id, $ref, $name, (string)$value, 'number');
130
+    $this->writeScalar($id, $ref, $name, (string) $value, 'number');
131 131
   }
132 132
 
133 133
   //--------------------------------------------------------------------------------------------------------------------
@@ -245,16 +245,16 @@  discard block
 block discarded – undo
245 245
 
246 246
       if (is_int($name))
247 247
       {
248
-        $text  = (string)$name;
248
+        $text  = (string) $name;
249 249
         $class = 'number';
250 250
       }
251 251
       elseif (is_string($name))
252 252
       {
253 253
         $class = 'string';
254
-        $text  = mb_strimwidth((string)$name, 0, 20, '...');
254
+        $text  = mb_strimwidth((string) $name, 0, 20, '...');
255 255
         if ($text!=$name)
256 256
         {
257
-          $title = mb_strimwidth((string)$name, 0, 512, '...');
257
+          $title = mb_strimwidth((string) $name, 0, 512, '...');
258 258
         }
259 259
       }
260 260
       else
Please login to merge, or discard this patch.