Code Duplication    Length = 5-5 lines in 2 locations

src/Generator/ModelGenerator.php 1 location

@@ 92-96 (lines=5) @@
89
                        $column->getReferencedTable()
90
                    );
91
92
                if ($this->data['isCamel']) {
93
                    $this->data['primaryKeys'][$field] = Inflector::camelize(
94
                        $this->data['primaryKeys'][$field]
95
                    );
96
                }
97
            }
98
99
            $column->setReferencedTable(

src/Generator/ViewGenerator.php 1 location

@@ 140-144 (lines=5) @@
137
                $this->data['primaryKeys'][$field] = 'get_'.
138
                    $this->describe->getPrimaryKey($referencedTable);
139
140
                if ($this->data['isCamel']) {
141
                    $this->data['primaryKeys'][$field] = Inflector::camelize(
142
                        $this->data['primaryKeys'][$field]
143
                    );
144
                }
145
            }
146
        }
147