Passed
Branch tests (55cf46)
by Adam
02:06
created
src/Response/MembersResponse.php 1 patch
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.
src/Response/PermissionsResponse.php 1 patch
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.
src/Response/TeamsResponse.php 1 patch
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.
src/Response/ServerResponse.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,15 +26,15 @@
 block discarded – undo
26 26
      */
27 27
     public function __construct($server)
28 28
     {
29
-         $this->id = $server->id;
30
-         $this->name = $server->name;
31
-         $this->hostname = $server->hostname;
32
-         $this->ip = $server->ip;
33
-         $this->status = $server->status;
34
-         $this->region = $server->region;
35
-         $this->roles = $server->roles;
36
-         $this->amiType = $server->ami_type;
37
-         $this->configuration = $server->configuration;
38
-         $this->flags = $server->flags;
29
+            $this->id = $server->id;
30
+            $this->name = $server->name;
31
+            $this->hostname = $server->hostname;
32
+            $this->ip = $server->ip;
33
+            $this->status = $server->status;
34
+            $this->region = $server->region;
35
+            $this->roles = $server->roles;
36
+            $this->amiType = $server->ami_type;
37
+            $this->configuration = $server->configuration;
38
+            $this->flags = $server->flags;
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Response/EnvironmentsResponse.php 1 patch
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
-    * EnvironmentsResponse constructor.
14
-    * @param array $environments
15
-    */
13
+     * EnvironmentsResponse constructor.
14
+     * @param array $environments
15
+     */
16 16
     public function __construct($environments)
17 17
     {
18 18
         parent::__construct(array_map(function ($environment) {
Please login to merge, or discard this patch.
src/Response/OrganizationsResponse.php 1 patch
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
-    * OrganizationsResponse constructor.
14
-    * @param array $organizations
15
-    */
13
+     * OrganizationsResponse constructor.
14
+     * @param array $organizations
15
+     */
16 16
     public function __construct($organizations)
17 17
     {
18 18
         parent::__construct(array_map(function ($organization) {
Please login to merge, or discard this patch.
src/Response/RolesResponse.php 1 patch
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
-    * RolesResponse constructor.
14
-    * @param array $roles
15
-    */
13
+     * RolesResponse constructor.
14
+     * @param array $roles
15
+     */
16 16
     public function __construct($roles)
17 17
     {
18 18
         parent::__construct(array_map(function ($role) {
Please login to merge, or discard this patch.
src/CloudApi/Connector.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             if (property_exists($object, '_embedded') && property_exists($object->_embedded, 'items')) {
99 99
                 $return = $object->_embedded->items;
100 100
             } elseif (property_exists($object, 'error')) {
101
-                  throw new \Exception($object->message);
101
+                    throw new \Exception($object->message);
102 102
             } else {
103 103
                 $return = $object;
104 104
             }
Please login to merge, or discard this patch.
src/CloudApi/Client.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -290,13 +290,13 @@  discard block
 block discarded – undo
290 290
      */
291 291
     public function databaseBackup($environmentUuid, $backupId)
292 292
     {
293
-         return new BackupResponse(
294
-             $this->connector->request(
295
-                 'get',
296
-                 "/environments/${environmentUuid}/database-backups/${backupId}",
297
-                 $this->query
298
-             )
299
-         );
293
+            return new BackupResponse(
294
+                $this->connector->request(
295
+                    'get',
296
+                    "/environments/${environmentUuid}/database-backups/${backupId}",
297
+                    $this->query
298
+                )
299
+            );
300 300
     }
301 301
 
302 302
     /**
@@ -327,9 +327,9 @@  discard block
 block discarded – undo
327 327
     public function copyFiles($environmentUuidFrom, $environmentUuidTo)
328 328
     {
329 329
         $options = [
330
-           'form_params' => [
331
-               'source' => $environmentUuidFrom,
332
-           ],
330
+            'form_params' => [
331
+                'source' => $environmentUuidFrom,
332
+            ],
333 333
         ];
334 334
 
335 335
         return new OperationResponse(
@@ -869,15 +869,15 @@  discard block
 block discarded – undo
869 869
      */
870 870
     public function renameTeam($teamUuid, $name)
871 871
     {
872
-          $options = [
872
+            $options = [
873 873
                 'form_params' => [
874
-                      'name' => $name,
875
-                  ],
874
+                        'name' => $name,
875
+                    ],
876 876
             ];
877 877
 
878
-          return new OperationResponse(
879
-              $this->connector->request('put', "/teams/${teamUuid}", $options)
880
-          );
878
+            return new OperationResponse(
879
+                $this->connector->request('put', "/teams/${teamUuid}", $options)
880
+            );
881 881
     }
882 882
 
883 883
     /**
Please login to merge, or discard this patch.