Skip to content

Commit

Permalink
Merge pull request #15 from ghostwriter/feature/fix-coding-standard
Browse files Browse the repository at this point in the history
feature/fix coding standard
  • Loading branch information
ghostwriter committed Aug 6, 2022
2 parents 66496e6 + 962aae9 commit c483136
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/Command/AbstractCommand.php
Expand Up @@ -13,7 +13,6 @@
use Throwable;
use function sprintf;
use function str_replace;
use function strtolower;

abstract class AbstractCommand extends Command
{
Expand All @@ -27,7 +26,7 @@ public function __construct(

public static function getDefaultName(): string
{
return strtolower(str_replace([__NAMESPACE__ . '\\', 'Command'], '', static::class));
return mb_strtolower(str_replace([__NAMESPACE__ . '\\', 'Command'], '', static::class));
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/Service/Composer.php
Expand Up @@ -8,7 +8,6 @@
use function basename;
use function getenv;
use function pathinfo;
use function substr;
use function trim;

final class Composer
Expand Down Expand Up @@ -39,7 +38,7 @@ public function getLockFilePath(string $root): string
$composerJsonPath = $this->getJsonFilePath($root);

return 'json' === pathinfo($composerJsonPath, PATHINFO_EXTENSION)
? substr($composerJsonPath, 0, -4) . 'lock'
? mb_substr($composerJsonPath, 0, -4) . 'lock'
: $composerJsonPath . '.lock';
}
}
3 changes: 1 addition & 2 deletions src/ServiceProvider/ConsoleServiceProvider.php
Expand Up @@ -27,7 +27,6 @@
use function preg_match;
use function sprintf;
use function str_replace;
use function strtolower;

final class ConsoleServiceProvider implements ServiceProviderInterface
{
Expand Down Expand Up @@ -60,7 +59,7 @@ public function __invoke(ContainerInterface $container): void
continue;
}

if (str_contains(strtolower($path), 'abstract')) {
if (str_contains(mb_strtolower($path), 'abstract')) {
continue;
}

Expand Down

0 comments on commit c483136

Please sign in to comment.