Completed
Push — master ( 74a814...b446b7 )
by Benjamin
02:38
created
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.
Command/CronRunCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $em->flush();
53 53
 
54 54
         $end = microtime(true);
55
-        $duration = sprintf('%0.2f', $end - $start);
55
+        $duration = sprintf('%0.2f', $end-$start);
56 56
         $output->writeln("Cron run completed in $duration seconds");
57 57
     }
58 58
 
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
             $statusStr = 'failed';
101 101
         }
102 102
 
103
-        $durationStr = sprintf('%0.2f', $jobEnd - $jobStart);
103
+        $durationStr = sprintf('%0.2f', $jobEnd-$jobStart);
104 104
         $output->writeln("$statusStr in $durationStr seconds");
105 105
 
106 106
         // Record the result
107
-        $this->recordJobResult($job, $jobEnd - $jobStart, $jobOutput->getOutput(), $returnCode);
107
+        $this->recordJobResult($job, $jobEnd-$jobStart, $jobOutput->getOutput(), $returnCode);
108 108
 
109 109
         // And update the job with it's next scheduled time
110 110
         $newTime = new \DateTime();
Please login to merge, or discard this patch.
Entity/CronJob.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * Add results.
167 167
      *
168
-     * @param Alpixel\Bundle\CronBundle\Entity\CronJobResult $results
168
+     * @param CronJobResult $results
169 169
      */
170 170
     public function addCronJobResult(\Alpixel\Bundle\CronBundle\Entity\CronJobResult $results)
171 171
     {
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     /**
186 186
      * Set mostRecentRun.
187 187
      *
188
-     * @param Alpixel\Bundle\CronBundle\Entity\CronJobResult $mostRecentRun
188
+     * @param CronJobResult $mostRecentRun
189 189
      */
190 190
     public function setMostRecentRun(\Alpixel\Bundle\CronBundle\Entity\CronJobResult $mostRecentRun)
191 191
     {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     /**
196 196
      * Get mostRecentRun.
197 197
      *
198
-     * @return Alpixel\Bundle\CronBundle\Entity\CronJobResult
198
+     * @return CronJobResult
199 199
      */
200 200
     public function getMostRecentRun()
201 201
     {
Please login to merge, or discard this patch.