Code Duplication    Length = 8-8 lines in 2 locations

src/Junty/TaskRunner/Console/Command/RunCommand.php 1 location

@@ 95-102 (lines=8) @@
92
        }
93
    }
94
95
    private function getFromOrderData($name)
96
    {
97
        $parts = explode('::', $name);
98
        $type = $parts[0];
99
        unset($parts[0]);
100
101
        return ['type' => $type, 'name' => implode('::', $parts)];
102
    }
103
}

src/Junty/TaskRunner/Runner/Runner.php 1 location

@@ 175-182 (lines=8) @@
172
        }
173
    }
174
175
    private function getFromOrderData($name)
176
    {
177
        $parts = explode('::', $name);
178
        $type = $parts[0];
179
        unset($parts[0]);
180
181
        return ['type' => $type, 'name' => implode('::', $parts)];
182
    }
183
}