Skip to content

Commit

Permalink
Fix errors reported by psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed May 27, 2020
1 parent 31ba5e4 commit 6d9fe1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/I18n/RelativeTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ protected function _diffData($futureTime, $pastTime, bool $backwards, $options):

$fNum = str_replace(
['year', 'month', 'week', 'day', 'hour', 'minute', 'second'],
[1, 2, 3, 4, 5, 6, 7],
['1', '2', '3', '4', '5', '6', '7'],
$fWord
);

Expand Down
2 changes: 1 addition & 1 deletion src/Routing/Middleware/AssetMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function _getAssetFile(string $url): ?string
}
$pluginPart[] = Inflector::camelize($parts[$i]);
$plugin = implode('/', $pluginPart);
if ($plugin && Plugin::isLoaded($plugin)) {
if (Plugin::isLoaded($plugin)) {
$parts = array_slice($parts, $i + 1);
$fileFragment = implode(DIRECTORY_SEPARATOR, $parts);
$pluginWebroot = Plugin::path($plugin) . 'webroot' . DIRECTORY_SEPARATOR;
Expand Down

0 comments on commit 6d9fe1b

Please sign in to comment.