| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 18 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 35 | public function toString($format = 'short')  | 
            ||
| 36 |     { | 
            ||
| 37 |         switch ($format) { | 
            ||
| 38 | case 'long':  | 
            ||
| 39 | return sprintf(  | 
            ||
| 40 | '%d.%d.%s (#%d, %s)',  | 
            ||
| 41 | $this->major,  | 
            ||
| 42 | $this->minor,  | 
            ||
| 43 | $this->patch,  | 
            ||
| 44 | $this->commits,  | 
            ||
| 45 | $this->commit  | 
            ||
| 46 | );  | 
            ||
| 47 | default:  | 
            ||
| 48 | return sprintf(  | 
            ||
| 49 | '%d.%d.%s',  | 
            ||
| 50 | $this->major,  | 
            ||
| 51 | $this->minor,  | 
            ||
| 52 | $this->patch  | 
            ||
| 53 | );  | 
            ||
| 64 | }  |