Skip to content

Commit 626aa09

Browse files
committed
apply suggestions
1 parent 37d1d5b commit 626aa09

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

system/CLI/AbstractCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ protected function configure(): void
457457
}
458458

459459
/**
460-
* Check whether this command is available to execute in the current environment
460+
* Checks whether this command is available to execute in the current environment
461461
*/
462462
protected function isAvailable(): bool
463463
{

user_guide_src/source/cli/cli_modern_commands/013.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44

55
use CodeIgniter\CLI\AbstractCommand;
66
use CodeIgniter\CLI\Attributes\Command;
7-
use CodeIgniter\CLI\CLI;
87

98
#[Command(name: 'dev:only', description: 'A dev only command', group: 'Dev')]
109
class DevOnly extends AbstractCommand
1110
{
12-
public function isAvailable(): bool
11+
protected function isAvailable(): bool
1312
{
1413
// Only allow this command in the development environment
1514
return ENVIRONMENT === 'development';

0 commit comments

Comments
 (0)