mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 17:10:18 +01:00 
			
		
		
		
	[Nostromo] Mess Detector recommendations.
This commit is contained in:
		
							parent
							
								
									c2937324be
								
							
						
					
					
						commit
						0c43296d41
					
				@ -65,12 +65,11 @@ class TaskFactory
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public function get($name)
 | 
					    public function get($name)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					        $options = [];
 | 
				
			||||||
        if (is_array($name)) {
 | 
					        if (is_array($name)) {
 | 
				
			||||||
            $options = $name;
 | 
					            $options = $name;
 | 
				
			||||||
            list($name) = array_keys($name);
 | 
					            list($name) = array_keys($name);
 | 
				
			||||||
            $options = $options[$name];
 | 
					            $options = $options[$name];
 | 
				
			||||||
        } else {
 | 
					 | 
				
			||||||
            $options = [];
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (array_key_exists($name, $this->registeredTasks)) {
 | 
					        if (array_key_exists($name, $this->registeredTasks)) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user