@@ -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'); |
@@ -51,8 +51,8 @@ |
||
51 | 51 | public function getDetailedReport($workspaceId) |
52 | 52 | { |
53 | 53 | $res = $this->client->request('GET', self::VERSION . '/details', [ |
54 | - 'auth' => [$this->api_key, 'api_token'], |
|
55 | - 'query' => ['user_agent' => '[email protected]', 'workspace_id' => $workspaceId] |
|
54 | + 'auth' => [ $this->api_key, 'api_token' ], |
|
55 | + 'query' => [ 'user_agent' => '[email protected]', 'workspace_id' => $workspaceId ] |
|
56 | 56 | ]); |
57 | 57 | |
58 | 58 | return $this->serializer->deserialize($res->getBody(), DetailedReport::class, 'json'); |
@@ -98,11 +98,11 @@ |
||
98 | 98 | $detailedReport = $this->reportsClient->getDetailedReport($workspace->getId()); |
99 | 99 | |
100 | 100 | /** @var TimeEntry $timeEntry */ |
101 | - foreach($detailedReport->getData() as $timeEntry) { |
|
101 | + foreach ($detailedReport->getData() as $timeEntry) { |
|
102 | 102 | if (array_key_exists($timeEntry->getProject(), $this->projects)) { |
103 | 103 | $task = new Task(); |
104 | 104 | $task->setDescription($timeEntry->getDescription()); |
105 | - $task->setTimeLog(json_encode([[$timeEntry->getStart()->getTimestamp(), $timeEntry->getEnd()->getTimestamp()]])); |
|
105 | + $task->setTimeLog(json_encode([ [ $timeEntry->getStart()->getTimestamp(), $timeEntry->getEnd()->getTimestamp() ] ])); |
|
106 | 106 | |
107 | 107 | $this->invoiceNinjaClient->saveNewTask($task); |
108 | 108 | $this->io->success('Task Created'); |