@@ -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'); |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Syncer\InvoiceNinja\Client as InvoiceNinjaClient; |
10 | 10 | use Syncer\Toggl\ReportsClient; |
11 | 11 | use Syncer\Toggl\TogglClient; |
12 | - |
|
13 | 12 | use Symfony\Component\Console\Command\Command; |
14 | 13 | use Symfony\Component\Console\Input\InputInterface; |
15 | 14 | use Symfony\Component\Console\Output\OutputInterface; |
@@ -95,14 +95,14 @@ |
||
95 | 95 | $detailedReport = $this->reportsClient->getDetailedReport($workspace->getId()); |
96 | 96 | |
97 | 97 | /** @var TimeEntry $timeEntry */ |
98 | - foreach($detailedReport->getData() as $timeEntry) { |
|
98 | + foreach ($detailedReport->getData() as $timeEntry) { |
|
99 | 99 | if (array_key_exists($timeEntry->getProject(), $this->projects)) { |
100 | 100 | $task = new Task(); |
101 | 101 | $task->setDescription($timeEntry->getDescription()); |
102 | - $task->setTimeLog(json_encode([[$timeEntry->getStart()->getTimestamp(), $timeEntry->getEnd()->getTimestamp()]])); |
|
102 | + $task->setTimeLog(json_encode([ [ $timeEntry->getStart()->getTimestamp(), $timeEntry->getEnd()->getTimestamp() ] ])); |
|
103 | 103 | |
104 | - if ($this->projects[$timeEntry->getProject()]) { |
|
105 | - $task->setClientId($this->projects[$timeEntry->getProject()]); |
|
104 | + if ($this->projects[ $timeEntry->getProject() ]) { |
|
105 | + $task->setClientId($this->projects[ $timeEntry->getProject() ]); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | $this->invoiceNinjaClient->saveNewTask($task); |
@@ -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'); |