Skip to content

Commit 74dc4bd

Browse files
committed
Fix styling
1 parent 6774e53 commit 74dc4bd

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Http/Responses/ProblemDetailsResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/**
1010
* RFC 7807 Problem Details for HTTP APIs
11+
*
1112
* @see https://tools.ietf.org/html/rfc7807
1213
*/
1314
class ProblemDetailsResponse extends JsonResponse

src/Middleware/AttributeApiVersionMiddleware.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace ShahGhasiAdil\LaravelApiVersioning\Middleware;
66

77
use Closure;
8-
use Illuminate\Http\JsonResponse;
98
use Illuminate\Http\Request;
109
use Illuminate\Routing\Route;
1110
use ShahGhasiAdil\LaravelApiVersioning\Exceptions\UnsupportedVersionException;

src/Services/AttributeCacheService.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ public function __construct(
1818
/**
1919
* Get cached version info for a route
2020
*
21-
* @param string $key Cache key
22-
* @param callable $callback Callback to generate value if not cached
23-
* @return mixed
21+
* @param string $key Cache key
22+
* @param callable $callback Callback to generate value if not cached
2423
*/
2524
public function remember(string $key, callable $callback): mixed
2625
{
2726
if (! $this->enabled) {
2827
return $callback();
2928
}
3029

31-
$cacheKey = self::CACHE_PREFIX . $key;
30+
$cacheKey = self::CACHE_PREFIX.$key;
3231

3332
return Cache::remember($cacheKey, $this->ttl, $callback);
3433
}
@@ -46,7 +45,7 @@ public function flush(): void
4645
*/
4746
public function forget(string $key): void
4847
{
49-
Cache::forget(self::CACHE_PREFIX . $key);
48+
Cache::forget(self::CACHE_PREFIX.$key);
5049
}
5150

5251
/**

0 commit comments

Comments
 (0)