@@ -111,7 +111,7 @@ |
||
| 111 | 111 | $variableName = ''; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - $type = (string) $this->type; |
|
| 114 | + $type = (string)$this->type; |
|
| 115 | 115 | |
| 116 | 116 | return $type |
| 117 | 117 | . ($variableName !== '' ? ($type !== '' ? ' ' : '') . $variableName : '') |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $description = ''; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - $refers = (string) $this->refers; |
|
| 96 | + $refers = (string)$this->refers; |
|
| 97 | 97 | |
| 98 | 98 | return $refers . ($description !== '' ? ($refers !== '' ? ' ' : '') . $description : ''); |
| 99 | 99 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $description = ''; |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - $version = (string) $this->version; |
|
| 98 | + $version = (string)$this->version; |
|
| 99 | 99 | |
| 100 | 100 | return $version . ($description !== '' ? ($version !== '' ? ' ' : '') . $description : ''); |
| 101 | 101 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $parts = Utils::pregSplit('/(\s+)/Su', $body, 2, PREG_SPLIT_DELIM_CAPTURE); |
| 73 | 73 | $variableName = ''; |
| 74 | 74 | $isVariadic = false; |
| 75 | - $isReference = false; |
|
| 75 | + $isReference = false; |
|
| 76 | 76 | |
| 77 | 77 | // if the first item that is encountered is not a variable; it is a type |
| 78 | 78 | if ($firstPart && !self::strStartsWithVariable($firstPart)) { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $variableName .= '$' . $this->variableName; |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | - $type = (string) $this->type; |
|
| 155 | + $type = (string)$this->type; |
|
| 156 | 156 | |
| 157 | 157 | return $type |
| 158 | 158 | . ($variableName !== '' ? ($type !== '' ? ' ' : '') . $variableName : '') |
@@ -33,6 +33,6 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function __toString() : string |
| 35 | 35 | { |
| 36 | - return (string) $this->fqsen; |
|
| 36 | + return (string)$this->fqsen; |
|
| 37 | 37 | } |
| 38 | 38 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $description = ''; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - $type = (string) $this->type; |
|
| 60 | + $type = (string)$this->type; |
|
| 61 | 61 | |
| 62 | 62 | return $type . ($description !== '' ? ($type !== '' ? ' ' : '') . $description : ''); |
| 63 | 63 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $authorEmail = ''; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - $authorName = (string) $this->authorName; |
|
| 80 | + $authorName = (string)$this->authorName; |
|
| 81 | 81 | |
| 82 | 82 | return $authorName . ($authorEmail !== '' ? ($authorName !== '' ? ' ' : '') . $authorEmail : ''); |
| 83 | 83 | } |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $trace = $exception->getTrace(); |
| 86 | 86 | if (isset($trace[0]['args'])) { |
| 87 | 87 | $trace = array_map( |
| 88 | - function (array $call) : array { |
|
| 88 | + function(array $call) : array { |
|
| 89 | 89 | $call['args'] = array_map([$this, 'flattenArguments'], $call['args']); |
| 90 | 90 | |
| 91 | 91 | return $call; |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | // Starting line / Number of lines / Description |
| 113 | 113 | if (preg_match('/^([1-9]\d*)(?:\s+((?1))\s*)?(.*)$/sux', $matches[3], $contentMatches)) { |
| 114 | - $startingLine = (int) $contentMatches[1]; |
|
| 114 | + $startingLine = (int)$contentMatches[1]; |
|
| 115 | 115 | if (isset($contentMatches[2])) { |
| 116 | - $lineCount = (int) $contentMatches[2]; |
|
| 116 | + $lineCount = (int)$contentMatches[2]; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | if (array_key_exists(3, $contentMatches)) { |
@@ -147,11 +147,11 @@ discard block |
||
| 147 | 147 | */ |
| 148 | 148 | public function __toString() : string |
| 149 | 149 | { |
| 150 | - $filePath = (string) $this->filePath; |
|
| 150 | + $filePath = (string)$this->filePath; |
|
| 151 | 151 | $isDefaultLine = $this->startingLine === 1 && $this->lineCount === 0; |
| 152 | - $startingLine = !$isDefaultLine ? (string) $this->startingLine : ''; |
|
| 153 | - $lineCount = !$isDefaultLine ? (string) $this->lineCount : ''; |
|
| 154 | - $content = (string) $this->content; |
|
| 152 | + $startingLine = !$isDefaultLine ? (string)$this->startingLine : ''; |
|
| 153 | + $lineCount = !$isDefaultLine ? (string)$this->lineCount : ''; |
|
| 154 | + $content = (string)$this->content; |
|
| 155 | 155 | |
| 156 | 156 | return $filePath |
| 157 | 157 | . ($startingLine !== '' |