Completed
Branch master (288a42)
by Benjamin
04:20
created
src/Alpixel/Bundle/CronBundle/Command/CronRunCommand.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -136,6 +136,9 @@
 block discarded – undo
136 136
         $job->setNextRun($newTime);
137 137
     }
138 138
 
139
+    /**
140
+     * @param string $output
141
+     */
139 142
     protected function recordJobResult(EntityManager $em, CronJob $job, $timeTaken, $output, $resultCode)
140 143
     {
141 144
         // Create a new CronJobResult
Please login to merge, or discard this patch.
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.
src/Alpixel/Bundle/CronBundle/Command/CronScanCommand.php 1 patch
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.
src/Alpixel/Bundle/CronBundle/Command/CronStatusCommand.php 1 patch
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.
src/Alpixel/Bundle/CronBundle/Entity/CronJob.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * Set nextRun
138 138
      *
139
-     * @param datetime $nextRun
139
+     * @param \DateTime $nextRun
140 140
      */
141 141
     public function setNextRun($nextRun)
142 142
     {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     /**
157 157
      * Add results
158 158
      *
159
-     * @param Alpixel\Bundle\CronBundle\Entity\CronJobResult $results
159
+     * @param CronJobResult $results
160 160
      */
161 161
     public function addCronJobResult(\Alpixel\Bundle\CronBundle\Entity\CronJobResult $results)
162 162
     {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * Set mostRecentRun
178 178
      *
179
-     * @param Alpixel\Bundle\CronBundle\Entity\CronJobResult $mostRecentRun
179
+     * @param CronJobResult $mostRecentRun
180 180
      */
181 181
     public function setMostRecentRun(\Alpixel\Bundle\CronBundle\Entity\CronJobResult $mostRecentRun)
182 182
     {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     /**
187 187
      * Get mostRecentRun
188 188
      *
189
-     * @return Alpixel\Bundle\CronBundle\Entity\CronJobResult
189
+     * @return CronJobResult
190 190
      */
191 191
     public function getMostRecentRun()
192 192
     {
Please login to merge, or discard this patch.
src/Alpixel/Bundle/CronBundle/Entity/CronJobResult.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * Set job
152 152
      *
153
-     * @param Alpixel\Bundle\CronBundle\Entity\CronJob $job
153
+     * @param CronJob $job
154 154
      */
155 155
     public function setJob(\Alpixel\Bundle\CronBundle\Entity\CronJob $job)
156 156
     {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     /**
161 161
      * Get job
162 162
      *
163
-     * @return Alpixel\Bundle\CronBundle\Entity\CronJob
163
+     * @return CronJob
164 164
      */
165 165
     public function getJob()
166 166
     {
Please login to merge, or discard this patch.