@@ -103,6 +103,9 @@ |
||
| 103 | 103 | return false; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @return integer |
|
| 108 | + */ |
|
| 106 | 109 | public function runningTimer() |
| 107 | 110 | { |
| 108 | 111 | $timer = $this->client->timeEntries()->all(['is_running' => true]); |
@@ -79,6 +79,9 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -133,6 +133,9 @@ |
||
| 133 | 133 | return __NAMESPACE__ . '\\Menus\\' . (self::getMenuClassName($action) ?: 'Entrance'); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $action |
|
| 138 | + */ |
|
| 136 | 139 | private static function getMenuClassName($action) |
| 137 | 140 | { |
| 138 | 141 | return str_replace('_', '', ucwords($action === false ? 'entrance' : $action, '_')); |