Code Duplication    Length = 8-8 lines in 4 locations

src/Mathielen/ImportEngine/Import/Run/ImportRunEventSubscriber.php 4 locations

@@ 70-77 (lines=8) @@
67
        $this->import->getRun()->setStatistics($this->statistics);
68
    }
69
70
    public function onAfterFilter(ImportItemEvent $event)
71
    {
72
        if (!$event->getCurrentResult()) {
73
            ++$this->statistics['skipped'];
74
75
            $this->import->getRun()->setStatistics($this->statistics);
76
        }
77
    }
78
79
    public function onAfterConversion(ImportItemEvent $event)
80
    {
@@ 79-86 (lines=8) @@
76
        }
77
    }
78
79
    public function onAfterConversion(ImportItemEvent $event)
80
    {
81
        if (!$event->getCurrentResult()) {
82
            ++$this->statistics['skipped'];
83
84
            $this->import->getRun()->setStatistics($this->statistics);
85
        }
86
    }
87
88
    public function onAfterConversionFilter(ImportItemEvent $event)
89
    {
@@ 88-95 (lines=8) @@
85
        }
86
    }
87
88
    public function onAfterConversionFilter(ImportItemEvent $event)
89
    {
90
        if (!$event->getCurrentResult()) {
91
            ++$this->statistics['skipped'];
92
93
            $this->import->getRun()->setStatistics($this->statistics);
94
        }
95
    }
96
97
    public function onAfterValidate(ImportItemEvent $event)
98
    {
@@ 97-104 (lines=8) @@
94
        }
95
    }
96
97
    public function onAfterValidate(ImportItemEvent $event)
98
    {
99
        if (!$event->getCurrentResult()) {
100
            ++$this->statistics['invalid'];
101
102
            $this->import->getRun()->setStatistics($this->statistics);
103
        }
104
    }
105
106
    public function onAfterWrite(ImportItemEvent $event)
107
    {