Code Duplication    Length = 3-3 lines in 2 locations

src/TreeHouse/WorkerBundle/Command/RunCommand.php 2 locations

@@ 202-204 (lines=3) @@
199
            $include = $actions;
200
        }
201
202
        if (!empty($diff = array_diff($include, $actions))) {
203
            throw new \InvalidArgumentException(sprintf('Action(s) "%s" are not defined by QueueManager', implode(', ', $diff)));
204
        }
205
206
        if (!empty($diff = array_diff($exclude, $actions))) {
207
            throw new \InvalidArgumentException(sprintf('Filter(s) "%s" are not defined by QueueManager', implode(', ', $diff)));
@@ 206-208 (lines=3) @@
203
            throw new \InvalidArgumentException(sprintf('Action(s) "%s" are not defined by QueueManager', implode(', ', $diff)));
204
        }
205
206
        if (!empty($diff = array_diff($exclude, $actions))) {
207
            throw new \InvalidArgumentException(sprintf('Filter(s) "%s" are not defined by QueueManager', implode(', ', $diff)));
208
        }
209
210
        $include = array_diff($include, $exclude);
211