We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 4 |
Paths | 5 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
16 | 2 | private static function cleanAstDescription($description) |
|
17 | { |
||
18 | 2 | if (null === $description) { |
|
19 | 2 | return null; |
|
20 | } |
||
21 | |||
22 | 1 | if (\property_exists($description, 'value')) { |
|
23 | 1 | $description = $description->value; |
|
24 | } |
||
25 | 1 | $description = \trim($description); |
|
26 | |||
27 | 1 | return empty($description) ? null : $description; |
|
28 | } |
||
29 | } |
||
30 |