| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 3 | public function reset($arg = null, array $options = []): string |
|
| 43 | { |
||
| 44 | 3 | $this->clearAll(); |
|
| 45 | 3 | $this->addCommandName(self::GIT_RESET_COMMAND); |
|
| 46 | // if there are options add them. |
||
| 47 | 3 | foreach ($options as $option) { |
|
| 48 | 3 | $this->addCommandArgument($option); |
|
| 49 | } |
||
| 50 | |||
| 51 | 3 | if ($arg != null) { |
|
|
|
|||
| 52 | 3 | $this->addCommandSubject2($arg); |
|
| 53 | } |
||
| 54 | |||
| 55 | 3 | return $this->getCommand(); |
|
| 56 | } |
||
| 57 | |||
| 67 |