@@ -18,8 +18,8 @@ |
||
| 18 | 18 | * @var array Characters to escape outside of a character class |
| 19 | 19 | */ |
| 20 | 20 | public $inLiteral = [ |
| 21 | - '$' => '\\$', '(' => '\\(', ')' => '\\)', '*' => '\\*', |
|
| 22 | - '+' => '\\+', '.' => '\\.', '?' => '\\?', '[' => '\\]', |
|
| 21 | + '$' => '\\$', '(' => '\\(', ')' => '\\)', '*' => '\\*', |
|
| 22 | + '+' => '\\+', '.' => '\\.', '?' => '\\?', '[' => '\\]', |
|
| 23 | 23 | '\\' => '\\\\', '^' => '\\^', '{' => '\\{', '|' => '\\|' |
| 24 | 24 | ]; |
| 25 | 25 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $newStrings = []; |
| 18 | 18 | foreach ($this->getStringsByPrefix($strings) as $prefix => $strings) |
| 19 | 19 | { |
| 20 | - $newStrings[] = (isset($strings[1])) ? $this->mergeStrings($strings) : $strings[0]; |
|
| 20 | + $newStrings[] = (isset($strings[1])) ? $this->mergeStrings($strings) : $strings[0]; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | return $newStrings; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | if ($value < $this->minValue || $value > $this->maxValue) |
| 30 | 30 | { |
| 31 | - throw new InvalidArgumentException('Value ' . $value .' is out of bounds (' . $this->minValue . '..' . $this->maxValue . ')'); |
|
| 31 | + throw new InvalidArgumentException('Value ' . $value . ' is out of bounds (' . $this->minValue . '..' . $this->maxValue . ')'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | return $this->outputValidValue($value); |