@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | } |
33 | 33 | |
34 | - array_walk_recursive($opts, function (&$val) { |
|
34 | + array_walk_recursive($opts, function(&$val) { |
|
35 | 35 | if ('true' === $val) { |
36 | 36 | $val = true; |
37 | 37 | } elseif ('false' === $val) { |
@@ -33,7 +33,7 @@ |
||
33 | 33 | { |
34 | 34 | $this->invalidPatterns = array_merge($this->invalidPatterns, $config['invalidPatterns'] ?? []); |
35 | 35 | foreach ($this->invalidPatterns as &$invalidPattern) { |
36 | - $invalidPattern = '#' . $invalidPattern . '#i'; |
|
36 | + $invalidPattern = '#'.$invalidPattern.'#i'; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | $this->invalidTags = array_merge($this->invalidTags, $config['invalidTags'] ?? []); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $varTag = $subject->getDocBlock()->getTagsByName('var')[0] ?? null; |
77 | 77 | |
78 | 78 | if ($varTag && null !== $varTag->getParamName()) { |
79 | - $subject->addDocTypeWarning('Remove property name $' . $varTag->getParamName() . ' from @var tag'); |
|
79 | + $subject->addDocTypeWarning('Remove property name $'.$varTag->getParamName().' from @var tag'); |
|
80 | 80 | } |
81 | 81 | } |
82 | 82 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $prop->getDefaultValueType(), |
27 | 27 | $varTag ? $varTag->getLine() : $prop->getLine(), |
28 | 28 | $prop->getLine(), |
29 | - 'property $' . $prop->getPropName(), |
|
29 | + 'property $'.$prop->getPropName(), |
|
30 | 30 | $docBlock |
31 | 31 | ); |
32 | 32 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $const->getValueType(), |
47 | 47 | $varTag ? $varTag->getLine() : null, |
48 | 48 | $const->getLine(), |
49 | - $const->getConstName() . ' constant', |
|
49 | + $const->getConstName().' constant', |
|
50 | 50 | $docBlock |
51 | 51 | ); |
52 | 52 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $typedArrayType->getType() instanceof ArrayType |
40 | 40 | || $typedArrayType->getType() instanceof UndefinedType |
41 | 41 | ) { |
42 | - return $typedArrayType; // e.g. array[][] or [][] |
|
42 | + return $typedArrayType; // e.g. array[][] or [][] |
|
43 | 43 | } |
44 | 44 | } |
45 | 45 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function toString(): string |
31 | 31 | { |
32 | - return '?' . $this->type->toString(); |
|
32 | + return '?'.$this->type->toString(); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public function toDocString(): string |
@@ -37,6 +37,6 @@ discard block |
||
37 | 37 | $rawType = $this->type->toString(); |
38 | 38 | |
39 | 39 | // This must match sorting in CompoundType::toString() for raw comparisons. |
40 | - return $rawType > 'null' ? 'null|' . $rawType : $rawType . '|null'; |
|
40 | + return $rawType > 'null' ? 'null|'.$rawType : $rawType.'|null'; |
|
41 | 41 | } |
42 | 42 | } |
@@ -38,6 +38,6 @@ |
||
38 | 38 | $innerType = sprintf('(%s)', $innerType); |
39 | 39 | } |
40 | 40 | |
41 | - return $innerType . str_repeat('[]', $this->depth); |
|
41 | + return $innerType.str_repeat('[]', $this->depth); |
|
42 | 42 | } |
43 | 43 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | case T_CALLABLE: |
76 | 76 | case T_NULLABLE: |
77 | 77 | // these cannot be default |
78 | - $raw['type'] = ($raw['type'] ?? '') . $token['content']; |
|
78 | + $raw['type'] = ($raw['type'] ?? '').$token['content']; |
|
79 | 79 | break; |
80 | 80 | case T_EQUAL: |
81 | 81 | $raw['default'] = ''; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | if (isset($raw['default'])) { |
88 | 88 | $raw['default'] .= $token['content']; |
89 | 89 | } else { |
90 | - $raw['type'] = ($raw['type'] ?? '') . $token['content']; |
|
90 | + $raw['type'] = ($raw['type'] ?? '').$token['content']; |
|
91 | 91 | } |
92 | 92 | break; |
93 | 93 | case T_ELLIPSIS: |