| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function execute($value) |
||
| 25 | { |
||
| 26 | $value = preg_replace(self::REG_EXPORT, (string)null, $value); |
||
| 27 | $value = preg_replace(self::REG_SETENV, (string)null, $value); |
||
| 28 | $value = preg_replace(self::REG_SETENV_CAMELCASE, (string)null, $value); |
||
| 29 | |||
| 30 | if (is_numeric(substr($value, 0, 1))) { |
||
| 31 | throw new ParseException(sprintf("Numeric should not start with number: %s", $value)); |
||
| 32 | } |
||
| 33 | |||
| 34 | return trim($value); |
||
| 35 | } |
||
| 36 | } |