@@ -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 | /** |
@@ -112,9 +112,9 @@ |
||
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 | - 'Trying to access invalid submatch index ' . $index . 'in match: ' . $this->getFullMatch() |
|
117 | + 'Trying to access invalid submatch index '.$index.'in match: '.$this->getFullMatch() |
|
118 | 118 | ); |
119 | 119 | } |
120 | 120 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | { |
82 | 82 | if ($result === false) { |
83 | 83 | throw new \RuntimeException( |
84 | - 'An error occurred executing the pattern ' . var_export($pattern, true) |
|
84 | + 'An error occurred executing the pattern '.var_export($pattern, true) |
|
85 | 85 | ); |
86 | 86 | } |
87 | 87 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | { |
97 | 97 | if ($result === null) { |
98 | 98 | throw new \RuntimeException( |
99 | - 'An error occurred replacing the pattern ' . var_export($pattern, true) |
|
99 | + 'An error occurred replacing the pattern '.var_export($pattern, true) |
|
100 | 100 | ); |
101 | 101 | } |
102 | 102 | } |