Skip to content

Commit

Permalink
Added docblocks to fix scrutinizer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jul 9, 2018
1 parent 0523e71 commit 9f25cec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions library/Providers/LoggerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
5 changes: 4 additions & 1 deletion library/Traits/TokenTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 9f25cec

Please sign in to comment.