Passed
Push — master ( f9b6da...06d453 )
by Mattia
04:24
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/Http/Controllers/Api/DownloadTextureController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
         $this->uuidResolver->resolve($uuid);
58 58
 
59 59
         $skinPath = $this->uuidResolver->resolve($uuid) ?
60
-            SkinsStorage::getPath($this->uuidResolver->getUuid()) :
61
-            SkinsStorage::getPath(MinecraftDefaults::STEVE_DEFAULT_SKIN_NAME);
60
+            SkinsStorage::getPath($this->uuidResolver->getUuid()) : SkinsStorage::getPath(MinecraftDefaults::STEVE_DEFAULT_SKIN_NAME);
62 61
 
63 62
         $rawSkin = new Raw($skinPath);
64 63
         $rawSkin->render();
Please login to merge, or discard this patch.
app/Transformers/Account/AccountBasicDataTransformer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
             'username' => $account->username,
18 18
             'count_request' => $account->stats->count_request,
19 19
             'last_request' => $account->stats->request_at !== null ?
20
-                $account->stats->request_at->format(Carbon::ATOM) :
21
-                null,
20
+                $account->stats->request_at->format(Carbon::ATOM) : null,
22 21
         ];
23 22
     }
24 23
 }
Please login to merge, or discard this patch.