Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 12 |
Ratio | 100 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
67 | 6 | View Code Duplication | public function generateReleaseUrl($sourceUrl, Version $version) |
68 | { |
||
69 | 6 | if ($version->isDev()) { |
|
70 | 2 | return false; |
|
71 | } |
||
72 | |||
73 | 4 | return sprintf( |
|
74 | 4 | '%s/tags/%s', |
|
75 | 4 | $this->generateBaseUrl($sourceUrl), |
|
76 | 4 | $version->getPretty() |
|
77 | 4 | ); |
|
78 | } |
||
79 | } |
||
80 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.