@@ -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; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | foreach ($workspaces as $workspace) { |
99 | 99 | $detailedReport = $this->reportsClient->getDetailedReport($workspace->getId()); |
100 | 100 | |
101 | - foreach($detailedReport->getData() as $timeEntry) { |
|
101 | + foreach ($detailedReport->getData() as $timeEntry) { |
|
102 | 102 | $timeEntrySent = false; |
103 | 103 | |
104 | 104 | // Log the entry if the client key exists |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | if ($timeEntrySent) { |
124 | - $this->io->success('TimeEntry ('. $timeEntry->getDescription() . ') sent to toggl'); |
|
124 | + $this->io->success('TimeEntry (' . $timeEntry->getDescription() . ') sent to toggl'); |
|
125 | 125 | } |
126 | 126 | } |
127 | 127 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | $task->setDescription($this->buildTaskDescription($entry)); |
140 | 140 | $task->setTimeLog($this->buildTimeLog($entry)); |
141 | - $task->setClientId($config[$key]); |
|
141 | + $task->setClientId($config[ $key ]); |
|
142 | 142 | |
143 | 143 | $this->invoiceNinjaClient->saveNewTask($task); |
144 | 144 | } |
@@ -125,7 +125,7 @@ |
||
125 | 125 | /** |
126 | 126 | * @param $config |
127 | 127 | * @param $entryKey |
128 | - * @param $hasAlreadyBeenSent |
|
128 | + * @param boolean $hasAlreadyBeenSent |
|
129 | 129 | * |
130 | 130 | * @return bool |
131 | 131 | */ |
@@ -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, |