1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Improvements

Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
This commit is contained in:
Gabriel Caruso 2018-07-04 21:52:04 -03:00
parent 0c6201de3e
commit 7d9f8e2247
No known key found for this signature in database
GPG key ID: EA85C7988F5A6877
18 changed files with 18 additions and 25 deletions

View file

@ -93,7 +93,7 @@ class Rule2Literals extends Rule
*/
public function __toString()
{
$result = ($this->isDisabled()) ? 'disabled(' : '(';
$result = $this->isDisabled() ? 'disabled(' : '(';
$result .= $this->literal1 . '|' . $this->literal2 . ')';