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