Test Failed
Push — develop ( 82dcf2...2060e9 )
by nguereza
13:58
created
src/Kernel/HttpKernel.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
  * @package Platine\Framework\Kernel
68 68
  * @template T
69 69
  */
70
-class HttpKernel extends BaseKernel implements RequestHandlerInterface
71
-{
70
+class HttpKernel extends BaseKernel implements RequestHandlerInterface {
72 71
     /**
73 72
      * The list of middleware's
74 73
      * @var MiddlewareInterface[]
Please login to merge, or discard this patch.
src/Helper/Timer/Watch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
     {
186 186
         $result = [];
187 187
         foreach ($this->timers as $name => /** @var Timer $timer */ $timer) {
188
-            $result[$name] = (int)($timer->getTime() * 1000); // in millisecond
188
+            $result[$name] = (int) ($timer->getTime() * 1000); // in millisecond
189 189
         }
190 190
         return $result;
191 191
     }
Please login to merge, or discard this patch.
src/Helper/Image.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
         }
111 111
 
112 112
         $scale = 1;
113
-        $scaleWidth = (int)($width / $this->width);
114
-        $scaleHeight = (int)($height / $this->height);
113
+        $scaleWidth = (int) ($width / $this->width);
114
+        $scaleHeight = (int) ($height / $this->height);
115 115
         if ($useWidth) {
116 116
             $scale = $scaleWidth;
117 117
         } elseif ($useWidth === false) {
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
             return;
129 129
         }
130 130
 
131
-        $newWidth = (int)($this->width * $scale);
132
-        $newHeight = (int)($this->height * $scale);
133
-        $xpos = (int)(($width - $newWidth) / 2);
134
-        $ypos = (int)(($height - $newHeight) / 2);
131
+        $newWidth = (int) ($this->width * $scale);
132
+        $newHeight = (int) ($this->height * $scale);
133
+        $xpos = (int) (($width - $newWidth) / 2);
134
+        $ypos = (int) (($height - $newHeight) / 2);
135 135
         $oldImage = $this->image;
136 136
         $this->image = imagecreatetruecolor($width, $height);
137 137
         if ($this->mimetype === 'image/png') {
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
      * @param array<mixed>|int|float|bool ...$args
342 342
      * @return void
343 343
      */
344
-    public function filter(int $filter, array|int|float|bool ...$args): void
344
+    public function filter(int $filter, array | int | float | bool ...$args): void
345 345
     {
346 346
         imagefilter($this->image, $filter, $args);
347 347
     }
Please login to merge, or discard this patch.
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
  * @class Image
41 41
  * @package Platine\Framework\Helper
42 42
  */
43
-class Image
44
-{
43
+class Image {
45 44
     /**
46 45
      * The current width of the image
47 46
      * @var int
@@ -76,8 +75,7 @@  discard block
 block discarded – undo
76 75
      * Create new instance
77 76
      * @param string $filePath
78 77
      */
79
-    public function __construct(protected string $filePath)
80
-    {
78
+    public function __construct(protected string $filePath) {
81 79
         if (extension_loaded('gd') === false) {
82 80
             throw new RuntimeException('PHP GD extension is not installed or enabled');
83 81
         }
@@ -414,13 +412,15 @@  discard block
 block discarded – undo
414 412
             $color = substr($color, 1);
415 413
         }
416 414
 
417
-        if (strlen($color) === 6) { // like ff34dq
415
+        if (strlen($color) === 6) {
416
+// like ff34dq
418 417
             [$r, $g, $b] = [
419 418
                 $color[0] . $color[1],
420 419
                 $color[2] . $color[3],
421 420
                 $color[4] . $color[5],
422 421
             ];
423
-        } elseif (strlen($color) === 3) { // like f4c => ff44cc
422
+        } elseif (strlen($color) === 3) {
423
+// like f4c => ff44cc
424 424
             [$r, $g, $b] = [
425 425
                 $color[0] . $color[0],
426 426
                 $color[1] . $color[1],
Please login to merge, or discard this patch.