Skip to content

Commit c0a481f

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 61813a9 commit c0a481f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Console/ClishCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ public function execute()
7777
$this->doHighlight($code);
7878
}
7979

80-
protected function doHighlight(string $code = null)
80+
protected function doHighlight(?string $code = null)
8181
{
8282
if (!$this->output || $this->echo) {
8383
$this->app()->io()->raw((new Highlighter)->highlight($code, ['lineNo' => $this->lineNo]));
8484
}
8585
}
8686

87-
protected function doExport(string $code = null)
87+
protected function doExport(?string $code = null)
8888
{
8989
if (!$this->output) {
9090
return;

src/Highlighter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __toString(): string
2323
return $this->highlight();
2424
}
2525

26-
public function highlight(string $code = null, array $options = []): string
26+
public function highlight(?string $code = null, array $options = []): string
2727
{
2828
$this->setOptions($options);
2929

src/Pretty.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract class Pretty
3333
/** @var bool Indicates if it has been already configured. */
3434
protected static $configured;
3535

36-
public function __construct(string $code = null)
36+
public function __construct(?string $code = null)
3737
{
3838
$this->code = $code ?? '';
3939
}
@@ -67,7 +67,7 @@ protected function setOptions(array $options)
6767
}
6868
}
6969

70-
protected function parse(string $code = null)
70+
protected function parse(?string $code = null)
7171
{
7272
$this->reset();
7373

0 commit comments

Comments
 (0)