add PSR 2 compliance
This commit is contained in:
parent
4d784f5948
commit
3de2342567
|
@ -4,12 +4,12 @@ namespace App\Core\Controller\Task;
|
|||
|
||||
use App\Core\Controller\Admin\AdminController;
|
||||
use App\Core\Event\Task\TaskInitEvent;
|
||||
use App\Core\Event\Task\TaskRunRequestedEvent;
|
||||
use Symfony\Component\Console\Output\BufferedOutput;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use App\Core\Event\Task\TaskRunRequestedEvent;
|
||||
|
||||
/**
|
||||
* @Route("/admin/task")
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
namespace App\Core\Event\Task;
|
||||
|
||||
use Symfony\Component\Console\Output\BufferedOutput;
|
||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
|
@ -19,8 +17,8 @@ class TaskInitEvent extends Event
|
|||
|
||||
public function getTasks(): array
|
||||
{
|
||||
usort($this->tasks, function($t1, $t2) {
|
||||
return $t1['section'] <> $t2['section'];
|
||||
usort($this->tasks, function ($t1, $t2) {
|
||||
return $t1['section'] != $t2['section'];
|
||||
});
|
||||
|
||||
return $this->tasks;
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
namespace App\Core\EventSuscriber\Task;
|
||||
|
||||
use App\Core\Event\Setting\SettingEvent;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use App\Core\Event\Task\TaskRunRequestedEvent;
|
||||
use App\Core\Event\Task\TaskInitEvent;
|
||||
use App\Core\Event\Task\TaskRunRequestedEvent;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
|
||||
/**
|
||||
* class TaskEventSubscriber.
|
||||
|
|
Loading…
Reference in a new issue