Skip to content

Commit 96c24a2

Browse files
committed
Fix code style issues
1 parent 70be656 commit 96c24a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/TypeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private function parseTypes(ArrayIterator $tokens, Context $context, int $parser
223223

224224
$classType = array_pop($types);
225225
if ($classType !== null) {
226-
if ((string)$classType === 'class-string') {
226+
if ((string) $classType === 'class-string') {
227227
$types[] = $this->resolveClassString($tokens, $context);
228228
} else {
229229
$types[] = $this->resolveCollection($tokens, $classType, $context);

src/Types/ClassString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public function __toString() : string
4747
{
4848
if ($this->fqsen === null) {
4949
return 'class-string';
50-
} else {
51-
return 'class-string<' . (string)$this->fqsen . '>';
5250
}
51+
52+
return 'class-string<' . (string) $this->fqsen . '>';
5353
}
5454
}

0 commit comments

Comments
 (0)