diff --git a/src/App.php b/src/App.php index 0007fc7..e65a3a8 100644 --- a/src/App.php +++ b/src/App.php @@ -187,7 +187,7 @@ class App (new ContainerBuilder()) ->useAutowiring(true) ->useAnnotations(true) - ; + ; // if ((new Filesystem())->exists($this->getCachePath())) { // $container->enableCompilation($this->getCachePath()); // $container->writeProxiesToFile(true, "{$this->getCachePath()}/injection-proxies"); @@ -338,7 +338,7 @@ class App $container->set('MonologFormatter', function (EnvironmentService $environmentService) { return new LineFormatter( - // the default output format is "[%datetime%] %channel%.%level_name%: %message% %context% %extra%" + // the default output format is "[%datetime%] %channel%.%level_name%: %message% %context% %extra%" $environmentService->get('MONOLOG_FORMAT', '[%datetime%] %channel%.%level_name%: %message% %context% %extra%')."\n", 'Y n j, g:i a' ); diff --git a/src/Controllers/AbstractHTMLController.php b/src/Controllers/AbstractHTMLController.php index e4884dd..0f6683f 100644 --- a/src/Controllers/AbstractHTMLController.php +++ b/src/Controllers/AbstractHTMLController.php @@ -65,7 +65,7 @@ abstract class AbstractHTMLController extends AbstractController protected function pageNotFound(): Response { - $response = (parent::pageNotFound()); + $response = parent::pageNotFound(); $response->withHeader('Content-Type', 'text/html'); $response->getBody() ->write($this->twig->fetch($this->pageNotFoundTemplate)) diff --git a/src/Middleware/JsonValidationMiddleware.php b/src/Middleware/JsonValidationMiddleware.php index b4ffc44..959266a 100644 --- a/src/Middleware/JsonValidationMiddleware.php +++ b/src/Middleware/JsonValidationMiddleware.php @@ -32,7 +32,7 @@ class JsonValidationMiddleware implements MiddlewareInterface // Try to read a json schema annotation.. $jsonSchemaAnnotation = $reader->getMethodAnnotation($method, JsonSchema::class); // No annotation? Return early. - if (!($jsonSchemaAnnotation instanceof JsonSchema)) { + if (!$jsonSchemaAnnotation instanceof JsonSchema) { return $handler->handle($request); } diff --git a/src/Router/Router.php b/src/Router/Router.php index 356e8c4..6a1e782 100644 --- a/src/Router/Router.php +++ b/src/Router/Router.php @@ -70,7 +70,7 @@ class Router } $routeAnnotation = $reader->getMethodAnnotation($method, \Benzine\Annotations\Route::class); - if (!($routeAnnotation instanceof \Benzine\Annotations\Route)) { + if (!$routeAnnotation instanceof \Benzine\Annotations\Route) { continue; } diff --git a/src/Services/QueueService.php b/src/Services/QueueService.php index f96aa10..8bbc139 100644 --- a/src/Services/QueueService.php +++ b/src/Services/QueueService.php @@ -137,7 +137,7 @@ class QueueService public function listLists(): array { $lists = []; - foreach ($this->redis->keys(('queue:queues:*')) as $queue) { + foreach ($this->redis->keys('queue:queues:*') as $queue) { $lists[$queue] = substr($queue, strlen('queue:queues:')); } ksort($lists);