Skip to content

Commit 9f25cec

Browse files
committed
Added docblocks to fix scrutinizer issues
1 parent 0523e71 commit 9f25cec

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

library/Providers/LoggerProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public function register(DiInterface $container)
2424
$container->setShared(
2525
'logger',
2626
function () {
27+
/** @var string $logName */
2728
$logName = envValue('LOGGER_DEFAULT_FILENAME', 'api.log');
29+
/** @var string $logPath */
2830
$logPath = envValue('LOGGER_DEFAULT_PATH', 'storage/logs');
2931
$logFile = appPath($logPath) . '/' . $logName . '.log';
3032
$formatter = new LineFormatter("[%datetime%][%level_name%] %message%\n");

library/Traits/TokenTrait.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ protected function getToken(string $token): Token
3535
*/
3636
protected function getTokenAudience(): string
3737
{
38-
return envValue('TOKEN_AUDIENCE', 'https://phalconphp.com');
38+
/** @var string $audience */
39+
$audience = envValue('TOKEN_AUDIENCE', 'https://phalconphp.com');
40+
41+
return $audience;
3942
}
4043

4144
/**

0 commit comments

Comments
 (0)