@@ -49,7 +49,7 @@ |
||
| 49 | 49 | public function getWorkspaces() |
| 50 | 50 | { |
| 51 | 51 | $response = $this->client->request('GET', self::VERSION . '/workspaces', [ |
| 52 | - 'auth' => [$this->api_key, 'api_token'], |
|
| 52 | + 'auth' => [ $this->api_key, 'api_token' ], |
|
| 53 | 53 | ]); |
| 54 | 54 | |
| 55 | 55 | return $this->serializer->deserialize($response->getBody(), 'array<Syncer\Dto\Toggl\Workspace>', 'json'); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | public function getDetailedReport($workspaceId) |
| 55 | 55 | { |
| 56 | 56 | $res = $this->client->request('GET', self::VERSION . '/details', [ |
| 57 | - 'auth' => [$this->api_key, 'api_token'], |
|
| 57 | + 'auth' => [ $this->api_key, 'api_token' ], |
|
| 58 | 58 | 'query' => [ |
| 59 | 59 | 'user_agent' => '[email protected]', |
| 60 | 60 | 'workspace_id' => $workspaceId, |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | foreach ($workspaces as $workspace) { |
| 105 | 105 | $detailedReport = $this->reportsClient->getDetailedReport($workspace->getId()); |
| 106 | 106 | |
| 107 | - foreach($detailedReport->getData() as $timeEntry) { |
|
| 107 | + foreach ($detailedReport->getData() as $timeEntry) { |
|
| 108 | 108 | $timeEntrySent = false; |
| 109 | 109 | |
| 110 | 110 | // Log the entry if the client key exists |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | if ($timeEntrySent) { |
| 125 | - $this->io->success('TimeEntry ('. $timeEntry->getDescription() . ') sent to InvoiceNinja'); |
|
| 125 | + $this->io->success('TimeEntry (' . $timeEntry->getDescription() . ') sent to InvoiceNinja'); |
|
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | |
| 156 | 156 | $task->setDescription($this->buildTaskDescription($entry)); |
| 157 | 157 | $task->setTimeLog($this->buildTimeLog($entry)); |
| 158 | - $task->setClientId($config[$key]); |
|
| 158 | + $task->setClientId($config[ $key ]); |
|
| 159 | 159 | |
| 160 | 160 | $this->invoiceNinjaClient->saveNewTask($task); |
| 161 | 161 | } |