Completed
Push — master ( 3b0b6a...263c36 )
by Guillaume
02:53
created
src/Services/Harvest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@
 block discarded – undo
103 103
         return false;
104 104
     }
105 105
 
106
+    /**
107
+     * @return integer
108
+     */
106 109
     public function runningTimer()
107 110
     {
108 111
         try {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use Carbon\Carbon;
6 6
 use Carbon\CarbonInterval;
7 7
 use Required\Harvest\Client;
8
-use Required\Harvest\Exception\NotFoundException;
9 8
 use Required\Harvest\Exception\AuthenticationException;
9
+use Required\Harvest\Exception\NotFoundException;
10 10
 use Required\Harvest\Exception\ValidationFailedException;
11 11
 
12 12
 class Harvest extends TimerService
Please login to merge, or discard this patch.
src/Services/Toggl.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
         return false;
80 80
     }
81 81
 
82
+    /**
83
+     * @return integer
84
+     */
82 85
     public function runningTimer()
83 86
     {
84 87
         $timer = $this->client->getRunningTimeEntry();
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
         return true;
107 110
     }
108 111
 
112
+    /**
113
+     * @param string $needle
114
+     */
109 115
     private function extractFromData($needle)
110 116
     {
111 117
         $data = $this->getData();
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Godbout\Alfred\Time\Services;
4 4
 
5
-use Exception;
6 5
 use Carbon\Carbon;
7 6
 use Carbon\CarbonInterval;
7
+use Exception;
8 8
 use MorningTrain\TogglApi\TogglApi;
9 9
 
10 10
 class Toggl extends TimerService
Please login to merge, or discard this patch.
src/Workflow.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -146,6 +146,9 @@
 block discarded – undo
146 146
         return __NAMESPACE__ . "\\Menus\\" . (self::getMenuClassName(getenv('action')) ?: 'Entrance');
147 147
     }
148 148
 
149
+    /**
150
+     * @param string $action
151
+     */
149 152
     private static function getMenuClassName($action)
150 153
     {
151 154
         return str_replace('_', '', ucwords($action === false ? 'entrance' : $action, '_'));
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Godbout\Alfred\Time;
4 4
 
5
-use Godbout\Alfred\Workflow\Config;
6
-use Godbout\Alfred\Time\Services\Toggl;
7 5
 use Godbout\Alfred\Time\Services\Harvest;
6
+use Godbout\Alfred\Time\Services\Toggl;
7
+use Godbout\Alfred\Workflow\Config;
8 8
 use Godbout\Alfred\Workflow\ScriptFilter;
9 9
 
10 10
 class Workflow
Please login to merge, or discard this patch.