Completed
Push — master ( 288a42...fbffa0 )
by Benjamin
03:13 queued 43s
created
src/Alpixel/Bundle/CronBundle/Command/CronRunCommand.php 2 patches
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -1,19 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Alpixel\Bundle\CronBundle\Command;
3 3
 use Doctrine\ORM\EntityManager;
4
-
5 4
 use Symfony\Component\Console\Input\ArgvInput;
6
-
7 5
 use Alpixel\Bundle\CronBundle\Entity\CronJobResult;
8
-
9 6
 use Alpixel\Bundle\CronBundle\Entity\CronJob;
10
-
11 7
 use Symfony\Component\Console\Output\OutputInterface;
12
-
13 8
 use Symfony\Component\Console\Input\InputInterface;
14
-
15 9
 use Symfony\Component\Console\Input\InputArgument;
16
-
17 10
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
18 11
 
19 12
 class CronRunCommand extends ContainerAwareCommand
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
     protected function configure()
22 22
     {
23 23
         $this->setName("cron:run")
24
-             ->setDescription("Runs any currently schedule cron jobs")
25
-             ->addArgument("job", InputArgument::OPTIONAL, "Run only this job (if enabled)");
24
+                ->setDescription("Runs any currently schedule cron jobs")
25
+                ->addArgument("job", InputArgument::OPTIONAL, "Run only this job (if enabled)");
26 26
     }
27 27
 
28 28
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
src/Alpixel/Bundle/CronBundle/Command/CronScanCommand.php 2 patches
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -1,21 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Alpixel\Bundle\CronBundle\Command;
3 3
 use Alpixel\Bundle\CronBundle\Entity\CronJob;
4
-
5 4
 use Doctrine\ORM\EntityManager;
6
-
7 5
 use Symfony\Component\Console\Command\Command;
8
-
9 6
 use Alpixel\Bundle\CronBundle\Annotation\CronJob as CronJobAnno;
10
-
11
-use Symfony\Bundle\DoctrineBundle\Registry;
12
-
13 7
 use Symfony\Component\Console\Output\OutputInterface;
14
-
15 8
 use Symfony\Component\Console\Input\InputInterface;
16
-
17 9
 use Symfony\Component\Console\Input\InputOption;
18
-
19 10
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
20 11
 
21 12
 class CronScanCommand extends ContainerAwareCommand
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
     protected function configure()
24 24
     {
25 25
         $this->setName("cron:scan")
26
-             ->setDescription("Scans for any new or deleted cron jobs")
27
-             ->addOption('keep-deleted', 'k', InputOption::VALUE_NONE, 'If set, deleted cron jobs will not be removed')
28
-             ->addOption('default-disabled', 'd', InputOption::VALUE_NONE, 'If set, new jobs will be disabled by default');
26
+                ->setDescription("Scans for any new or deleted cron jobs")
27
+                ->addOption('keep-deleted', 'k', InputOption::VALUE_NONE, 'If set, deleted cron jobs will not be removed')
28
+                ->addOption('default-disabled', 'd', InputOption::VALUE_NONE, 'If set, new jobs will be disabled by default');
29 29
     }
30 30
 
31 31
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
src/Alpixel/Bundle/CronBundle/Command/CronStatusCommand.php 2 patches
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -1,15 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Alpixel\Bundle\CronBundle\Command;
3 3
 use Alpixel\Bundle\CronBundle\Entity\CronJobResult;
4
-
5 4
 use Alpixel\Bundle\CronBundle\Entity\CronJob;
6
-
7 5
 use Symfony\Component\Console\Output\OutputInterface;
8
-
9 6
 use Symfony\Component\Console\Input\InputInterface;
10
-
11 7
 use Symfony\Component\Console\Input\InputArgument;
12
-
13 8
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
14 9
 
15 10
 class CronStatusCommand extends ContainerAwareCommand
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
     protected function configure()
18 18
     {
19 19
         $this->setName("cron:status")
20
-             ->setDescription("Displays the current status of cron jobs")
21
-             ->addArgument("job", InputArgument::OPTIONAL, "Show information for only this job");
20
+                ->setDescription("Displays the current status of cron jobs")
21
+                ->addArgument("job", InputArgument::OPTIONAL, "Show information for only this job");
22 22
     }
23 23
 
24 24
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
src/Alpixel/Bundle/CronBundle/Command/CronEnableJobCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
     protected function configure()
14 14
     {
15 15
         $this->setName("cron:enable-job")
16
-             ->setDescription("Enables a cron job")
17
-             ->addArgument("job", InputArgument::REQUIRED, "Name of the job to enable");
16
+                ->setDescription("Enables a cron job")
17
+                ->addArgument("job", InputArgument::REQUIRED, "Name of the job to enable");
18 18
     }
19 19
 
20 20
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
src/Alpixel/Bundle/CronBundle/Command/CronPruneLogsCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     protected function configure()
17 17
     {
18 18
         $this->setName("cron:pruneLogs")
19
-             ->setDescription("Prunes the logs for each cron job, leaving only recent failures and the most recent success")
20
-             ->addArgument('job', InputArgument::OPTIONAL, 'Operate only on this job');
19
+                ->setDescription("Prunes the logs for each cron job, leaving only recent failures and the most recent success")
20
+                ->addArgument('job', InputArgument::OPTIONAL, 'Operate only on this job');
21 21
     }
22 22
 
23 23
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
src/Alpixel/Bundle/CronBundle/Command/CronDisableJobCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
     protected function configure()
16 16
     {
17 17
         $this->setName("cron:disable-job")
18
-             ->setDescription("Disables a cron job")
19
-             ->addArgument("job", InputArgument::REQUIRED, "Name of the job to disable");
18
+                ->setDescription("Disables a cron job")
19
+                ->addArgument("job", InputArgument::REQUIRED, "Name of the job to disable");
20 20
     }
21 21
 
22 22
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
src/Alpixel/Bundle/CronBundle/Entity/Repository/CronJobResultRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
             ->getEntityManager()
13 13
             ->createQuery("DELETE CronBundle:CronJobResult result")
14 14
             ->getResult()
15
-         ;
15
+            ;
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
src/Alpixel/Bundle/CronBundle/Entity/Repository/CronJobRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
     public function getKnownJobs()
8 8
     {
9 9
         $data = $this->getEntityManager()
10
-                     ->createQuery("SELECT job.command FROM CronBundle:CronJob job")
11
-                     ->getScalarResult();
10
+                        ->createQuery("SELECT job.command FROM CronBundle:CronJob job")
11
+                        ->getScalarResult();
12 12
         $toRet = array();
13 13
         foreach($data as $datum)
14 14
         {
Please login to merge, or discard this patch.