Skip to content

Commit ffe4460

Browse files
committed
PHP linting
1 parent 8305dc5 commit ffe4460

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Argument/Argument.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function __construct(
1919
string $name,
2020
string $description = '',
2121
bool $isOptional = TRUE,
22-
$defaultValue = NULL
22+
$defaultValue = NULL,
2323
) {
2424
$this->name = $name;
2525
$this->description = $description;
@@ -31,7 +31,7 @@ final public static function create(
3131
string $name,
3232
string $description = '',
3333
bool $isOptional = TRUE,
34-
string|int|float|bool|NULL $defaultValue = NULL
34+
string|int|float|bool|NULL $defaultValue = NULL,
3535
): ArgumentInterface {
3636
return match ($name) {
3737
'command', 'input', 'output' => new BuiltInArgument($name),

src/Argument/BuiltInArgument.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ class BuiltInArgument extends Argument implements ArgumentInterface {
99

1010
protected function __construct(
1111
string $name,
12-
string $description = NULL,
13-
bool $isOptional = NULL,
14-
$defaultValue = NULL
12+
string $description = '',
13+
bool $isOptional = TRUE,
14+
$defaultValue = NULL,
1515
) {
16-
parent::__construct($name, '', TRUE, NULL);
16+
parent::__construct($name);
1717
}
1818

1919
public function getDescription(): string {

src/Argument/VariadicArgument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ protected function __construct(
1111
string $name,
1212
string $description,
1313
bool $isOptional,
14-
$defaultValue
14+
$defaultValue,
1515
) {
1616
if (!is_null($defaultValue)) {
1717
throw new \InvalidArgumentException('Variadic argument default value must be NULL');

src/Phpake.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function require(string $path) {
6363
/**
6464
* {@inheritdoc}
6565
*/
66-
public function run(InputInterface $input = NULL, OutputInterface $output = NULL): int {
66+
public function run(?InputInterface $input = NULL, ?OutputInterface $output = NULL): int {
6767
return parent::run($input ?? $this->input, $output ?? $this->output);
6868
}
6969

0 commit comments

Comments
 (0)