Code Duplication    Length = 7-7 lines in 2 locations

src/Generator.php 2 locations

@@ 290-296 (lines=7) @@
287
                "\n}\n";
288
        }
289
290
        if (strpos($content, sprintf('use %s;', $this->get('DummyFullRepositoryClass'))) === false) {
291
            $content = preg_replace_callback(
292
                '/namespace.+/',
293
                [$this, 'replaceServieProviderCallback'],
294
                $content
295
            );
296
        }
297
298
        if (strpos($content, sprintf('$this->app->singleton(%sContract::class, %s::class);', $this->get('DummyClass'), $this->get('DummyClass'))) === false) {
299
            $content = preg_replace_callback(
@@ 298-304 (lines=7) @@
295
            );
296
        }
297
298
        if (strpos($content, sprintf('$this->app->singleton(%sContract::class, %s::class);', $this->get('DummyClass'), $this->get('DummyClass'))) === false) {
299
            $content = preg_replace_callback(
300
                '/protected function registerRepositories.+\n\s+{/',
301
                [$this, 'replaceServieProviderCallback'],
302
                $content
303
            );
304
        }
305
306
        return $this->orderedUses($content);
307
    }