Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 6 |
Ratio | 50 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
73 | 6 | private function getRelationshipMethodName($name) |
|
74 | { |
||
75 | 6 | View Code Duplication | if (stripos($name, '-')) { |
76 | 3 | $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name)))); |
|
77 | 3 | } |
|
78 | |||
79 | 6 | View Code Duplication | if (stripos($name, '_')) { |
80 | 3 | $name = lcfirst(implode('', array_map('ucfirst', explode('_', $name)))); |
|
81 | 3 | } |
|
82 | |||
83 | 6 | return $name; |
|
84 | } |
||
85 | } |
||
86 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.