@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare (strict_types=1); |
|
| 3 | +declare (strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Tdn\PhpTypes\Type; |
| 6 | 6 | |
@@ -101,8 +101,7 @@ discard block |
||
| 101 | 101 | public function strpos(string $subStr, int $offset = 0, bool $caseSensitive = false) : IntType |
| 102 | 102 | { |
| 103 | 103 | $res = ($caseSensitive) ? |
| 104 | - mb_strpos($this->str, $subStr, $offset, $this->encoding) : |
|
| 105 | - mb_stripos($this->str, $subStr, $offset, $this->encoding); |
|
| 104 | + mb_strpos($this->str, $subStr, $offset, $this->encoding) : mb_stripos($this->str, $subStr, $offset, $this->encoding); |
|
| 106 | 105 | |
| 107 | 106 | return new IntType($res); |
| 108 | 107 | } |
@@ -119,8 +118,7 @@ discard block |
||
| 119 | 118 | public function strrpos(string $subStr, int $offset = 0, bool $caseSensitive = false) : IntType |
| 120 | 119 | { |
| 121 | 120 | $res = ($caseSensitive) ? |
| 122 | - mb_strrpos($this->str, $subStr, $offset, $this->encoding) : |
|
| 123 | - mb_strripos($this->str, $subStr, $offset, $this->encoding); |
|
| 121 | + mb_strrpos($this->str, $subStr, $offset, $this->encoding) : mb_strripos($this->str, $subStr, $offset, $this->encoding); |
|
| 124 | 122 | |
| 125 | 123 | return new IntType($res); |
| 126 | 124 | } |