Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
arukompas authored and github-actions[bot] committed Aug 23, 2024
1 parent 12523da commit f8d5238
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 34 deletions.
3 changes: 1 addition & 2 deletions src/Events/LogFileDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ class LogFileDeleted

public function __construct(
public LogFile $file
) {
}
) {}
}
4 changes: 1 addition & 3 deletions src/Exceptions/CannotCloseFileException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class CannotCloseFileException extends Exception
{
}
class CannotCloseFileException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exceptions/CannotOpenFileException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class CannotOpenFileException extends Exception
{
}
class CannotOpenFileException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exceptions/InvalidChunkSizeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class InvalidChunkSizeException extends Exception
{
}
class InvalidChunkSizeException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exceptions/InvalidRegularExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class InvalidRegularExpression extends Exception
{
}
class InvalidRegularExpression extends Exception {}
4 changes: 1 addition & 3 deletions src/Exceptions/SkipLineException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Opcodes\LogViewer\Exceptions;

class SkipLineException extends \Exception
{
}
class SkipLineException extends \Exception {}
3 changes: 1 addition & 2 deletions src/LevelCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ public function __construct(
public LevelInterface $level,
public int $count = 0,
public bool $selected = false,
) {
}
) {}
}
2 changes: 1 addition & 1 deletion src/LogFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down
3 changes: 1 addition & 2 deletions src/LogIndexChunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public function __construct(
public array $data,
public int $index,
public int $size,
) {
}
) {}

public static function fromDefinitionArray(array $definition): LogIndexChunk
{
Expand Down
3 changes: 1 addition & 2 deletions src/LogLevels/HttpStatusCodeLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ class HttpStatusCodeLevel implements LevelInterface
{
public function __construct(
public string $value,
) {
}
) {}

public static function from(?string $value = null): LevelInterface
{
Expand Down
3 changes: 1 addition & 2 deletions src/LogLevels/LevelClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class LevelClass

public function __construct(
public string $value,
) {
}
) {}

public static function from(?string $value = null): LevelClass
{
Expand Down
2 changes: 1 addition & 1 deletion src/LogViewerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/RoutesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 1 addition & 3 deletions tests/Unit/CustomLogs/CustomAccessLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Opcodes\LogViewer\Logs\Log;

class CustomAccessLog extends Log
{
}
class CustomAccessLog extends Log {}
4 changes: 1 addition & 3 deletions tests/Unit/CustomLogs/CustomHttpAccessLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Opcodes\LogViewer\Logs\HttpAccessLog;

class CustomHttpAccessLog extends HttpAccessLog
{
}
class CustomHttpAccessLog extends HttpAccessLog {}

0 comments on commit f8d5238

Please sign in to comment.