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