Completed
Push — 2.0 ( 76e968...4129d9 )
by Marco
13:01
created
src/Comodojo/Extender/Events/TaskStatusEvent.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
28 28
 
29 29
     private $task;
30 30
 
31
+    /**
32
+     * @param string $status
33
+     */
31 34
     public function __construct($status, TaskInterface $task) {
32 35
 
33 36
         $name = $task->getName();
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/AbstractTask.php 1 patch
Doc Comments   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * Get niceness of a running process
69 69
      *
70
-     * @param int|null $pid The pid to query, or current process if null
71
-     * @return int
70
+     * @return string
72 71
      */
73 72
     public function getName() {
74 73
 
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
     /**
80 79
      * Get niceness of a running process
81 80
      *
82
-     * @param int|null $pid The pid to query, or current process if null
83
-     * @return int
81
+     * @return TaskParameters
84 82
      */
85 83
     public function getParameters() {
86 84
 
@@ -91,8 +89,8 @@  discard block
 block discarded – undo
91 89
     /**
92 90
      * Get niceness of a running process
93 91
      *
94
-     * @param int|null $pid The pid to query, or current process if null
95
-     * @return int
92
+     * @param string $name
93
+     * @return AbstractTask
96 94
      */
97 95
     public function setName($name) {
98 96
 
@@ -105,8 +103,7 @@  discard block
 block discarded – undo
105 103
     /**
106 104
      * Get niceness of a running process
107 105
      *
108
-     * @param int|null $pid The pid to query, or current process if null
109
-     * @return int
106
+     * @return AbstractTask
110 107
      */
111 108
     public function setParameters(TaskParameters $parameters) {
112 109
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
 
138 138
         $result = [];
139 139
 
140
-        foreach($tasks as $task) {
140
+        foreach ( $tasks as $task ) {
141 141
 
142 142
             if ( empty($task['name']) || empty($task['class']) ) {
143 143
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Task/Result.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 
22
-class Result extends Model{
22
+class Result extends Model {
23 23
 
24 24
     protected $mode = self::READONLY;
25 25
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 
22
-class Result extends Model{
22
+class Result extends Model {
23 23
 
24 24
     protected $mode = self::READONLY;
25 25
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Utils/StopWatch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,9 +111,9 @@
 block discarded – undo
111 111
 
112 112
         $t = microtime(true);
113 113
 
114
-        $micro = sprintf("%06d",($t - floor($t)) * 1000000);
114
+        $micro = sprintf("%06d", ($t - floor($t)) * 1000000);
115 115
 
116
-        return new DateTime( date('Y-m-d H:i:s.'.$micro, $t) );
116
+        return new DateTime(date('Y-m-d H:i:s.'.$micro, $t));
117 117
 
118 118
     }
119 119
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Components/Database.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@
 block discarded – undo
57 57
 
58 58
     }
59 59
 
60
+    /**
61
+     * @return EntityManager
62
+     */
60 63
     public function getEntityManager() {
61 64
 
62 65
         if ( $this->entity_manager === null ) {
Please login to merge, or discard this patch.
src/Comodojo/Extender/Orm/Entities/Schedule.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * Get cron expression of this schedule
138 138
      *
139
-     * @return string
139
+     * @return CronExpression
140 140
      */
141 141
     public function getExpression() {
142 142
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     /**
148 148
      * set cron expression for this schedule
149 149
      *
150
-     * @param srting $expression A cron-compatible expression
150
+     * @param CronExpression $expression A cron-compatible expression
151 151
      * @return Schedule
152 152
      */
153 153
     public function setExpression(CronExpression $expression) {
Please login to merge, or discard this patch.
src/Comodojo/Extender/Orm/Entities/Worklog.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     /**
186 186
      * Get worklog item's parent
187 187
      *
188
-     * @return strin
188
+     * @return integer
189 189
      */
190 190
     public function getParentUid() {
191 191
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      * Set associated task
223 223
      *
224 224
      * @param string $task
225
-     * @return Schedule
225
+     * @return Worklog
226 226
      */
227 227
     public function setTask($task) {
228 228
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * Set queue item's parameters
248 248
      *
249 249
      * @param TaskParameters $parameters
250
-     * @return Schedule
250
+     * @return Worklog
251 251
      */
252 252
     public function setParameters(TaskParameters $parameters) {
253 253
 
@@ -271,7 +271,6 @@  discard block
 block discarded – undo
271 271
     /**
272 272
      * Set current job status
273 273
      *
274
-     * @param string $name
275 274
      * @return Worklog
276 275
      */
277 276
     public function setStatus($status) {
Please login to merge, or discard this patch.
src/Comodojo/Extender/Queue/Manager.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,8 @@
 block discarded – undo
38 38
     /**
39 39
      * Class constructor
40 40
      *
41
-     * @param string $manager_name
42 41
      * @param Configuration $configuration
43 42
      * @param LoggerInterface $logger
44
-     * @param TasksTable $tasks
45 43
      * @param EventsManager $events
46 44
      * @param EntityManager $em
47 45
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $em = $this->getEntityManager();
82 82
 
83
-        foreach ($queue as $record) {
83
+        foreach ( $queue as $record ) {
84 84
             $em->remove($record);
85 85
         }
86 86
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         $records = [];
108 108
 
109
-        foreach ($queue as $name => $request) {
109
+        foreach ( $queue as $name => $request ) {
110 110
             $records[] = $request instanceof Request ? $this->doAddRequest($name, $request, $em) : false;
111 111
         }
112 112
 
Please login to merge, or discard this patch.