| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | protected function getPrimaryKey(array $data, $field, $referencedTable) |
||
| 44 | { |
||
| 45 | $accessor = 'get_' . $this->describe->getPrimaryKey($referencedTable); |
||
| 46 | |||
| 47 | $data['primaryKeys'][$field] = $accessor; |
||
| 48 | |||
| 49 | if ($data['isCamel']) { |
||
| 50 | $camelized = camelize($data['primaryKeys'][$field]); |
||
| 51 | |||
| 52 | $data['primaryKeys'][$field] = $camelized; |
||
| 53 | } |
||
| 54 | |||
| 55 | return $data; |
||
| 56 | } |
||
| 57 | |||
| 82 |