Completed
Push — master ( a5db26...86128a )
by Matthieu
03:01
created
src/Syncer/Toggl/TogglClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Syncer/Command/SyncTimings.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,14 +95,14 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Syncer/Toggl/ReportsClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.