@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | elseif (preg_match(self::$regEx['array'], $variable)) { |
| 112 | 112 | try { |
| 113 | 113 | $values[] = $this->getValueFromArray($variable); |
| 114 | - } catch(RuntimeException $e) { |
|
| 114 | + } catch (RuntimeException $e) { |
|
| 115 | 115 | if ($this->throwException) throw new GherkinParamException(); |
| 116 | 116 | if ($this->nullable) $values[] = null; |
| 117 | 117 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | else { |
| 121 | 121 | try { |
| 122 | 122 | $values[] = Fixtures::get($variable); |
| 123 | - } catch(RuntimeException $e) { |
|
| 123 | + } catch (RuntimeException $e) { |
|
| 124 | 124 | if ($this->throwException) throw new GherkinParamException(); |
| 125 | 125 | if ($this->nullable) $values[] = null; |
| 126 | 126 | } |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | // due to the default behavior when `search` and `replace` arrays size mismatch |
| 136 | 136 | $param = $this->mapParametersToValues($matches, $values, $param); |
| 137 | 137 | |
| 138 | - } catch(GherkinParamException $e) { |
|
| 138 | + } catch (GherkinParamException $e) { |
|
| 139 | 139 | // only active if throwException setting is true |
| 140 | 140 | throw new ExtensionException( |
| 141 | 141 | $this, |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | final private function mapParametersToValues(array $matches, array $values, string $param) |
| 162 | 162 | { |
| 163 | 163 | //TODO: move count() into separate variable [performance] |
| 164 | - for ($i=0; $i<count($matches); $i++) { |
|
| 164 | + for ($i = 0; $i < count($matches); $i++) { |
|
| 165 | 165 | $search = $matches[$i]; |
| 166 | 166 | if (isset($values[$i])) { |
| 167 | 167 | $replacement = $values[$i]; |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | $prop = new ReflectionProperty(get_class($arg), 'table'); |
| 270 | 270 | $prop->setAccessible(true); |
| 271 | 271 | $table = $prop->getValue($arg); |
| 272 | - foreach($table as $i => $row) { |
|
| 272 | + foreach ($table as $i => $row) { |
|
| 273 | 273 | foreach ($row as $j => $cell) { |
| 274 | 274 | $val = $this->getValueFromParam($cell); |
| 275 | 275 | $table[$i][$j] = $val ? $val : null; // issue TableNode does not support `null` values in table |