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