These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Spiral\Snapshotter\Bootloaders; |
||
4 | |||
5 | use Spiral\Core\Bootloaders\Bootloader; |
||
6 | use Spiral\Debug\SnapshotInterface; |
||
7 | use Spiral\Snapshotter\AbstractController; |
||
8 | use Spiral\Snapshotter\DelegateSnapshot; |
||
9 | use Spiral\Snapshotter\FileHandler; |
||
10 | use Spiral\Snapshotter\FileHandler\Controllers\SnapshotsController; |
||
11 | use Spiral\Snapshotter\HandlerInterface; |
||
12 | |||
13 | View Code Duplication | class FileSnapshotterBootloader extends Bootloader |
|
0 ignored issues
–
show
|
|||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | const BINDINGS = [ |
||
19 | HandlerInterface::class => FileHandler::class, |
||
20 | AbstractController::class => SnapshotsController::class, |
||
21 | SnapshotInterface::class => DelegateSnapshot::class |
||
22 | ]; |
||
23 | } |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.