@@ -147,7 +147,7 @@ |
||
147 | 147 | } |
148 | 148 | |
149 | 149 | if (!isset(static::$methodArgs[$name])) { |
150 | - throw new \BadMethodCallException($name . ' is not a valid method'); |
|
150 | + throw new \BadMethodCallException($name.' is not a valid method'); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | $numArgs = \count($arguments); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | ); |
63 | 63 | } |
64 | 64 | |
65 | - $this->str = (string)$str; |
|
65 | + $this->str = (string) $str; |
|
66 | 66 | |
67 | 67 | if ($encoding && $encoding !== 'UTF-8') { |
68 | 68 | $this->encoding = UTF8::normalize_encoding($encoding); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function __toString() |
80 | 80 | { |
81 | - return (string)$this->str; |
|
81 | + return (string) $this->str; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function append(string $string): self |
168 | 168 | { |
169 | - return static::create($this->str . $string, $this->encoding); |
|
169 | + return static::create($this->str.$string, $this->encoding); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
@@ -953,7 +953,7 @@ discard block |
||
953 | 953 | $quotedPattern = \preg_quote($pattern, '/'); |
954 | 954 | $replaceWildCards = \str_replace('\*', '.*', $quotedPattern); |
955 | 955 | |
956 | - return $this->matchesPattern('^' . $replaceWildCards . '\z'); |
|
956 | + return $this->matchesPattern('^'.$replaceWildCards.'\z'); |
|
957 | 957 | } |
958 | 958 | |
959 | 959 | /** |
@@ -1423,7 +1423,7 @@ discard block |
||
1423 | 1423 | */ |
1424 | 1424 | public function prepend(string $string): self |
1425 | 1425 | { |
1426 | - return static::create($string . $this->str, $this->encoding); |
|
1426 | + return static::create($string.$this->str, $this->encoding); |
|
1427 | 1427 | } |
1428 | 1428 | |
1429 | 1429 | /** |
@@ -1460,7 +1460,7 @@ discard block |
||
1460 | 1460 | */ |
1461 | 1461 | public function removeHtml(string $allowableTags = null): self |
1462 | 1462 | { |
1463 | - $str = UTF8::remove_html($this->str, $allowableTags . ''); |
|
1463 | + $str = UTF8::remove_html($this->str, $allowableTags.''); |
|
1464 | 1464 | |
1465 | 1465 | return static::create($str, $this->encoding); |
1466 | 1466 | } |
@@ -2044,7 +2044,7 @@ discard block |
||
2044 | 2044 | */ |
2045 | 2045 | public function toString(): string |
2046 | 2046 | { |
2047 | - return (string)$this->str; |
|
2047 | + return (string) $this->str; |
|
2048 | 2048 | } |
2049 | 2049 | |
2050 | 2050 | /** |