Code Duplication    Length = 5-5 lines in 2 locations

src/Generator/ModelGenerator.php 1 location

@@ 67-71 (lines=5) @@
64
                        $column->getReferencedTable()
65
                    );
66
67
                if ($this->data['isCamel']) {
68
                    $this->data['primaryKeys'][$field] = Inflector::camelize(
69
                        $this->data['primaryKeys'][$field]
70
                    );
71
                }
72
            }
73
74
            $column->setReferencedTable(

src/Generator/ViewGenerator.php 1 location

@@ 115-119 (lines=5) @@
112
                $this->data['primaryKeys'][$field] = 'get_' .
113
                    $this->describe->getPrimaryKey($referencedTable);
114
115
                if ($this->data['isCamel']) {
116
                    $this->data['primaryKeys'][$field] = Inflector::camelize(
117
                        $this->data['primaryKeys'][$field]
118
                    );
119
                }
120
            }
121
        }
122