Code Duplication    Length = 18-18 lines in 2 locations

Generator/GenCrudGenerator.php 1 location

@@ 223-240 (lines=18) @@
220
    /**
221
     * @return array
222
     */
223
    protected function genParamsData()
224
    {
225
        $data = array();
226
        $dir = sprintf('%s/config/gen/%s', $this->rootDir, $this->entity);
227
        $yaml = new Parser();
228
229
        $files = scandir(str_replace('\\', '/', $dir));
230
231
        foreach ($files as $file) {
232
            if (0 == strpos($file, '.')) {
233
                continue;
234
            }
235
236
            $data[] = $yaml->parse(file_get_contents($dir.'/'.$file));
237
        }
238
239
        return $data;
240
    }
241
242
    /**
243
     * {@inheritdoc}

Generator/GenRepositoryGenerator.php 1 location

@@ 205-222 (lines=18) @@
202
    /**
203
     * @return array
204
     */
205
    protected function genParamsData()
206
    {
207
        $data = array();
208
        $dir = sprintf('%s/config/gen/%s', $this->rootDir, $this->entity);
209
        $yaml = new Parser();
210
211
        $files = scandir(str_replace('\\', '/', $dir));
212
213
        foreach ($files as $file) {
214
            if (0 == strpos($file, '.')) {
215
                continue;
216
            }
217
218
            $data[] = $yaml->parse(file_get_contents($dir.'/'.$file));
219
        }
220
221
        return $data;
222
    }
223
224
    /**
225
     * @param $definitions