Passed
Branch master (e3e986)
by Adam
04:38
created
src/CloudApi/ClientInterface.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -168,13 +168,13 @@
 block discarded – undo
168 168
      */
169 169
     public function databaseBackup($id, $backupId);
170 170
 
171
-   /**
172
-    * Restores a database backup to a database in an environment.
173
-    *
174
-    * @param string $id
175
-    * @param string $backupId
176
-    * @return OperationResponse
177
-    */
171
+    /**
172
+     * Restores a database backup to a database in an environment.
173
+     *
174
+     * @param string $id
175
+     * @param string $backupId
176
+     * @return OperationResponse
177
+     */
178 178
     public function restoreDatabaseBackup($id, $backupId);
179 179
 
180 180
     /**
Please login to merge, or discard this patch.
src/CloudApi/Client.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -305,16 +305,16 @@  discard block
 block discarded – undo
305 305
      */
306 306
     public function databaseBackup($id, $backupId)
307 307
     {
308
-         return new BackupResponse($this->makeRequest('get', "/environments/${id}/database-backups/${backupId}"));
308
+            return new BackupResponse($this->makeRequest('get', "/environments/${id}/database-backups/${backupId}"));
309 309
     }
310 310
 
311
-   /**
312
-    * Restores a database backup to a database in an environment.
313
-    *
314
-    * @param string $id
315
-    * @param string $backupId
316
-    * @return OperationResponse
317
-    */
311
+    /**
312
+     * Restores a database backup to a database in an environment.
313
+     *
314
+     * @param string $id
315
+     * @param string $backupId
316
+     * @return OperationResponse
317
+     */
318 318
     public function restoreDatabaseBackup($id, $backupId)
319 319
     {
320 320
         return new OperationResponse(
@@ -332,9 +332,9 @@  discard block
 block discarded – undo
332 332
     public function copyFiles($idFrom, $idTo)
333 333
     {
334 334
         $options = [
335
-           'form_params' => [
336
-               'source' => $idFrom,
337
-           ],
335
+            'form_params' => [
336
+                'source' => $idFrom,
337
+            ],
338 338
         ];
339 339
 
340 340
         return new OperationResponse($this->makeRequest('post', "/environments/${idTo}/files", $options));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         }
85 85
 
86 86
         try {
87
-            $response = $this->$verb(self::BASE_URI . $path, $options);
87
+            $response = $this->$verb(self::BASE_URI.$path, $options);
88 88
         } catch (ClientException $e) {
89 89
             print $e->getMessage();
90 90
             $response = $e->getResponse();
Please login to merge, or discard this patch.
src/Response/InvitationsResponse.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 {
11 11
 
12 12
     /**
13
-    * MembersResponse constructor.
14
-    * @param array $members
15
-    */
13
+     * MembersResponse constructor.
14
+     * @param array $members
15
+     */
16 16
     public function __construct($invitations)
17 17
     {
18 18
         parent::__construct(array_map(function ($invitation) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     */
16 16
     public function __construct($invitations)
17 17
     {
18
-        parent::__construct(array_map(function ($invitation) {
18
+        parent::__construct(array_map(function($invitation) {
19 19
             return new InvitationResponse($invitation);
20 20
         }, $invitations), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/MembersResponse.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 {
11 11
 
12 12
     /**
13
-    * MembersResponse constructor.
14
-    * @param array $members
15
-    */
13
+     * MembersResponse constructor.
14
+     * @param array $members
15
+     */
16 16
     public function __construct($members)
17 17
     {
18 18
         parent::__construct(array_map(function ($member) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     */
16 16
     public function __construct($members)
17 17
     {
18
-        parent::__construct(array_map(function ($member) {
18
+        parent::__construct(array_map(function($member) {
19 19
             return new MemberResponse($member);
20 20
         }, $members), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/TasksResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($tasks)
17 17
     {
18
-        parent::__construct(array_map(function ($task) {
18
+        parent::__construct(array_map(function($task) {
19 19
             return new TaskResponse($task);
20 20
         }, $tasks), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/PermissionsResponse.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 {
11 11
 
12 12
     /**
13
-    * PermissionsResponse constructor.
14
-    * @param array $permissions
15
-    */
13
+     * PermissionsResponse constructor.
14
+     * @param array $permissions
15
+     */
16 16
     public function __construct($permissions)
17 17
     {
18 18
         parent::__construct(array_map(function ($permission) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     */
16 16
     public function __construct($permissions)
17 17
     {
18
-        parent::__construct(array_map(function ($permission) {
18
+        parent::__construct(array_map(function($permission) {
19 19
             return new PermissionResponse($permission);
20 20
         }, $permissions), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/DomainsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($domains)
17 17
     {
18
-        parent::__construct(array_map(function ($domain) {
18
+        parent::__construct(array_map(function($domain) {
19 19
             return new DomainResponse($domain);
20 20
         }, $domains), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/TeamsResponse.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 {
11 11
 
12 12
     /**
13
-    * TeamsResponse constructor.
14
-    * @param array $teams
15
-    */
13
+     * TeamsResponse constructor.
14
+     * @param array $teams
15
+     */
16 16
     public function __construct($teams)
17 17
     {
18 18
         parent::__construct(array_map(function ($team) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     */
16 16
     public function __construct($teams)
17 17
     {
18
-        parent::__construct(array_map(function ($team) {
18
+        parent::__construct(array_map(function($team) {
19 19
             return new TeamResponse($team);
20 20
         }, $teams), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/ServersResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct($servers)
17 17
     {
18
-        parent::__construct(array_map(function ($server) {
18
+        parent::__construct(array_map(function($server) {
19 19
             return new ServerResponse($server);
20 20
         }, $servers), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.