Code Duplication    Length = 18-18 lines in 2 locations

Generator/GenCrudGenerator.php 1 location

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

Generator/GenRepositoryGenerator.php 1 location

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