Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
73 | protected function getCommandForDirectory($directory) |
||
74 | { |
||
75 | if ($this->getShort()) { |
||
76 | return sprintf( |
||
77 | 'cd %s && git rev-parse --short HEAD', |
||
78 | escapeshellarg($directory) |
||
79 | ); |
||
80 | } else { |
||
81 | return sprintf( |
||
82 | 'cd %s && git rev-parse HEAD', |
||
83 | escapeshellarg($directory) |
||
84 | ); |
||
85 | } |
||
86 | } |
||
87 | } |
||
88 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.