@@ -18,9 +18,9 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Replaces all occurrences of $search in $str by $replacement. |
| 20 | 20 | * |
| 21 | - * @param string|array $search The needle to search for. |
|
| 21 | + * @param string $search The needle to search for. |
|
| 22 | 22 | * |
| 23 | - * @param string|array $replacement The string to replace with. |
|
| 23 | + * @param string $replacement The string to replace with. |
|
| 24 | 24 | * |
| 25 | 25 | * @param bool $caseSensitive To enforce case-sensitivity or not. |
| 26 | 26 | * |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | /** |
| 145 | 145 | * Factory method to create a new Gears\String\Str object. |
| 146 | 146 | * |
| 147 | - * @param mixed $string Must be a scalar string or an object |
|
| 147 | + * @param string $string Must be a scalar string or an object |
|
| 148 | 148 | * that implements the __toString() method |
| 149 | 149 | * or a value that is castable to a scalar |
| 150 | 150 | * string. |
@@ -211,10 +211,10 @@ |
||
| 211 | 211 | */ |
| 212 | 212 | public function countSubstr($substring, $caseSensitive = true) |
| 213 | 213 | { |
| 214 | - if (!isset($this->scalarString[0])) |
|
| 215 | - { |
|
| 216 | - return 0; |
|
| 217 | - } |
|
| 214 | + if (!isset($this->scalarString[0])) |
|
| 215 | + { |
|
| 216 | + return 0; |
|
| 217 | + } |
|
| 218 | 218 | |
| 219 | 219 | if ($caseSensitive) |
| 220 | 220 | { |