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

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