1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-08-25 21:00:18 +02:00

[Nostromo] Mess Detector recommendations.

This commit is contained in:
Andrés Montañez 2017-01-07 21:34:33 -03:00
parent c2937324be
commit 0c43296d41

View File

@ -65,12 +65,11 @@ class TaskFactory
*/
public function get($name)
{
$options = [];
if (is_array($name)) {
$options = $name;
list($name) = array_keys($name);
$options = $options[$name];
} else {
$options = [];
}
if (array_key_exists($name, $this->registeredTasks)) {