diff --git a/src/Events/LogFileDeleted.php b/src/Events/LogFileDeleted.php index f99a5894..a8280ffc 100644 --- a/src/Events/LogFileDeleted.php +++ b/src/Events/LogFileDeleted.php @@ -11,6 +11,5 @@ class LogFileDeleted public function __construct( public LogFile $file - ) { - } + ) {} } diff --git a/src/Exceptions/CannotCloseFileException.php b/src/Exceptions/CannotCloseFileException.php index 83cd9bd1..cbe08d38 100644 --- a/src/Exceptions/CannotCloseFileException.php +++ b/src/Exceptions/CannotCloseFileException.php @@ -4,6 +4,4 @@ use Exception; -class CannotCloseFileException extends Exception -{ -} +class CannotCloseFileException extends Exception {} diff --git a/src/Exceptions/CannotOpenFileException.php b/src/Exceptions/CannotOpenFileException.php index 355c0a15..34404960 100644 --- a/src/Exceptions/CannotOpenFileException.php +++ b/src/Exceptions/CannotOpenFileException.php @@ -4,6 +4,4 @@ use Exception; -class CannotOpenFileException extends Exception -{ -} +class CannotOpenFileException extends Exception {} diff --git a/src/Exceptions/InvalidChunkSizeException.php b/src/Exceptions/InvalidChunkSizeException.php index 2ab4de5f..177479f5 100644 --- a/src/Exceptions/InvalidChunkSizeException.php +++ b/src/Exceptions/InvalidChunkSizeException.php @@ -4,6 +4,4 @@ use Exception; -class InvalidChunkSizeException extends Exception -{ -} +class InvalidChunkSizeException extends Exception {} diff --git a/src/Exceptions/InvalidRegularExpression.php b/src/Exceptions/InvalidRegularExpression.php index 36349ebd..ffd99cc9 100644 --- a/src/Exceptions/InvalidRegularExpression.php +++ b/src/Exceptions/InvalidRegularExpression.php @@ -4,6 +4,4 @@ use Exception; -class InvalidRegularExpression extends Exception -{ -} +class InvalidRegularExpression extends Exception {} diff --git a/src/Exceptions/SkipLineException.php b/src/Exceptions/SkipLineException.php index afcbfada..f6fb08ce 100644 --- a/src/Exceptions/SkipLineException.php +++ b/src/Exceptions/SkipLineException.php @@ -2,6 +2,4 @@ namespace Opcodes\LogViewer\Exceptions; -class SkipLineException extends \Exception -{ -} +class SkipLineException extends \Exception {} diff --git a/src/LevelCount.php b/src/LevelCount.php index 6e59f268..fd2814f4 100644 --- a/src/LevelCount.php +++ b/src/LevelCount.php @@ -10,6 +10,5 @@ public function __construct( public LevelInterface $level, public int $count = 0, public bool $selected = false, - ) { - } + ) {} } diff --git a/src/LogFolder.php b/src/LogFolder.php index 9e9cb140..814286b5 100644 --- a/src/LogFolder.php +++ b/src/LogFolder.php @@ -113,7 +113,7 @@ public function download(): BinaryFileResponse // just in case we have created it before. @unlink($zipPath); - $zip = new \ZipArchive(); + $zip = new \ZipArchive; if ($zip->open($zipPath, \ZipArchive::CREATE) !== true) { throw new \Exception('Could not open '.$zipPath.' for writing.'); diff --git a/src/LogIndexChunk.php b/src/LogIndexChunk.php index 24774076..4fc07187 100644 --- a/src/LogIndexChunk.php +++ b/src/LogIndexChunk.php @@ -12,8 +12,7 @@ public function __construct( public array $data, public int $index, public int $size, - ) { - } + ) {} public static function fromDefinitionArray(array $definition): LogIndexChunk { diff --git a/src/LogLevels/HttpStatusCodeLevel.php b/src/LogLevels/HttpStatusCodeLevel.php index 2bb11a96..9b37a616 100644 --- a/src/LogLevels/HttpStatusCodeLevel.php +++ b/src/LogLevels/HttpStatusCodeLevel.php @@ -6,8 +6,7 @@ class HttpStatusCodeLevel implements LevelInterface { public function __construct( public string $value, - ) { - } + ) {} public static function from(?string $value = null): LevelInterface { diff --git a/src/LogLevels/LevelClass.php b/src/LogLevels/LevelClass.php index c8dc298c..1db3f031 100644 --- a/src/LogLevels/LevelClass.php +++ b/src/LogLevels/LevelClass.php @@ -13,8 +13,7 @@ class LevelClass public function __construct( public string $value, - ) { - } + ) {} public static function from(?string $value = null): LevelClass { diff --git a/src/LogViewerServiceProvider.php b/src/LogViewerServiceProvider.php index 63c71740..8e69eb82 100644 --- a/src/LogViewerServiceProvider.php +++ b/src/LogViewerServiceProvider.php @@ -39,7 +39,7 @@ public function register() if (! $this->app->bound(LogTypeRegistrar::class)) { $this->app->singleton(LogTypeRegistrar::class, function () { - return new LogTypeRegistrar(); + return new LogTypeRegistrar; }); } } diff --git a/tests/Feature/RoutesTest.php b/tests/Feature/RoutesTest.php index e7519676..a8eb10cb 100644 --- a/tests/Feature/RoutesTest.php +++ b/tests/Feature/RoutesTest.php @@ -53,7 +53,7 @@ function reloadRoutes(): void { // unset any routes that were set previously - app('router')->setRoutes(new \Illuminate\Routing\RouteCollection()); + app('router')->setRoutes(new \Illuminate\Routing\RouteCollection); // boot the service provider to register the routes again (new \Opcodes\LogViewer\LogViewerServiceProvider(app()))->boot(); diff --git a/tests/Unit/CustomLogs/CustomAccessLog.php b/tests/Unit/CustomLogs/CustomAccessLog.php index 6ff37ec9..d51de9d5 100644 --- a/tests/Unit/CustomLogs/CustomAccessLog.php +++ b/tests/Unit/CustomLogs/CustomAccessLog.php @@ -4,6 +4,4 @@ use Opcodes\LogViewer\Logs\Log; -class CustomAccessLog extends Log -{ -} +class CustomAccessLog extends Log {} diff --git a/tests/Unit/CustomLogs/CustomHttpAccessLog.php b/tests/Unit/CustomLogs/CustomHttpAccessLog.php index 2936a9da..a5cbf6c0 100644 --- a/tests/Unit/CustomLogs/CustomHttpAccessLog.php +++ b/tests/Unit/CustomLogs/CustomHttpAccessLog.php @@ -4,6 +4,4 @@ use Opcodes\LogViewer\Logs\HttpAccessLog; -class CustomHttpAccessLog extends HttpAccessLog -{ -} +class CustomHttpAccessLog extends HttpAccessLog {}