@@ -32,14 +32,14 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @var array |
| 34 | 34 | */ |
| 35 | - protected $wordDelimiters = [' ', '.', '\\', '/', '-', '_']; |
|
| 35 | + protected $wordDelimiters = [ ' ', '.', '\\', '/', '-', '_' ]; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Which characters are not replaced |
| 39 | 39 | * |
| 40 | 40 | * @var array |
| 41 | 41 | */ |
| 42 | - protected $notReplacedChars = []; |
|
| 42 | + protected $notReplacedChars = [ ]; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @var Transliteration |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | if (is_array($notReplaced)) { |
| 177 | 177 | $this->notReplacedChars = array_merge($this->getNotReplacedChars(), $notReplaced); |
| 178 | 178 | } else { |
| 179 | - $this->notReplacedChars[] = $notReplaced; |
|
| 179 | + $this->notReplacedChars[ ] = $notReplaced; |
|
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | return $this; |
@@ -214,10 +214,10 @@ discard block |
||
| 214 | 214 | throw new Exception\RuntimeException("Not replaced character '$notReplaced' is not in array."); |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | - $notReplacedChars = []; |
|
| 217 | + $notReplacedChars = [ ]; |
|
| 218 | 218 | foreach ($this->notReplacedChars as $n) { |
| 219 | 219 | if ($n != $notReplaced) { |
| 220 | - $notReplacedChars[] = $n; |
|
| 220 | + $notReplacedChars[ ] = $n; |
|
| 221 | 221 | } |
| 222 | 222 | $this->notReplacedChars = $notReplacedChars; |
| 223 | 223 | } |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | if (is_array($delimiter)) { |
| 279 | 279 | $this->wordDelimiters = array_merge($this->getWordDelimiters(), $delimiter); |
| 280 | 280 | } else { |
| 281 | - $this->wordDelimiters[] = $delimiter; |
|
| 281 | + $this->wordDelimiters[ ] = $delimiter; |
|
| 282 | 282 | } |
| 283 | 283 | |
| 284 | 284 | return $this; |
@@ -306,10 +306,10 @@ discard block |
||
| 306 | 306 | throw new Exception\RuntimeException("Word delimiter '$delimiters' is not in delimiters array."); |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | - $wordDelimiters = []; |
|
| 309 | + $wordDelimiters = [ ]; |
|
| 310 | 310 | foreach ($this->wordDelimiters as $delimiter) { |
| 311 | 311 | if ($delimiter != $delimiters) { |
| 312 | - $wordDelimiters[] = $delimiter; |
|
| 312 | + $wordDelimiters[ ] = $delimiter; |
|
| 313 | 313 | } |
| 314 | 314 | $this->wordDelimiters = $wordDelimiters; |
| 315 | 315 | } |