Passed
Push — main ( bd03c4...c6ca62 )
by De Cramer
04:36
created
DependencyInjection/Oliverde8PhpEtlExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function load(array $configs, ContainerBuilder $container)
18 18
     {
19
-        $loader = new YamlFileLoader($container, new FileLocator(\dirname(__DIR__).'/Resources/config'));
19
+        $loader = new YamlFileLoader($container, new FileLocator(\dirname(__DIR__) . '/Resources/config'));
20 20
         $loader->load('parameters.yml');
21 21
         $loader->load('services.yml');
22 22
         $loader->load('service-rule-transformers.yml');
Please login to merge, or discard this patch.
Entity/EtlExecution.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
  */
11 11
 class EtlExecution
12 12
 {
13
-    public const STATUS_WAITING ="waiting";
14
-    public const STATUS_QUEUED ="queued";
13
+    public const STATUS_WAITING = "waiting";
14
+    public const STATUS_QUEUED = "queued";
15 15
     public const STATUS_RUNNING = "running";
16 16
     public const STATUS_SUCCESS = "success";
17 17
     public const STATUS_FAILURE = "failure";
Please login to merge, or discard this patch.
Twig/TimeIntervalExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $hour = str_pad(floor($time / 60 / 60), 1, '0');
24 24
 
25 25
         $formattedPieces = [];
26
-        if ($time > (60*60)) {
26
+        if ($time > (60 * 60)) {
27 27
             $formattedPieces[] = $hour . "h";
28 28
         }
29 29
         if ($time > (60)) {
Please login to merge, or discard this patch.
EventSubscriber/EtlExecutionEventSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * @param ChainProcessorsManager $chainProcessorManager
29 29
      * @param MessageBusInterface $messageBus
30 30
      */
31
-    public function __construct(EntityManagerInterface $em, ChainProcessorsManager $chainProcessorManager, ?MessageBusInterface $messageBus =null)
31
+    public function __construct(EntityManagerInterface $em, ChainProcessorsManager $chainProcessorManager, ?MessageBusInterface $messageBus = null)
32 32
     {
33 33
         $this->em = $em;
34 34
         $this->chainProcessorManager = $chainProcessorManager;
Please login to merge, or discard this patch.
Controller/Admin/EtlExecutionCrudController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 CodeEditorField::new('definition')->setTemplatePath('@Oliverde8PhpEtl/fields/code_editor.html.twig'),
103 103
 
104 104
                 FormField::addPanel('Execution outpus')->addCssClass("col-12"),
105
-                TextField::new('Files')->formatValue(function ($value, EtlExecution $entity) {
105
+                TextField::new('Files')->formatValue(function($value, EtlExecution $entity) {
106 106
                     $urls = [];
107 107
                     if ($this->isGranted(EtlExecutionVoter::DOWNLOAD, EtlExecution::class)) {
108 108
                         $files = $this->chainWorkDirManager->listFiles($entity);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                     return $urls;
119 119
                 })->setTemplatePath('@Oliverde8PhpEtl/fields/files.html.twig'),
120 120
                 CodeEditorField::new('errorMessage')->setTemplatePath('@Oliverde8PhpEtl/fields/code_editor.html.twig'),
121
-                TextField::new('Logs')->formatValue(function ($value, EtlExecution $entity) {
121
+                TextField::new('Logs')->formatValue(function($value, EtlExecution $entity) {
122 122
                     $logs = $this->chainWorkDirManager->getFirstLogLines($entity, 100);
123 123
                     $url = "";
124 124
                     $moreLogs = false;
Please login to merge, or discard this patch.
Etl/Operation/Cleanup/DeleteFilesForOldExecutionOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                 continue;
73 73
             }
74 74
 
75
-            $files[] =$item;
75
+            $files[] = $item;
76 76
         }
77 77
 
78 78
         return $files;
Please login to merge, or discard this patch.