diff --git a/app/src/Bootstrap/AppManager.php b/app/src/Bootstrap/AppManager.php index 6b9eece..2f23e7a 100644 --- a/app/src/Bootstrap/AppManager.php +++ b/app/src/Bootstrap/AppManager.php @@ -11,8 +11,7 @@ class AppManager /** Create a new AppManager object. */ public function __construct( private Container $container - ) { - } + ) {} /** Setup and configure the application. */ public function __invoke(): App diff --git a/app/src/Bootstrap/ExceptionManager.php b/app/src/Bootstrap/ExceptionManager.php index 8375b2f..9734635 100644 --- a/app/src/Bootstrap/ExceptionManager.php +++ b/app/src/Bootstrap/ExceptionManager.php @@ -12,8 +12,7 @@ class ExceptionManager public function __construct( private App $app, private Config $config - ) { - } + ) {} /** Set up and configure exception handling. */ public function __invoke(): void diff --git a/app/src/Bootstrap/MiddlewareManager.php b/app/src/Bootstrap/MiddlewareManager.php index dee0967..0b5c58d 100644 --- a/app/src/Bootstrap/MiddlewareManager.php +++ b/app/src/Bootstrap/MiddlewareManager.php @@ -11,8 +11,7 @@ class MiddlewareManager public function __construct( private App $app, private Config $config - ) { - } + ) {} /** Register application middlewares. */ public function __invoke(): void diff --git a/app/src/Bootstrap/RouteManager.php b/app/src/Bootstrap/RouteManager.php index def74ee..56e71f8 100644 --- a/app/src/Bootstrap/RouteManager.php +++ b/app/src/Bootstrap/RouteManager.php @@ -10,8 +10,7 @@ class RouteManager /** Create a new RouteManager object. */ public function __construct( private App $app - ) { - } + ) {} /** Register the application routes. */ public function __invoke(): void diff --git a/app/src/Config.php b/app/src/Config.php index d454828..9c5ba57 100644 --- a/app/src/Config.php +++ b/app/src/Config.php @@ -10,8 +10,7 @@ class Config /** Create a new Config object. */ public function __construct( private Container $container - ) { - } + ) {} /** * Get the value of a configuration variable. diff --git a/app/src/Controllers/DirectoryController.php b/app/src/Controllers/DirectoryController.php index b82993d..079945b 100644 --- a/app/src/Controllers/DirectoryController.php +++ b/app/src/Controllers/DirectoryController.php @@ -20,8 +20,7 @@ class DirectoryController private Finder $finder, private Twig $view, private TranslatorInterface $translator - ) { - } + ) {} /** Invoke the IndexController. */ public function __invoke(Request $request, Response $response): ResponseInterface diff --git a/app/src/Controllers/FileInfoController.php b/app/src/Controllers/FileInfoController.php index 25e5bb8..871c802 100644 --- a/app/src/Controllers/FileInfoController.php +++ b/app/src/Controllers/FileInfoController.php @@ -17,8 +17,7 @@ class FileInfoController private Config $config, private CacheInterface $cache, private TranslatorInterface $translator - ) { - } + ) {} /** Invoke the FileInfoHandler. */ public function __invoke(Request $request, Response $response): ResponseInterface diff --git a/app/src/Controllers/IndexController.php b/app/src/Controllers/IndexController.php index dbbe658..86c39e4 100644 --- a/app/src/Controllers/IndexController.php +++ b/app/src/Controllers/IndexController.php @@ -12,8 +12,7 @@ class IndexController /** Create a new IndexController object. */ public function __construct( private Container $container - ) { - } + ) {} /** Invoke the IndexController. */ public function __invoke(Request $request, Response $response): ResponseInterface diff --git a/app/src/Controllers/SearchController.php b/app/src/Controllers/SearchController.php index 750d85d..fc66fd9 100644 --- a/app/src/Controllers/SearchController.php +++ b/app/src/Controllers/SearchController.php @@ -16,8 +16,7 @@ class SearchController private Finder $finder, private Twig $view, private TranslatorInterface $translator - ) { - } + ) {} /** Invoke the SearchHandler. */ public function __invoke(Request $request, Response $response): ResponseInterface diff --git a/app/src/Controllers/ZipController.php b/app/src/Controllers/ZipController.php index 2c1de33..d254ae4 100644 --- a/app/src/Controllers/ZipController.php +++ b/app/src/Controllers/ZipController.php @@ -22,8 +22,7 @@ class ZipController private CacheInterface $cache, private Finder $finder, private TranslatorInterface $translator - ) { - } + ) {} /** Invoke the ZipHandler. */ public function __invoke(Request $request, Response $response): ResponseInterface diff --git a/app/src/Exceptions/ErrorHandler.php b/app/src/Exceptions/ErrorHandler.php index 9d0da3e..358240a 100644 --- a/app/src/Exceptions/ErrorHandler.php +++ b/app/src/Exceptions/ErrorHandler.php @@ -16,8 +16,7 @@ class ErrorHandler implements ErrorHandlerInterface public function __construct( private Twig $view, private TranslatorInterface $translator - ) { - } + ) {} /** Invoke the ErrorHandler class. */ public function __invoke( diff --git a/app/src/Factories/CacheFactory.php b/app/src/Factories/CacheFactory.php index 9dcdd35..6357b0e 100644 --- a/app/src/Factories/CacheFactory.php +++ b/app/src/Factories/CacheFactory.php @@ -27,8 +27,7 @@ class CacheFactory public function __construct( private Container $container, private Config $config - ) { - } + ) {} /** Initialize and return a CacheInterface. */ public function __invoke(): CacheInterface diff --git a/app/src/Factories/FinderFactory.php b/app/src/Factories/FinderFactory.php index 08d5ea3..6c4f5ac 100644 --- a/app/src/Factories/FinderFactory.php +++ b/app/src/Factories/FinderFactory.php @@ -22,8 +22,7 @@ class FinderFactory private Container $container, private Config $config, private HiddenFiles $hiddenFiles - ) { - } + ) {} /** Initialize and return the Finder component. */ public function __invoke(): Finder diff --git a/app/src/Factories/TranslationFactory.php b/app/src/Factories/TranslationFactory.php index 78d43bc..e6db05e 100644 --- a/app/src/Factories/TranslationFactory.php +++ b/app/src/Factories/TranslationFactory.php @@ -17,8 +17,7 @@ class TranslationFactory public function __construct( private Config $config, private CacheInterface $cache - ) { - } + ) {} /** Initialize and return the translation component. */ public function __invoke(): TranslatorInterface @@ -31,7 +30,7 @@ class TranslationFactory } $translator = new Translator($language); - $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addLoader('yaml', new YamlFileLoader); foreach ($translations as $language) { $translator->addResource('yaml', sprintf( diff --git a/app/src/Factories/TwigFactory.php b/app/src/Factories/TwigFactory.php index 00f8c81..5f1cf5f 100644 --- a/app/src/Factories/TwigFactory.php +++ b/app/src/Factories/TwigFactory.php @@ -16,8 +16,7 @@ class TwigFactory public function __construct( private Config $config, private CallableResolver $callableResolver - ) { - } + ) {} /** Initialize and return the Twig component. */ public function __invoke(): Twig diff --git a/app/src/Middlewares/CacheControlMiddleware.php b/app/src/Middlewares/CacheControlMiddleware.php index a1e6fd1..c970c9b 100644 --- a/app/src/Middlewares/CacheControlMiddleware.php +++ b/app/src/Middlewares/CacheControlMiddleware.php @@ -12,8 +12,7 @@ class CacheControlMiddleware /** Create a new CacheControlMiddleware object. */ public function __construct( private Config $config - ) { - } + ) {} /** Invoke the CacheControlMiddleware class. */ public function __invoke(Request $request, RequestHandler $handler): ResponseInterface diff --git a/app/src/Middlewares/PruneCacheMiddleware.php b/app/src/Middlewares/PruneCacheMiddleware.php index cadb1e9..a6061c7 100644 --- a/app/src/Middlewares/PruneCacheMiddleware.php +++ b/app/src/Middlewares/PruneCacheMiddleware.php @@ -15,8 +15,7 @@ class PruneCacheMiddleware public function __construct( private Config $config, private CacheInterface $cache - ) { - } + ) {} /** Invoke the CachePruneMiddleware class. */ public function __invoke(Request $request, RequestHandler $handler): ResponseInterface diff --git a/app/src/Middlewares/RegisterGlobalsMiddleware.php b/app/src/Middlewares/RegisterGlobalsMiddleware.php index 57a67b3..c7452b7 100644 --- a/app/src/Middlewares/RegisterGlobalsMiddleware.php +++ b/app/src/Middlewares/RegisterGlobalsMiddleware.php @@ -14,8 +14,7 @@ class RegisterGlobalsMiddleware public function __construct( private Twig $view - ) { - } + ) {} /** Invoke the RegisterGlobalsMiddleware class. */ public function __invoke(Request $request, RequestHandler $handler): ResponseInterface diff --git a/app/src/Middlewares/WhoopsMiddleware.php b/app/src/Middlewares/WhoopsMiddleware.php index 7e8c5a4..059cc4a 100644 --- a/app/src/Middlewares/WhoopsMiddleware.php +++ b/app/src/Middlewares/WhoopsMiddleware.php @@ -16,8 +16,7 @@ class WhoopsMiddleware private RunInterface $whoops, private PrettyPageHandler $pageHandler, private JsonResponseHandler $jsonHandler - ) { - } + ) {} /** Invoke the WhoopseMiddleware class. */ public function __invoke(Request $request, RequestHandler $handler): ResponseInterface diff --git a/app/src/ViewFunctions/Asset.php b/app/src/ViewFunctions/Asset.php index 45eb126..8c31bcf 100644 --- a/app/src/ViewFunctions/Asset.php +++ b/app/src/ViewFunctions/Asset.php @@ -12,8 +12,7 @@ class Asset extends ViewFunction /** Create a new Asset object. */ public function __construct( private Config $config - ) { - } + ) {} /** Return the path to an asset. */ public function __invoke(string $path): string diff --git a/app/src/ViewFunctions/Breadcrumbs.php b/app/src/ViewFunctions/Breadcrumbs.php index 151f4f3..70e25a2 100644 --- a/app/src/ViewFunctions/Breadcrumbs.php +++ b/app/src/ViewFunctions/Breadcrumbs.php @@ -14,8 +14,7 @@ class Breadcrumbs extends ViewFunction public function __construct( private Config $config, private string $directorySeparator = DIRECTORY_SEPARATOR - ) { - } + ) {} /** * Build a collection of breadcrumbs for a given path. diff --git a/app/src/ViewFunctions/Config.php b/app/src/ViewFunctions/Config.php index bb385ea..3a6323a 100644 --- a/app/src/ViewFunctions/Config.php +++ b/app/src/ViewFunctions/Config.php @@ -11,8 +11,7 @@ class Config extends ViewFunction /** Create a new Config object. */ public function __construct( private AppConfig $config - ) { - } + ) {} /** * Retrieve an item from the view config. diff --git a/app/src/ViewFunctions/Icon.php b/app/src/ViewFunctions/Icon.php index b8abea5..a0625de 100644 --- a/app/src/ViewFunctions/Icon.php +++ b/app/src/ViewFunctions/Icon.php @@ -12,8 +12,7 @@ class Icon extends ViewFunction /** Create a new Config object. */ public function __construct( private Config $config - ) { - } + ) {} /** Retrieve the icon markup for a file. */ public function __invoke(SplFileInfo $file): string diff --git a/app/src/ViewFunctions/Markdown.php b/app/src/ViewFunctions/Markdown.php index a194fe4..d40caa9 100644 --- a/app/src/ViewFunctions/Markdown.php +++ b/app/src/ViewFunctions/Markdown.php @@ -12,8 +12,7 @@ class Markdown extends ViewFunction public function __construct( private ParsedownExtra $parser, private CacheInterface $cache - ) { - } + ) {} /** Parses a string of markdown into HTML. */ public function __invoke(string $string): string diff --git a/app/src/ViewFunctions/ModifiedTime.php b/app/src/ViewFunctions/ModifiedTime.php index 8a117e0..550acc7 100644 --- a/app/src/ViewFunctions/ModifiedTime.php +++ b/app/src/ViewFunctions/ModifiedTime.php @@ -12,8 +12,7 @@ class ModifiedTime extends ViewFunction public function __construct( private Config $config - ) { - } + ) {} /** Get the modified time from a file object. */ public function __invoke(SplFileInfo $file): string diff --git a/app/src/ViewFunctions/ParentUrl.php b/app/src/ViewFunctions/ParentUrl.php index d65b209..fbe1e43 100644 --- a/app/src/ViewFunctions/ParentUrl.php +++ b/app/src/ViewFunctions/ParentUrl.php @@ -11,8 +11,7 @@ class ParentUrl extends ViewFunction /** Create a new ParentUrl object. */ public function __construct( private string $directorySeparator = DIRECTORY_SEPARATOR - ) { - } + ) {} /** Get the parent directory for a given path. */ public function __invoke(string $path): string diff --git a/app/src/ViewFunctions/Translate.php b/app/src/ViewFunctions/Translate.php index 17d96fa..7225a1f 100644 --- a/app/src/ViewFunctions/Translate.php +++ b/app/src/ViewFunctions/Translate.php @@ -11,8 +11,7 @@ class Translate extends ViewFunction /** Create a new Translate object. */ public function __construct( private TranslatorInterface $translator - ) { - } + ) {} /** Retrieve a translated string by ID. */ public function __invoke(string $id): string diff --git a/app/src/ViewFunctions/Url.php b/app/src/ViewFunctions/Url.php index f255f15..8f2da6d 100644 --- a/app/src/ViewFunctions/Url.php +++ b/app/src/ViewFunctions/Url.php @@ -11,8 +11,7 @@ class Url extends ViewFunction /** Create a new Url object. */ public function __construct( private string $directorySeparator = DIRECTORY_SEPARATOR - ) { - } + ) {} /** Return the URL for a given path. */ public function __invoke(string $path = '/'): string