Completed
Push — master ( 169be8...2af833 )
by Mario
03:34
created
src/Service/User/UserService.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,6 @@
 block discarded – undo
10 10
 use Marek\Toggable\API\Http\Response\Error;
11 11
 use Marek\Toggable\API\Http\Response\Users\Token;
12 12
 use Marek\Toggable\API\Http\Response\Users\User as UserResponse;
13
-use Marek\Toggable\API\Http\Response\Users\UserWithRelatedData;
14
-use Marek\Toggable\API\Toggl\Values\TimeEntry\TimeEntry;
15
-use Marek\Toggable\API\Toggl\Values\User\BlogPost;
16 13
 use Marek\Toggable\API\Toggl\Values\User\User;
17 14
 
18 15
 
Please login to merge, or discard this patch.
src/Service/Client/ClientService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         }
93 93
 
94 94
         $clients = array();
95
-        foreach($response->body as $client) {
95
+        foreach ($response->body as $client) {
96 96
             $clients[] = $this->hydrator->hydrate($client, new ClientValue);
97 97
         }
98 98
 
Please login to merge, or discard this patch.
src/Service/Workspace/WorkspaceService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $response = $this->requestManager->request($request);
44 44
         
45 45
         $workspaces = array();
46
-        foreach($response->body as $workspace) {
46
+        foreach ($response->body as $workspace) {
47 47
             $workspaces[] = $this->hydrator->hydrate($workspace, new Workspace());
48 48
         }
49 49
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $response = $this->requestManager->request($request);
93 93
 
94 94
         $users = array();
95
-        foreach($response->body as $user) {
95
+        foreach ($response->body as $user) {
96 96
             $users[] = $this->hydrator->hydrate($user, new User());
97 97
         }
98 98
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $response = $this->requestManager->request($request);
120 120
 
121 121
         $clients = array();
122
-        foreach($response->body as $client) {
122
+        foreach ($response->body as $client) {
123 123
             $clients[] = $this->hydrator->hydrate($client, new Client());
124 124
         }
125 125
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $response = $this->requestManager->request($request);
150 150
 
151 151
         $projects = array();
152
-        foreach($response->body as $project) {
152
+        foreach ($response->body as $project) {
153 153
             $projects[] = $this->hydrator->hydrate($project, new Project());
154 154
         }
155 155
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         }
184 184
 
185 185
         $tasks = array();
186
-        foreach($response->body as $task) {
186
+        foreach ($response->body as $task) {
187 187
             $tasks[] = $this->hydrator->hydrate($task, new Task());
188 188
         }
189 189
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         }
218 218
 
219 219
         $tags = array();
220
-        foreach($response->body as $tag) {
220
+        foreach ($response->body as $tag) {
221 221
             $tags[] = $this->hydrator->hydrate($tag, new Tag());
222 222
         }
223 223
 
Please login to merge, or discard this patch.
src/Service/Dashboard/DashboardService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         $mostActiveUsers = array();
42 42
         if (!empty($response->body['most_active_user'])) {
43
-            foreach($response->body['most_active_user'] as $mostActiveUser) {
43
+            foreach ($response->body['most_active_user'] as $mostActiveUser) {
44 44
                 $mostActiveUsers[] = $this->hydrator->hydrate($mostActiveUser, new MostActiveUser());
45 45
             }
46 46
         }
Please login to merge, or discard this patch.
src/Hydrator/AggregateHydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function extract($object)
28 28
     {
29
-        foreach($this->hydrators as $hydrator) {
29
+        foreach ($this->hydrators as $hydrator) {
30 30
             if ($hydrator->canHydrate($object)) {
31 31
                 return $hydrator->extract($object);
32 32
             }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function hydrate(array $data, $object)
40 40
     {
41
-        foreach($this->hydrators as $hydrator) {
41
+        foreach ($this->hydrators as $hydrator) {
42 42
             if ($hydrator->canHydrate($object)) {
43 43
                 return $hydrator->hydrate($data, $object);
44 44
             }
Please login to merge, or discard this patch.
src/Hydrator/ObjectProperty.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
 class ObjectProperty implements HydratorInterface, StrategyEnabledInterface
16 16
 {
17 17
     /**
18
-    * The list with strategies that this hydrator has.
19
-    *
20
-    * @var \ArrayObject
21
-    */
18
+     * The list with strategies that this hydrator has.
19
+     *
20
+     * @var \ArrayObject
21
+     */
22 22
     protected $strategies;
23 23
 
24 24
     /**
Please login to merge, or discard this patch.
src/Service/AbstractService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
             $response = $this->requestManager->request($request);
78 78
 
79
-        } catch(NotFoundException $e) {
79
+        } catch (NotFoundException $e) {
80 80
 
81 81
             return new Response();
82 82
         }
Please login to merge, or discard this patch.