Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | 3 | public function analyzeForIssues() |
|
40 | { |
||
41 | 3 | $issues = []; |
|
42 | |||
43 | /** |
||
44 | * Length |
||
45 | */ |
||
46 | 3 | if (strlen($this->title) === 0) { |
|
47 | 1 | $issues[] = 'Title is not set or empty'; |
|
48 | } |
||
49 | |||
50 | 3 | if (strlen($this->title) > 55) { |
|
51 | 1 | $issues[] = 'Title is longer than 55 characters'; |
|
52 | } |
||
53 | |||
54 | 3 | return $issues; |
|
55 | } |
||
56 | |||
58 |