@@ -36,15 +36,14 @@ discard block |
||
| 36 | 36 | $substringLength = UTF8::strlen($substring, $this->encoding); |
| 37 | 37 | $length -= $substringLength; |
| 38 | 38 | |
| 39 | - $truncated = UTF8::substr |
|
| 40 | - ( |
|
| 39 | + $truncated = UTF8::substr( |
|
| 41 | 40 | $this->scalarString, |
| 42 | 41 | 0, |
| 43 | 42 | $length, |
| 44 | 43 | $this->encoding |
| 45 | 44 | ); |
| 46 | 45 | |
| 47 | - return $this->newSelf($truncated . $substring); |
|
| 46 | + return $this->newSelf($truncated.$substring); |
|
| 48 | 47 | } |
| 49 | 48 | |
| 50 | 49 | /** |
@@ -79,8 +78,7 @@ discard block |
||
| 79 | 78 | |
| 80 | 79 | if (!is_integer($lastPos)) |
| 81 | 80 | { |
| 82 | - throw new \UnexpectedValueException |
|
| 83 | - ( |
|
| 81 | + throw new \UnexpectedValueException( |
|
| 84 | 82 | 'Expecting $lastPos to be integer!' |
| 85 | 83 | ); |
| 86 | 84 | } |
@@ -88,6 +86,6 @@ discard block |
||
| 88 | 86 | $truncated = UTF8::substr($truncated, 0, $lastPos, $this->encoding); |
| 89 | 87 | } |
| 90 | 88 | |
| 91 | - return $this->newSelf($truncated . $substring); |
|
| 89 | + return $this->newSelf($truncated.$substring); |
|
| 92 | 90 | } |
| 93 | 91 | } |