| @@ 88-92 (lines=5) @@ | ||
| 85 | $this->minor = 0; |
|
| 86 | } |
|
| 87 | ||
| 88 | if (isset($components[Parser::PATCH])) { |
|
| 89 | $this->patch = $components[Parser::PATCH]; |
|
| 90 | } else { |
|
| 91 | $this->patch = 0; |
|
| 92 | } |
|
| 93 | ||
| 94 | if (isset($components[Parser::PRE_RELEASE])) { |
|
| 95 | $this->preRelease = $components[Parser::PRE_RELEASE]; |
|
| @@ 94-98 (lines=5) @@ | ||
| 91 | $this->patch = 0; |
|
| 92 | } |
|
| 93 | ||
| 94 | if (isset($components[Parser::PRE_RELEASE])) { |
|
| 95 | $this->preRelease = $components[Parser::PRE_RELEASE]; |
|
| 96 | } else { |
|
| 97 | $this->preRelease = array(); |
|
| 98 | } |
|
| 99 | ||
| 100 | return $this; |
|
| 101 | } |
|