Test Setup Failed
Branch master (153191)
by Matthieu
02:36
created
Category
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/Toggl/ReportsClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Syncer/Command/SyncTimings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,11 +98,11 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.