Completed
Push — master ( 26f3ac...1967e9 )
by Matthieu
01:49
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 3 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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
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
      */
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
@@ -54,7 +54,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.