Completed
Push — 2.0 ( 2c7009...c833bc )
by Marco
03:23
created
src/Comodojo/Extender/Components/ArrayAccess.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * Return the value at index
29 29
      *
30
+     * @param string $index
30 31
      * @return string $index The offset
31 32
      */
32 33
      public function offsetGet($index) {
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -29,45 +29,45 @@
 block discarded – undo
29 29
      *
30 30
      * @return string $index The offset
31 31
      */
32
-     public function offsetGet($index) {
32
+        public function offsetGet($index) {
33 33
 
34
-         return $this->data[$index];
34
+            return $this->data[$index];
35 35
 
36
-     }
36
+        }
37 37
 
38
-     /**
39
-     * Assigns a value to index offset
40
-     *
41
-     * @param string $index The offset to assign the value to
42
-     * @param mixed  $value The value to set
43
-     */
44
-     public function offsetSet($index, $value) {
38
+        /**
39
+         * Assigns a value to index offset
40
+         *
41
+         * @param string $index The offset to assign the value to
42
+         * @param mixed  $value The value to set
43
+         */
44
+        public function offsetSet($index, $value) {
45 45
 
46
-         $this->data[$index] = $value;
46
+            $this->data[$index] = $value;
47 47
 
48
-     }
48
+        }
49 49
 
50
-     /**
51
-     * Unsets an index
52
-     *
53
-     * @param string $index The offset to unset
54
-     */
55
-     public function offsetUnset($index) {
50
+        /**
51
+         * Unsets an index
52
+         *
53
+         * @param string $index The offset to unset
54
+         */
55
+        public function offsetUnset($index) {
56 56
 
57
-         unset($this->data[$index]);
57
+            unset($this->data[$index]);
58 58
 
59
-     }
59
+        }
60 60
 
61
-     /**
62
-     * Check if an index exists
63
-     *
64
-     * @param string $index Offset
65
-     * @return boolean
66
-     */
67
-     public function offsetExists($index) {
61
+        /**
62
+         * Check if an index exists
63
+         *
64
+         * @param string $index Offset
65
+         * @return boolean
66
+         */
67
+        public function offsetExists($index) {
68 68
 
69
-         return $this->offsetGet($index) !== null;
69
+            return $this->offsetGet($index) !== null;
70 70
 
71
-     }
71
+        }
72 72
 
73 73
 }
Please login to merge, or discard this patch.
src/Comodojo/Extender/Tasks/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 
96 96
         $result = array();
97 97
 
98
-        foreach($tasks as $task) {
98
+        foreach ( $tasks as $task ) {
99 99
 
100 100
             if ( empty($task['name']) || empty($task['class']) ) {
101 101
 
Please login to merge, or discard this patch.
src/Comodojo/Extender/Tasks/Runner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         $this->logger->notice("Task $name ($task) with pid $pid ends in ".$status ? 'success' : 'error');
114 114
 
115 115
         return new Result(
116
-            array (
116
+            array(
117 117
                 $pid,
118 118
                 $name,
119 119
                 $success,
Please login to merge, or discard this patch.
src/Comodojo/Extender/Base/Process.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         LoggerInterface $logger,
45 45
         Emitter $events,
46 46
         $niceness = null
47
-    ){
47
+    ) {
48 48
 
49 49
         // Setup parent Model
50 50
         parent::_construct($configuration, $logger);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
             $this->logger->info("Received TERM signal, shutting down process gracefully");
124 124
 
125
-            $this->events->emit( new SignalEvent($signal, $this) );
125
+            $this->events->emit(new SignalEvent($signal, $this));
126 126
 
127 127
             $this->end(0);
128 128
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
             $this->logger->info("Received TERM signal, shutting down process");
143 143
 
144
-            $this->events->emit( new SignalEvent($signal, $this) );
144
+            $this->events->emit(new SignalEvent($signal, $this));
145 145
 
146 146
             $this->end(1);
147 147
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
             $this->logger->info("Received $signal signal, firing associated event(s)");
162 162
 
163
-            $this->events->emit( new SignalEvent($signal, $this) );
163
+            $this->events->emit(new SignalEvent($signal, $this));
164 164
 
165 165
         }
166 166
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         LoggerInterface $logger,
45 45
         Emitter $events,
46 46
         $niceness = null
47
-    ){
47
+    ) {
48 48
 
49 49
         // Setup parent Model
50 50
         parent::_construct($configuration, $logger);
Please login to merge, or discard this patch.