Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 6 |
Ratio | 50 % |
Changes | 0 |
1 | <?php |
||
74 | private function getRelationshipMethodName($name) |
||
75 | { |
||
76 | View Code Duplication | if (stripos($name, '-')) { |
|
77 | $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name)))); |
||
78 | } |
||
79 | |||
80 | View Code Duplication | if (stripos($name, '_')) { |
|
81 | $name = lcfirst(implode('', array_map('ucfirst', explode('_', $name)))); |
||
82 | } |
||
83 | |||
84 | return $name; |
||
85 | } |
||
86 | } |
||
87 |
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.