@@ -193,6 +193,7 @@ discard block |
||
| 193 | 193 | * Returns a new string with $string appended. |
| 194 | 194 | * |
| 195 | 195 | * @param string ...$suffix <p>The string to append.</p> |
| 196 | + * @param string[] $suffix |
|
| 196 | 197 | * |
| 197 | 198 | * @return static |
| 198 | 199 | * <p>Object with appended $string.</p> |
@@ -1129,6 +1130,7 @@ discard block |
||
| 1129 | 1130 | * Determine whether the string is equals to $str. |
| 1130 | 1131 | * |
| 1131 | 1132 | * @param string ...$str <p>The string to compare.</p> |
| 1133 | + * @param string[] $str |
|
| 1132 | 1134 | * |
| 1133 | 1135 | * @return bool |
| 1134 | 1136 | * <p>Whether or not $str is equals.</p> |
@@ -1570,6 +1572,7 @@ discard block |
||
| 1570 | 1572 | * Returns a new string starting with $string. |
| 1571 | 1573 | * |
| 1572 | 1574 | * @param string ...$prefix <p>The string to append.</p> |
| 1575 | + * @param string[] $prefix |
|
| 1573 | 1576 | * |
| 1574 | 1577 | * @return static |
| 1575 | 1578 | * <p>Object with appended $string.</p> |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $suffix = \implode('', $suffix); |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | - return static::create($this->str . $suffix, $this->encoding); |
|
| 212 | + return static::create($this->str.$suffix, $this->encoding); |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
@@ -1034,7 +1034,7 @@ discard block |
||
| 1034 | 1034 | $quotedPattern = \preg_quote($pattern, '/'); |
| 1035 | 1035 | $replaceWildCards = \str_replace('\*', '.*', $quotedPattern); |
| 1036 | 1036 | |
| 1037 | - return $this->matchesPattern('^' . $replaceWildCards . '\z'); |
|
| 1037 | + return $this->matchesPattern('^'.$replaceWildCards.'\z'); |
|
| 1038 | 1038 | } |
| 1039 | 1039 | |
| 1040 | 1040 | /** |
@@ -1586,7 +1586,7 @@ discard block |
||
| 1586 | 1586 | $prefix = \implode('', ...$prefix); |
| 1587 | 1587 | } |
| 1588 | 1588 | |
| 1589 | - return static::create($prefix . $this->str, $this->encoding); |
|
| 1589 | + return static::create($prefix.$this->str, $this->encoding); |
|
| 1590 | 1590 | } |
| 1591 | 1591 | |
| 1592 | 1592 | /** |
@@ -2231,7 +2231,7 @@ discard block |
||
| 2231 | 2231 | public function surround(string $substring): self |
| 2232 | 2232 | { |
| 2233 | 2233 | return static::create( |
| 2234 | - $substring . $this->str . $substring, |
|
| 2234 | + $substring.$this->str.$substring, |
|
| 2235 | 2235 | $this->encoding |
| 2236 | 2236 | ); |
| 2237 | 2237 | } |