Code Duplication    Length = 10-11 lines in 2 locations

src/Factory/Factory.php 1 location

@@ 19-28 (lines=10) @@
16
     */
17
    protected $metadataStore;
18
19
    public function __construct(
20
        array $configs,
21
        EventDispatcherInterface $dispatcher = null,
22
        CallbackFactoryInterface $callbackFactory = null,
23
        MetadataStoreInterface $metadataStore = null
24
    ) {
25
        parent::__construct($configs, $dispatcher, $callbackFactory);
26
27
        $this->metadataStore = $metadataStore;
28
    }
29
30
    /**
31
     * {@inheritcoc}.

src/StateMachine/StateMachine.php 1 location

@@ 27-37 (lines=11) @@
24
     *
25
     * @param \Sebdesign\SM\Metadata\MetadataStoreInterface|null $metadataStore
26
     */
27
    public function __construct(
28
        $object,
29
        array $config,
30
        EventDispatcherInterface $dispatcher = null,
31
        CallbackFactoryInterface $callbackFactory = null,
32
        MetadataStoreInterface $metadataStore = null
33
    ) {
34
        parent::__construct($object, $config, $dispatcher, $callbackFactory);
35
36
        $this->metadataStore = $metadataStore ?? new MetadataStore($config);
37
    }
38
39
    /**
40
     * {@inheritdoc}