From 9f25cec700cf09d64486dd4ffa08f3be004bd887 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 9 Jul 2018 09:36:02 -0400 Subject: [PATCH] Added docblocks to fix scrutinizer issues --- library/Providers/LoggerProvider.php | 2 ++ library/Traits/TokenTrait.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/library/Providers/LoggerProvider.php b/library/Providers/LoggerProvider.php index 23d3b59b..fdddabbc 100644 --- a/library/Providers/LoggerProvider.php +++ b/library/Providers/LoggerProvider.php @@ -24,7 +24,9 @@ public function register(DiInterface $container) $container->setShared( 'logger', function () { + /** @var string $logName */ $logName = envValue('LOGGER_DEFAULT_FILENAME', 'api.log'); + /** @var string $logPath */ $logPath = envValue('LOGGER_DEFAULT_PATH', 'storage/logs'); $logFile = appPath($logPath) . '/' . $logName . '.log'; $formatter = new LineFormatter("[%datetime%][%level_name%] %message%\n"); diff --git a/library/Traits/TokenTrait.php b/library/Traits/TokenTrait.php index 3a3db24f..85d8c829 100644 --- a/library/Traits/TokenTrait.php +++ b/library/Traits/TokenTrait.php @@ -35,7 +35,10 @@ protected function getToken(string $token): Token */ protected function getTokenAudience(): string { - return envValue('TOKEN_AUDIENCE', 'https://phalconphp.com'); + /** @var string $audience */ + $audience = envValue('TOKEN_AUDIENCE', 'https://phalconphp.com'); + + return $audience; } /**