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