@@ -112,7 +112,7 @@ |
||
112 | 112 | */ |
113 | 113 | private function validateIndex($index) |
114 | 114 | { |
115 | - if (! isset($this->element[$index]) || $index == 0) { |
|
115 | + if (!isset($this->element[$index]) || $index == 0) { |
|
116 | 116 | throw new \OutOfBoundsException( |
117 | 117 | 'Trying to access invalid submatch index ' . $index . 'in match: ' . $this->getFullMatch() |
118 | 118 | ); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function getMatchAt($index) |
76 | 76 | { |
77 | - if (! isset($this->response[$index])) { |
|
77 | + if (!isset($this->response[$index])) { |
|
78 | 78 | throw new \OutOfBoundsException('Trying to access a match at an invalid index'); |
79 | 79 | } |
80 | 80 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | public function next() |
96 | 96 | { |
97 | - ++ $this->current; |
|
97 | + ++$this->current; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | public function key() |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $pattern = $this->getPatternByType($pattern); |
60 | 60 | $result = @preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, $offset); |
61 | 61 | $this->checkResultIsOkOrThrowException($result, $pattern); |
62 | - return $result? new Match($matches) : null; |
|
62 | + return $result ? new Match($matches) : null; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |