Test Setup Failed
Push — master ( cf7de4...72f93c )
by Matthieu
08:31
created
src/Syncer/Factory/SerializerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\Factory;
4 4
 
Please login to merge, or discard this patch.
src/Syncer/Dto/Toggl/DetailedReport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\Dto\Toggl;
4 4
 
Please login to merge, or discard this patch.
src/Syncer/Dto/Toggl/TimeEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\Dto\Toggl;
4 4
 
Please login to merge, or discard this patch.
src/Syncer/Dto/Toggl/Workspace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\Dto\Toggl;
4 4
 
Please login to merge, or discard this patch.
src/Syncer/Dto/InvoiceNinja/Task.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\Dto\InvoiceNinja;
4 4
 
Please login to merge, or discard this patch.
src/Syncer/Command/SyncTimings.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\Command;
4 4
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         foreach ($workspaces as $workspace) {
105 105
             $detailedReport = $this->reportsClient->getDetailedReport($workspace->getId());
106 106
 
107
-            foreach($detailedReport->getData() as $timeEntry) {
107
+            foreach ($detailedReport->getData() as $timeEntry) {
108 108
                 $timeEntrySent = false;
109 109
 
110 110
                 // Log the entry if the client key exists
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 }
123 123
 
124 124
                 if ($timeEntrySent) {
125
-                    $this->io->success('TimeEntry ('. $timeEntry->getDescription() . ') sent to InvoiceNinja');
125
+                    $this->io->success('TimeEntry (' . $timeEntry->getDescription() . ') sent to InvoiceNinja');
126 126
                 }
127 127
             }
128 128
         }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         $task->setDescription($this->buildTaskDescription($entry));
159 159
         $task->setTimeLog($this->buildTimeLog($entry));
160
-        $task->setClientId($config[$key]);
160
+        $task->setClientId($config[ $key ]);
161 161
 
162 162
         $this->invoiceNinjaClient->saveNewTask($task);
163 163
     }
@@ -187,10 +187,10 @@  discard block
 block discarded – undo
187 187
      */
188 188
     private function buildTimeLog(TimeEntry $entry): string
189 189
     {
190
-        $timeLog = [[
190
+        $timeLog = [ [
191 191
             $entry->getStart()->getTimestamp(),
192 192
             $entry->getEnd()->getTimestamp(),
193
-        ]];
193
+        ] ];
194 194
 
195 195
         return \GuzzleHttp\json_encode($timeLog);
196 196
     }
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
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\Toggl;
4 4
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function getDetailedReport(int $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,
Please login to merge, or discard this patch.
src/Syncer/Toggl/TogglClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\Toggl;
4 4
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public function getWorkspaces()
51 51
     {
52 52
         $response = $this->client->request('GET', self::VERSION . '/workspaces', [
53
-            'auth' => [$this->api_key, 'api_token'],
53
+            'auth' => [ $this->api_key, 'api_token' ],
54 54
         ]);
55 55
 
56 56
         return $this->serializer->deserialize($response->getBody(), 'array<Syncer\Dto\Toggl\Workspace>', 'json');
Please login to merge, or discard this patch.
src/Syncer/InvoiceNinja/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Syncer\InvoiceNinja;
4 4
 
Please login to merge, or discard this patch.