@@ -33,8 +33,8 @@ |
||
| 33 | 33 | 'description' => $timer['description'] |
| 34 | 34 | ]; |
| 35 | 35 | |
| 36 | - $subtitle = (empty($projectName) === true ? 'No project' : $projectName) .', ' |
|
| 37 | - .(empty($tags) === true ? 'No tag' : '[' .implode(', ', $tags) .']') .', ' |
|
| 36 | + $subtitle = (empty($projectName) === true ? 'No project' : $projectName) . ', ' |
|
| 37 | + .(empty($tags) === true ? 'No tag' : '[' . implode(', ', $tags) . ']') . ', ' |
|
| 38 | 38 | .($duration > 0 ? gmdate('H:i:s', $duration) : '--:--:--'); |
| 39 | 39 | |
| 40 | 40 | $workflow->result() |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | ->valid(false); |
| 53 | 53 | } else { |
| 54 | 54 | $subtitle = $alfredTime->hasTimerRunning() === true ? 'Stop and delete current timer for ' : 'Delete timer for '; |
| 55 | - $subtitle.= implode(' and ', array_map('ucfirst', $servicesToUndo)); |
|
| 55 | + $subtitle .= implode(' and ', array_map('ucfirst', $servicesToUndo)); |
|
| 56 | 56 | |
| 57 | 57 | $workflow->result() |
| 58 | 58 | ->uid('') |
@@ -118,6 +118,9 @@ |
||
| 118 | 118 | $this->message = '- Harvest: ' . $message; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | + /** |
|
| 122 | + * @param string $method |
|
| 123 | + */ |
|
| 121 | 124 | private function sendApiCall($method, $uri = '', array $options = []) |
| 122 | 125 | { |
| 123 | 126 | $res = true; |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | { |
| 98 | 98 | $res = false; |
| 99 | 99 | |
| 100 | - if ($this->sendApiCall('get', 'show/' .$timerId) === true) { |
|
| 100 | + if ($this->sendApiCall('get', 'show/' . $timerId) === true) { |
|
| 101 | 101 | if ($this->lastApiCall('success') === true) { |
| 102 | 102 | if (isset($this->data['timer_started_at']) === true) { |
| 103 | 103 | $res = true; |
@@ -124,6 +124,9 @@ |
||
| 124 | 124 | $this->message = '- Toggl: ' . $message; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | + /** |
|
| 128 | + * @param string $method |
|
| 129 | + */ |
|
| 127 | 130 | private function sendApiCall($method, $uri = '', array $options = []) |
| 128 | 131 | { |
| 129 | 132 | $res = true; |