Passed
Push — master ( 1b31ec...bd8224 )
by Mattia
10:45 queued 05:36
created
app/Http/Middleware/CleanupUuidOrName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             $route[2]['username'] = $this->cleanUsername($route[2]['username']);
22 22
         }
23 23
 
24
-        $request->setRouteResolver(static function () use ($route) {
24
+        $request->setRouteResolver(static function() use ($route) {
25 25
             return $route;
26 26
         });
27 27
 
Please login to merge, or discard this patch.
app/Http/Controllers/Api/IsometricAvatarController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function serveDefault($size = 0): Response
42 42
     {
43
-        $image = $this->cache()->remember('rendering.system.default_isometric_avatar', 3600, function () use ($size) {
43
+        $image = $this->cache()->remember('rendering.system.default_isometric_avatar', 3600, function() use ($size) {
44 44
             return (string) $this->rendering->isometricAvatar(null, (int) $size);
45 45
         });
46 46
 
Please login to merge, or discard this patch.
app/Http/Controllers/Api/AvatarController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     public function serveDefault($size = 0): Response
46 46
     {
47
-        $image = $this->cache()->remember('rendering.system.default_avatar', 3600, function () use ($size) {
47
+        $image = $this->cache()->remember('rendering.system.default_avatar', 3600, function() use ($size) {
48 48
             return (string) $this->rendering->avatar(
49 49
                 null,
50 50
                 (int) $size
Please login to merge, or discard this patch.
app/Minecraft/MojangClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     private function sendApiRequest(string $method, string $url): ?array
89 89
     {
90 90
         try {
91
-            return \Cache::remember($this->getCacheKey($method, $url), self::CACHE_TTL, function () use ($method, $url) {
91
+            return \Cache::remember($this->getCacheKey($method, $url), self::CACHE_TTL, function() use ($method, $url) {
92 92
                 $response = $this->httpClient->request($method, $url);
93 93
                 // No Content
94 94
                 if ($response->getStatusCode() === 204) {
Please login to merge, or discard this patch.
app/Image/Components/Coordinates.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public const HEAD = [
15 15
         Side::TOP => [[8, 0], [16, 8]],
16 16
         Side::BOTTOM => [[16, 0], [24, 8]],
17
-        Side::FRONT => [[8, 8],  [16, 16]],
17
+        Side::FRONT => [[8, 8], [16, 16]],
18 18
         Side::BACK => [[24, 8], [32, 16]],
19 19
         Side::RIGHT => [[0, 8], [8, 16]],
20 20
         Side::LEFT => [[16, 8], [24, 16]],
Please login to merge, or discard this patch.
app/Http/Controllers/Api/SkinFrontController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function serveDefault($size = 0): Response
40 40
     {
41
-        $image = $this->cache()->remember('rendering.system.default_skin_front', 3600, function () use ($size) {
41
+        $image = $this->cache()->remember('rendering.system.default_skin_front', 3600, function() use ($size) {
42 42
             return (string) $this->rendering->skinFront(
43 43
                 null,
44 44
                 (int) $size
Please login to merge, or discard this patch.
app/Http/Controllers/Api/SkinBackController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function serveDefault($size = 0): Response
41 41
     {
42
-        $image = $this->cache()->remember('rendering.system.default_skin_back', 3600, function () use ($size) {
42
+        $image = $this->cache()->remember('rendering.system.default_skin_back', 3600, function() use ($size) {
43 43
             return (string) $this->rendering->skinBack(
44 44
                 null,
45 45
                 (int) $size
Please login to merge, or discard this patch.
app/Image/LayerValidator.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
             ++$x;
64 64
         }
65 65
         // mean value for each color
66
-        $totalPixels = $side->getWidth() * $side->getHeight();
67
-        $meanRed = array_sum($allRed) / $totalPixels;
68
-        $meanGreen = array_sum($allGreen) / $totalPixels;
69
-        $meanBlue = array_sum($allBlue) / $totalPixels;
70
-        $this->meanAlpha = (int) round(array_sum($allAlpha) / $totalPixels);
66
+        $totalPixels = $side->getWidth()*$side->getHeight();
67
+        $meanRed = array_sum($allRed)/$totalPixels;
68
+        $meanGreen = array_sum($allGreen)/$totalPixels;
69
+        $meanBlue = array_sum($allBlue)/$totalPixels;
70
+        $this->meanAlpha = (int) round(array_sum($allAlpha)/$totalPixels);
71 71
         // Arrays deviation
72 72
         $devsRed = [];
73 73
         $devsGreen = [];
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
             ++$i;
81 81
         }
82 82
         // stddev for each color
83
-        $this->redStdDev = sqrt(array_sum($devsRed) / $totalPixels);
84
-        $this->greenStdDev = sqrt(array_sum($devsGreen) / $totalPixels);
85
-        $this->blueStdDev = sqrt(array_sum($devsBlue) / $totalPixels);
83
+        $this->redStdDev = sqrt(array_sum($devsRed)/$totalPixels);
84
+        $this->greenStdDev = sqrt(array_sum($devsGreen)/$totalPixels);
85
+        $this->blueStdDev = sqrt(array_sum($devsBlue)/$totalPixels);
86 86
     }
87 87
 
88 88
     /**
Please login to merge, or discard this patch.
app/Minecraft/MojangAccountFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             return new MojangAccount($uuid, $username, $skin, $cape);
25 25
         }
26 26
 
27
-        $textures = array_filter($response['properties'], static function (array $entry) {
27
+        $textures = array_filter($response['properties'], static function(array $entry) {
28 28
             return $entry['name'] === 'textures';
29 29
         });
30 30
 
Please login to merge, or discard this patch.