Skip to content

Commit 6937c3b

Browse files
committed
CS: no whitespace before return type colon
1 parent 4c306f3 commit 6937c3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+171
-171
lines changed

src/FqsenResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class FqsenResolver
2929
/** @var string Definition of the NAMESPACE operator in PHP */
3030
private const OPERATOR_NAMESPACE = '\\';
3131

32-
public function resolve(string $fqsen, ?Context $context = null) : Fqsen
32+
public function resolve(string $fqsen, ?Context $context = null): Fqsen
3333
{
3434
if ($context === null) {
3535
$context = new Context('');
@@ -45,7 +45,7 @@ public function resolve(string $fqsen, ?Context $context = null) : Fqsen
4545
/**
4646
* Tests whether the given type is a Fully Qualified Structural Element Name.
4747
*/
48-
private function isFqsen(string $type) : bool
48+
private function isFqsen(string $type): bool
4949
{
5050
return strpos($type, self::OPERATOR_NAMESPACE) === 0;
5151
}
@@ -56,7 +56,7 @@ private function isFqsen(string $type) : bool
5656
*
5757
* @throws InvalidArgumentException When type is not a valid FQSEN.
5858
*/
59-
private function resolvePartialStructuralElementName(string $type, Context $context) : Fqsen
59+
private function resolvePartialStructuralElementName(string $type, Context $context): Fqsen
6060
{
6161
$typeParts = explode(self::OPERATOR_NAMESPACE, $type, 2);
6262

src/PseudoType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515

1616
interface PseudoType extends Type
1717
{
18-
public function underlyingType() : Type;
18+
public function underlyingType(): Type;
1919
}

src/PseudoTypes/CallableString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
*/
2525
final class CallableString extends String_ implements PseudoType
2626
{
27-
public function underlyingType() : Type
27+
public function underlyingType(): Type
2828
{
2929
return new String_();
3030
}
3131

3232
/**
3333
* Returns a rendered output of the Type as it would be used in a DocBlock.
3434
*/
35-
public function __toString() : string
35+
public function __toString(): string
3636
{
3737
return 'callable-string';
3838
}

src/PseudoTypes/False_.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
*/
2626
final class False_ extends Boolean implements PseudoType
2727
{
28-
public function underlyingType() : Type
28+
public function underlyingType(): Type
2929
{
3030
return new Boolean();
3131
}
3232

33-
public function __toString() : string
33+
public function __toString(): string
3434
{
3535
return 'false';
3636
}

src/PseudoTypes/HtmlEscapedString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
*/
2525
final class HtmlEscapedString extends String_ implements PseudoType
2626
{
27-
public function underlyingType() : Type
27+
public function underlyingType(): Type
2828
{
2929
return new String_();
3030
}
3131

3232
/**
3333
* Returns a rendered output of the Type as it would be used in a DocBlock.
3434
*/
35-
public function __toString() : string
35+
public function __toString(): string
3636
{
3737
return 'html-escaped-string';
3838
}

src/PseudoTypes/LowercaseString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
*/
2525
final class LowercaseString extends String_ implements PseudoType
2626
{
27-
public function underlyingType() : Type
27+
public function underlyingType(): Type
2828
{
2929
return new String_();
3030
}
3131

3232
/**
3333
* Returns a rendered output of the Type as it would be used in a DocBlock.
3434
*/
35-
public function __toString() : string
35+
public function __toString(): string
3636
{
3737
return 'lowercase-string';
3838
}

src/PseudoTypes/NonEmptyLowercaseString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
*/
2525
final class NonEmptyLowercaseString extends String_ implements PseudoType
2626
{
27-
public function underlyingType() : Type
27+
public function underlyingType(): Type
2828
{
2929
return new String_();
3030
}
3131

3232
/**
3333
* Returns a rendered output of the Type as it would be used in a DocBlock.
3434
*/
35-
public function __toString() : string
35+
public function __toString(): string
3636
{
3737
return 'non-empty-lowercase-string';
3838
}

src/PseudoTypes/NonEmptyString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
*/
2525
final class NonEmptyString extends String_ implements PseudoType
2626
{
27-
public function underlyingType() : Type
27+
public function underlyingType(): Type
2828
{
2929
return new String_();
3030
}
3131

3232
/**
3333
* Returns a rendered output of the Type as it would be used in a DocBlock.
3434
*/
35-
public function __toString() : string
35+
public function __toString(): string
3636
{
3737
return 'non-empty-string';
3838
}

src/PseudoTypes/NumericString.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
*/
2525
final class NumericString extends String_ implements PseudoType
2626
{
27-
public function underlyingType() : Type
27+
public function underlyingType(): Type
2828
{
2929
return new String_();
3030
}
3131

3232
/**
3333
* Returns a rendered output of the Type as it would be used in a DocBlock.
3434
*/
35-
public function __toString() : string
35+
public function __toString(): string
3636
{
3737
return 'numeric-string';
3838
}

src/PseudoTypes/PositiveInteger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
*/
2525
final class PositiveInteger extends Integer implements PseudoType
2626
{
27-
public function underlyingType() : Type
27+
public function underlyingType(): Type
2828
{
2929
return new Integer();
3030
}
3131

3232
/**
3333
* Returns a rendered output of the Type as it would be used in a DocBlock.
3434
*/
35-
public function __toString() : string
35+
public function __toString(): string
3636
{
3737
return 'positive-int';
3838
}

0 commit comments

Comments
 (0)