From c422a14c5cc8eb44d42121fe12421bfa8025ac42 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 12 Oct 2017 10:13:20 +0200 Subject: [PATCH] Improved coding styles --- composer.json | 1 + config/autoload/app_options.global.php | 2 ++ config/autoload/dependencies.global.php | 2 +- config/autoload/entity-manager.global.php | 2 ++ config/autoload/logger.global.php | 2 ++ .../autoload/middleware-pipeline.global.php | 2 ++ config/autoload/phpwkhtmltopdf.global.php | 2 ++ config/autoload/preview-generation.global.php | 2 ++ config/autoload/router.global.php | 2 ++ config/autoload/templates.global.php | 1 + config/autoload/translator.global.php | 2 ++ config/autoload/url-shortener.global.php | 2 ++ config/autoload/zend-expressive.global.php | 1 + config/cli-config.php | 2 ++ config/config.php | 2 ++ config/container.php | 2 ++ data/migrations/Version20160819142757.php | 1 + data/migrations/Version20160820191203.php | 1 + module/CLI/config/cli.config.php | 4 ++- module/CLI/config/dependencies.config.php | 5 ++-- module/CLI/config/translator.config.php | 2 ++ .../CLI/src/Command/Api/DisableKeyCommand.php | 2 ++ .../src/Command/Api/GenerateKeyCommand.php | 2 ++ .../CLI/src/Command/Api/ListKeysCommand.php | 2 ++ .../Command/Config/GenerateCharsetCommand.php | 2 ++ .../Command/Config/GenerateSecretCommand.php | 2 ++ .../src/Command/Install/InstallCommand.php | 2 ++ .../Shortcode/GeneratePreviewCommand.php | 2 ++ .../Shortcode/GenerateShortcodeCommand.php | 2 ++ .../Command/Shortcode/GetVisitsCommand.php | 2 ++ .../Shortcode/ListShortcodesCommand.php | 2 ++ .../Command/Shortcode/ResolveUrlCommand.php | 2 ++ .../CLI/src/Command/Tag/CreateTagCommand.php | 2 ++ .../CLI/src/Command/Tag/DeleteTagsCommand.php | 2 ++ .../CLI/src/Command/Tag/ListTagsCommand.php | 2 ++ .../CLI/src/Command/Tag/RenameTagCommand.php | 2 ++ .../Command/Visit/ProcessVisitsCommand.php | 2 ++ module/CLI/src/ConfigProvider.php | 2 ++ module/CLI/src/Factory/ApplicationFactory.php | 2 ++ .../src/Factory/InstallApplicationFactory.php | 2 ++ .../Install/ConfigCustomizerPluginManager.php | 2 ++ ...ConfigCustomizerPluginManagerInterface.php | 2 ++ .../Plugin/AbstractConfigCustomizerPlugin.php | 2 ++ .../ApplicationConfigCustomizerPlugin.php | 2 ++ .../ConfigCustomizerPluginInterface.php | 2 ++ .../Plugin/DatabaseConfigCustomizerPlugin.php | 2 ++ .../DefaultConfigCustomizerPluginFactory.php | 2 ++ .../Plugin/LanguageConfigCustomizerPlugin.php | 2 ++ .../UrlShortenerConfigCustomizerPlugin.php | 4 ++- .../CLI/src/Model/CustomizableAppConfig.php | 2 ++ .../Command/Api/DisableKeyCommandTest.php | 2 ++ .../Command/Api/GenerateKeyCommandTest.php | 2 ++ .../test/Command/Api/ListKeysCommandTest.php | 2 ++ .../Config/GenerateCharsetCommandTest.php | 2 ++ .../Command/Install/InstallCommandTest.php | 2 ++ .../Shortcode/GeneratePreviewCommandTest.php | 6 +++-- .../GenerateShortcodeCommandTest.php | 8 +++--- .../Shortcode/GetVisitsCommandTest.php | 2 ++ .../Shortcode/ListShortcodesCommandTest.php | 2 ++ .../Shortcode/ResolveUrlCommandTest.php | 2 ++ .../test/Command/Tag/CreateTagCommandTest.php | 2 ++ .../Command/Tag/DeleteTagsCommandTest.php | 2 ++ .../test/Command/Tag/ListTagsCommandTest.php | 4 ++- .../test/Command/Tag/RenameTagCommandTest.php | 2 ++ .../Visit/ProcessVisitsCommandTest.php | 2 ++ module/CLI/test/ConfigProviderTest.php | 2 ++ .../test/Factory/ApplicationFactoryTest.php | 2 ++ .../Factory/InstallApplicationFactoryTest.php | 2 ++ .../ApplicationConfigCustomizerPluginTest.php | 2 ++ .../DatabaseConfigCustomizerPluginTest.php | 2 ++ ...faultConfigCustomizerPluginFactoryTest.php | 2 ++ .../LanguageConfigCustomizerPluginTest.php | 2 ++ ...UrlShortenerConfigCustomizerPluginTest.php | 2 ++ module/Common/config/dependencies.config.php | 1 + module/Common/functions/functions.php | 2 ++ module/Common/src/ConfigProvider.php | 2 ++ module/Common/src/Entity/AbstractEntity.php | 2 ++ .../src/Exception/ExceptionInterface.php | 2 ++ .../Exception/InvalidArgumentException.php | 2 ++ .../Exception/PreviewGenerationException.php | 2 ++ .../Common/src/Exception/RuntimeException.php | 2 ++ .../Common/src/Exception/WrongIpException.php | 2 ++ module/Common/src/Factory/CacheFactory.php | 2 ++ .../DottedAccessConfigAbstractFactory.php | 2 ++ ...sponseImplicitOptionsMiddlewareFactory.php | 2 ++ .../src/Factory/EntityManagerFactory.php | 2 ++ module/Common/src/Factory/LoggerFactory.php | 2 ++ .../Common/src/Factory/TranslatorFactory.php | 2 ++ module/Common/src/Image/ImageBuilder.php | 2 ++ .../Common/src/Image/ImageBuilderFactory.php | 2 ++ .../src/Image/ImageBuilderInterface.php | 2 ++ module/Common/src/Image/ImageFactory.php | 2 ++ .../src/Middleware/LocaleMiddleware.php | 2 ++ .../Adapter/PaginableRepositoryAdapter.php | 4 ++- .../Paginator/Util/PaginatorUtilsTrait.php | 2 ++ .../PaginableRepositoryInterface.php | 2 ++ module/Common/src/Response/QrCodeResponse.php | 2 ++ .../Common/src/Service/IpLocationResolver.php | 4 ++- .../Service/IpLocationResolverInterface.php | 2 ++ .../Common/src/Service/PreviewGenerator.php | 2 ++ .../src/Service/PreviewGeneratorInterface.php | 2 ++ .../Extension/TranslatorExtension.php | 2 ++ module/Common/src/Util/DateRange.php | 2 ++ module/Common/src/Util/ResponseUtilsTrait.php | 2 ++ module/Common/src/Util/StringUtilsTrait.php | 2 ++ module/Common/test/ConfigProviderTest.php | 2 ++ .../Common/test/Factory/CacheFactoryTest.php | 6 +++-- ...seImplicitOptionsMiddlewareFactoryTest.php | 2 ++ .../test/Factory/EntityManagerFactoryTest.php | 2 ++ .../Common/test/Factory/LoggerFactoryTest.php | 2 ++ .../test/Factory/TranslatorFactoryTest.php | 2 ++ .../test/Image/ImageBuilderFactoryTest.php | 2 ++ module/Common/test/Image/ImageFactoryTest.php | 2 ++ .../test/Middleware/LocaleMiddlewareTest.php | 2 ++ .../PaginableRepositoryAdapterTest.php | 2 ++ .../test/Service/IpLocationResolverTest.php | 2 ++ .../test/Service/PreviewGeneratorTest.php | 4 ++- .../Extension/TranslatorExtensionTest.php | 2 ++ module/Common/test/Util/DateRangeTest.php | 2 ++ module/Common/test/Util/TestUtils.php | 2 ++ module/Core/config/app_options.config.php | 2 ++ module/Core/config/dependencies.config.php | 1 + module/Core/config/entity-manager.config.php | 2 ++ module/Core/config/routes.config.php | 2 ++ module/Core/config/templates.config.php | 1 + module/Core/config/translator.config.php | 2 ++ module/Core/config/zend-expressive.config.php | 1 + module/Core/src/Action/PreviewAction.php | 2 ++ module/Core/src/Action/QrCodeAction.php | 2 ++ module/Core/src/Action/RedirectAction.php | 2 ++ module/Core/src/ConfigProvider.php | 2 ++ module/Core/src/Entity/ShortUrl.php | 2 ++ module/Core/src/Entity/Tag.php | 2 ++ module/Core/src/Entity/Visit.php | 2 ++ module/Core/src/Entity/VisitLocation.php | 4 ++- .../Exception/EntityDoesNotExistException.php | 2 ++ .../Exception/InvalidShortCodeException.php | 2 ++ .../src/Exception/InvalidUrlException.php | 2 ++ .../src/Middleware/QrCodeCacheMiddleware.php | 2 ++ module/Core/src/Options/AppOptions.php | 2 ++ module/Core/src/Options/AppOptionsFactory.php | 2 ++ .../src/Repository/ShortUrlRepository.php | 2 ++ .../ShortUrlRepositoryInterface.php | 2 ++ module/Core/src/Repository/TagRepository.php | 2 ++ .../src/Repository/TagRepositoryInterface.php | 2 ++ .../Core/src/Repository/VisitRepository.php | 2 ++ .../Repository/VisitRepositoryInterface.php | 2 ++ module/Core/src/Service/ShortUrlService.php | 2 ++ .../src/Service/ShortUrlServiceInterface.php | 2 ++ module/Core/src/Service/Tag/TagService.php | 2 ++ .../src/Service/Tag/TagServiceInterface.php | 2 ++ module/Core/src/Service/UrlShortener.php | 4 ++- .../src/Service/UrlShortenerInterface.php | 2 ++ module/Core/src/Service/VisitService.php | 2 ++ .../src/Service/VisitServiceInterface.php | 2 ++ module/Core/src/Service/VisitsTracker.php | 2 ++ .../src/Service/VisitsTrackerInterface.php | 2 ++ module/Core/src/Util/TagManagerTrait.php | 2 ++ module/Core/test/Action/PreviewActionTest.php | 2 ++ module/Core/test/Action/QrCodeActionTest.php | 2 ++ .../Core/test/Action/RedirectActionTest.php | 2 ++ module/Core/test/ConfigProviderTest.php | 2 ++ module/Core/test/Entity/TagTest.php | 2 ++ .../Middleware/QrCodeCacheMiddlewareTest.php | 2 ++ .../test/Options/AppOptionsFactoryTest.php | 2 ++ .../Core/test/Service/ShortUrlServiceTest.php | 2 ++ .../Core/test/Service/Tag/TagServiceTest.php | 4 ++- module/Core/test/Service/UrlShortenerTest.php | 2 ++ module/Core/test/Service/VisitServiceTest.php | 2 ++ .../Core/test/Service/VisitsTrackerTest.php | 2 ++ module/Rest/config/dependencies.config.php | 3 ++- module/Rest/config/entity-manager.config.php | 2 ++ module/Rest/config/error-handler.config.php | 2 ++ module/Rest/config/routes.config.php | 4 ++- module/Rest/config/translator.config.php | 2 ++ module/Rest/src/Action/AbstractRestAction.php | 2 ++ module/Rest/src/Action/AuthenticateAction.php | 2 ++ .../Rest/src/Action/CreateShortcodeAction.php | 2 ++ .../src/Action/EditShortcodeTagsAction.php | 2 ++ module/Rest/src/Action/GetVisitsAction.php | 8 +++--- .../Rest/src/Action/ListShortcodesAction.php | 2 ++ module/Rest/src/Action/ResolveUrlAction.php | 2 ++ .../Rest/src/Action/Tag/CreateTagsAction.php | 2 ++ .../Rest/src/Action/Tag/DeleteTagsAction.php | 2 ++ module/Rest/src/Action/Tag/ListTagsAction.php | 2 ++ .../Rest/src/Action/Tag/UpdateTagAction.php | 2 ++ module/Rest/src/Authentication/JWTService.php | 2 ++ .../Authentication/JWTServiceInterface.php | 2 ++ module/Rest/src/ConfigProvider.php | 2 ++ module/Rest/src/Entity/ApiKey.php | 2 ++ .../JsonErrorResponseGenerator.php | 3 ++- .../src/Exception/AuthenticationException.php | 2 ++ .../src/Middleware/BodyParserMiddleware.php | 4 ++- .../CheckAuthenticationMiddleware.php | 2 ++ .../src/Middleware/CrossDomainMiddleware.php | 2 ++ .../src/Middleware/PathVersionMiddleware.php | 2 ++ module/Rest/src/Service/ApiKeyService.php | 2 ++ .../src/Service/ApiKeyServiceInterface.php | 2 ++ module/Rest/src/Util/RestUtils.php | 2 ++ .../test/Action/AuthenticateActionTest.php | 2 ++ .../test/Action/CreateShortcodeActionTest.php | 2 ++ .../Action/EditShortcodeTagsActionTest.php | 2 ++ .../Rest/test/Action/GetVisitsActionTest.php | 2 ++ .../test/Action/ListShortcodesActionTest.php | 2 ++ .../Rest/test/Action/ResolveUrlActionTest.php | 2 ++ .../test/Action/Tag/CreateTagsActionTest.php | 2 ++ .../test/Action/Tag/DeleteTagsActionTest.php | 2 ++ .../test/Action/Tag/ListTagsActionTest.php | 2 ++ .../test/Action/Tag/UpdateTagActionTest.php | 2 ++ .../test/Authentication/JWTServiceTest.php | 2 ++ module/Rest/test/ConfigProviderTest.php | 2 ++ .../JsonErrorResponseGeneratorTest.php | 2 ++ .../Middleware/BodyParserMiddlewareTest.php | 2 ++ .../CheckAuthenticationMiddlewareTest.php | 2 ++ .../Middleware/CrossDomainMiddlewareTest.php | 2 ++ .../Middleware/PathVersionMiddlewareTest.php | 2 ++ .../Rest/test/Service/ApiKeyServiceTest.php | 2 ++ module/Rest/test/Util/RestUtilsTest.php | 2 ++ phpcs.xml | 25 +++++++++++++++++++ 219 files changed, 473 insertions(+), 26 deletions(-) diff --git a/composer.json b/composer.json index 1f1d5303..d58a88aa 100644 --- a/composer.json +++ b/composer.json @@ -46,6 +46,7 @@ "require-dev": { "filp/whoops": "^2.0", "phpunit/phpunit": "^6.0", + "slevomat/coding-standard": "^4.0", "squizlabs/php_codesniffer": "^3.1", "symfony/var-dumper": "^3.0", "vlucas/phpdotenv": "^2.2", diff --git a/config/autoload/app_options.global.php b/config/autoload/app_options.global.php index fd7147a1..0f8163bf 100644 --- a/config/autoload/app_options.global.php +++ b/config/autoload/app_options.global.php @@ -1,4 +1,6 @@ [ diff --git a/config/autoload/preview-generation.global.php b/config/autoload/preview-generation.global.php index b4f14da3..4a4fa9d1 100644 --- a/config/autoload/preview-generation.global.php +++ b/config/autoload/preview-generation.global.php @@ -1,4 +1,6 @@ [ diff --git a/config/autoload/router.global.php b/config/autoload/router.global.php index fb026248..deb875f3 100644 --- a/config/autoload/router.global.php +++ b/config/autoload/router.global.php @@ -1,4 +1,6 @@ [ Service\ShortUrlService::class, PreviewGenerator::class, - 'translator' + 'translator', ], Command\Visit\ProcessVisitsCommand::class => [ Service\VisitService::class, IpLocationResolver::class, - 'translator' + 'translator', ], Command\Config\GenerateCharsetCommand::class => ['translator'], Command\Config\GenerateSecretCommand::class => ['translator'], diff --git a/module/CLI/config/translator.config.php b/module/CLI/config/translator.config.php index ae120db3..659d4cae 100644 --- a/module/CLI/config/translator.config.php +++ b/module/CLI/config/translator.config.php @@ -1,4 +1,6 @@ [ diff --git a/module/CLI/src/Command/Api/DisableKeyCommand.php b/module/CLI/src/Command/Api/DisableKeyCommand.php index fbf02992..e4390203 100644 --- a/module/CLI/src/Command/Api/DisableKeyCommand.php +++ b/module/CLI/src/Command/Api/DisableKeyCommand.php @@ -1,4 +1,6 @@ previewGenerator->generatePreview('http://baz.com/something')->shouldBeCalledTimes(1); $this->commandTester->execute([ - 'command' => 'shortcode:process-previews' + 'command' => 'shortcode:process-previews', ]); } @@ -83,7 +85,7 @@ class GeneratePreviewCommandTest extends TestCase ->shouldBeCalledTimes(count($items)); $this->commandTester->execute([ - 'command' => 'shortcode:process-previews' + 'command' => 'shortcode:process-previews', ]); $output = $this->commandTester->getDisplay(); $this->assertEquals(count($items), substr_count($output, 'Error')); diff --git a/module/CLI/test/Command/Shortcode/GenerateShortcodeCommandTest.php b/module/CLI/test/Command/Shortcode/GenerateShortcodeCommandTest.php index 11a1385d..e1dc5229 100644 --- a/module/CLI/test/Command/Shortcode/GenerateShortcodeCommandTest.php +++ b/module/CLI/test/Command/Shortcode/GenerateShortcodeCommandTest.php @@ -1,4 +1,6 @@ urlShortener = $this->prophesize(UrlShortener::class); $command = new GenerateShortcodeCommand($this->urlShortener->reveal(), Translator::factory([]), [ 'schema' => 'http', - 'hostname' => 'foo.com' + 'hostname' => 'foo.com', ]); $app = new Application(); $app->add($command); @@ -44,7 +46,7 @@ class GenerateShortcodeCommandTest extends TestCase $this->commandTester->execute([ 'command' => 'shortcode:generate', - 'longUrl' => 'http://domain.com/foo/bar' + 'longUrl' => 'http://domain.com/foo/bar', ]); $output = $this->commandTester->getDisplay(); $this->assertTrue(strpos($output, 'http://foo.com/abc123') > 0); @@ -60,7 +62,7 @@ class GenerateShortcodeCommandTest extends TestCase $this->commandTester->execute([ 'command' => 'shortcode:generate', - 'longUrl' => 'http://domain.com/invalid' + 'longUrl' => 'http://domain.com/invalid', ]); $output = $this->commandTester->getDisplay(); $this->assertTrue( diff --git a/module/CLI/test/Command/Shortcode/GetVisitsCommandTest.php b/module/CLI/test/Command/Shortcode/GetVisitsCommandTest.php index 4ec77e71..d80d6d4f 100644 --- a/module/CLI/test/Command/Shortcode/GetVisitsCommandTest.php +++ b/module/CLI/test/Command/Shortcode/GetVisitsCommandTest.php @@ -1,4 +1,6 @@ paginableRepository = $paginableRepository; - $this->searchTerm = trim(strip_tags($searchTerm)); + $this->searchTerm = $searchTerm !== null ? trim(strip_tags($searchTerm)) : null; $this->orderBy = $orderBy; $this->tags = $tags; } diff --git a/module/Common/src/Paginator/Util/PaginatorUtilsTrait.php b/module/Common/src/Paginator/Util/PaginatorUtilsTrait.php index a1e0ec5c..167de806 100644 --- a/module/Common/src/Paginator/Util/PaginatorUtilsTrait.php +++ b/module/Common/src/Paginator/Util/PaginatorUtilsTrait.php @@ -1,4 +1,6 @@ httpClient->get(sprintf(self::SERVICE_PATTERN, $ipAddress)); - return json_decode($response->getBody(), true); + return json_decode((string) $response->getBody(), true); } catch (GuzzleException $e) { throw WrongIpException::fromIpAddress($ipAddress, $e); } diff --git a/module/Common/src/Service/IpLocationResolverInterface.php b/module/Common/src/Service/IpLocationResolverInterface.php index 350c2b9c..4f4279a2 100644 --- a/module/Common/src/Service/IpLocationResolverInterface.php +++ b/module/Common/src/Service/IpLocationResolverInterface.php @@ -1,4 +1,6 @@ '1.2.3.4', - 'port' => 123 + 'port' => 123, ], [ 'host' => '4.3.2.1', - 'port' => 321 + 'port' => 321, ], ]; /** @var MemcachedCache $instance */ diff --git a/module/Common/test/Factory/EmptyResponseImplicitOptionsMiddlewareFactoryTest.php b/module/Common/test/Factory/EmptyResponseImplicitOptionsMiddlewareFactoryTest.php index aca35f62..dd4b6301 100644 --- a/module/Common/test/Factory/EmptyResponseImplicitOptionsMiddlewareFactoryTest.php +++ b/module/Common/test/Factory/EmptyResponseImplicitOptionsMiddlewareFactoryTest.php @@ -1,4 +1,6 @@ function () { return $this->image->reveal(); }, - ] + ], ]), $this->filesystem->reveal(), 'dir'); } diff --git a/module/Common/test/Template/Extension/TranslatorExtensionTest.php b/module/Common/test/Template/Extension/TranslatorExtensionTest.php index e39e2b24..04d36188 100644 --- a/module/Common/test/Template/Extension/TranslatorExtensionTest.php +++ b/module/Common/test/Template/Extension/TranslatorExtensionTest.php @@ -1,4 +1,6 @@ [], diff --git a/module/Core/config/dependencies.config.php b/module/Core/config/dependencies.config.php index a25c82fb..a21a92b8 100644 --- a/module/Core/config/dependencies.config.php +++ b/module/Core/config/dependencies.config.php @@ -1,4 +1,5 @@ [ diff --git a/module/Core/config/routes.config.php b/module/Core/config/routes.config.php index a3c70aeb..e18cb448 100644 --- a/module/Core/config/routes.config.php +++ b/module/Core/config/routes.config.php @@ -1,4 +1,6 @@ [ diff --git a/module/Core/config/zend-expressive.config.php b/module/Core/config/zend-expressive.config.php index 3dfd091f..81f6676f 100644 --- a/module/Core/config/zend-expressive.config.php +++ b/module/Core/config/zend-expressive.config.php @@ -1,4 +1,5 @@ chars . "]+|", $shortCode)) { + if (! preg_match('|[' . $this->chars . ']+|', $shortCode)) { throw InvalidShortCodeException::fromCharset($shortCode, $this->chars); } diff --git a/module/Core/src/Service/UrlShortenerInterface.php b/module/Core/src/Service/UrlShortenerInterface.php index 4ddf4b7b..c677ec4e 100644 --- a/module/Core/src/Service/UrlShortenerInterface.php +++ b/module/Core/src/Service/UrlShortenerInterface.php @@ -1,4 +1,6 @@ [Service\UrlShortener::class, 'translator'], Action\GetVisitsAction::class => [Service\VisitsTracker::class, 'translator', 'Logger_Shlink'], diff --git a/module/Rest/config/entity-manager.config.php b/module/Rest/config/entity-manager.config.php index e9359519..e5008568 100644 --- a/module/Rest/config/entity-manager.config.php +++ b/module/Rest/config/entity-manager.config.php @@ -1,4 +1,6 @@ [ diff --git a/module/Rest/config/error-handler.config.php b/module/Rest/config/error-handler.config.php index cb06f6bf..b3df3f7c 100644 --- a/module/Rest/config/error-handler.config.php +++ b/module/Rest/config/error-handler.config.php @@ -1,4 +1,6 @@ [ diff --git a/module/Rest/src/Action/AbstractRestAction.php b/module/Rest/src/Action/AbstractRestAction.php index 01b8c13d..9ba1e650 100644 --- a/module/Rest/src/Action/AbstractRestAction.php +++ b/module/Rest/src/Action/AbstractRestAction.php @@ -1,4 +1,6 @@ [ 'data' => $visits, - ] + ], ]); } catch (InvalidArgumentException $e) { - $this->logger->warning('Provided nonexistent shortcode'. PHP_EOL . $e); + $this->logger->warning('Provided nonexistent shortcode' . PHP_EOL . $e); return new JsonResponse([ 'error' => RestUtils::getRestErrorCodeFromException($e), 'message' => sprintf( @@ -63,7 +65,7 @@ class GetVisitsAction extends AbstractRestAction ), ], self::STATUS_NOT_FOUND); } catch (\Exception $e) { - $this->logger->error('Unexpected error while parsing short code'. PHP_EOL . $e); + $this->logger->error('Unexpected error while parsing short code' . PHP_EOL . $e); return new JsonResponse([ 'error' => RestUtils::UNKNOWN_ERROR, 'message' => $this->translator->translate('Unexpected error occurred'), diff --git a/module/Rest/src/Action/ListShortcodesAction.php b/module/Rest/src/Action/ListShortcodesAction.php index aa941375..83007e29 100644 --- a/module/Rest/src/Action/ListShortcodesAction.php +++ b/module/Rest/src/Action/ListShortcodesAction.php @@ -1,4 +1,6 @@ process($request); } diff --git a/module/Rest/src/Middleware/CheckAuthenticationMiddleware.php b/module/Rest/src/Middleware/CheckAuthenticationMiddleware.php index 93537d35..b5823f4f 100644 --- a/module/Rest/src/Middleware/CheckAuthenticationMiddleware.php +++ b/module/Rest/src/Middleware/CheckAuthenticationMiddleware.php @@ -1,4 +1,6 @@ Coding standard + @@ -9,11 +10,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + bin