Test Failed
Pull Request — master (#92)
by Adam
08:00 queued 05:06
created
src/Response/MetricsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         parent::__construct(
21 21
             array_map(
22
-                function ($metric) {
22
+                function($metric) {
23 23
                     return new MetricResponse($metric);
24 24
                 },
25 25
                 $metrics
Please login to merge, or discard this patch.
src/Response/TeamsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         parent::__construct(
21 21
             array_map(
22
-                function ($team) {
22
+                function($team) {
23 23
                     return new TeamResponse($team);
24 24
                 },
25 25
                 $teams
Please login to merge, or discard this patch.
src/Response/OrganizationsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         parent::__construct(
21 21
             array_map(
22
-                function ($organization) {
22
+                function($organization) {
23 23
                     return new OrganizationResponse($organization);
24 24
                 },
25 25
                 $organizations
Please login to merge, or discard this patch.
src/Response/CronsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         parent::__construct(
21 21
             array_map(
22
-                function ($cron) {
22
+                function($cron) {
23 23
                     return new CronResponse($cron);
24 24
                 },
25 25
                 $crons
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
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         parent::__construct(
21 21
             array_map(
22
-                function ($server) {
22
+                function($server) {
23 23
                     return new ServerResponse($server);
24 24
                 },
25 25
                 $servers
Please login to merge, or discard this patch.
src/Response/ApplicationsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         parent::__construct(
21 21
             array_map(
22
-                function ($application) {
22
+                function($application) {
23 23
                     return new ApplicationResponse($application);
24 24
                 },
25 25
                 $applications
Please login to merge, or discard this patch.
src/Endpoints/Code.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @param  string $branch
37 37
      * @return OperationResponse
38 38
      */
39
-    public function switch($environmentUuid, $branch)
39
+    public function switch ($environmentUuid, $branch)
40 40
     {
41 41
 
42 42
         $options = [
Please login to merge, or discard this patch.
src/Connector/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function getVersion()
65 65
     {
66
-        if ($file = @file_get_contents(dirname(dirname(__DIR__)) . '/VERSION')) {
66
+        if ($file = @file_get_contents(dirname(dirname(__DIR__)).'/VERSION')) {
67 67
             return trim($file);
68 68
         } else {
69 69
             throw new \Exception('No VERSION file');
Please login to merge, or discard this patch.
src/Exception/ApiErrorException.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function __toString()
38 38
     {
39
-        return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
39
+        return __CLASS__.": [{$this->code}]: {$this->message}\n";
40 40
     }
41 41
 
42 42
     /**
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         if (is_array($response_body->message) || is_object($response_body->message)) {
50 50
             $output = '';
51 51
             foreach ($response_body->message as $message) {
52
-                $output .= $message . PHP_EOL;
52
+                $output .= $message.PHP_EOL;
53 53
             }
54 54
             $this->message = $output;
55 55
         } else {
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 class ApiErrorException extends Exception
11 11
 {
12 12
 
13
-  /**
14
-   * @var object
15
-   */
13
+    /**
14
+     * @var object
15
+     */
16 16
     private $responseBody;
17 17
 
18 18
     /**
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
         }
59 59
     }
60 60
 
61
-  /**
62
-   * @return object
63
-   */
61
+    /**
62
+     * @return object
63
+     */
64 64
     public function getResponseBody()
65 65
     {
66 66
         return $this->responseBody;
67 67
     }
68 68
 
69
-  /**
70
-   * @param object $response_body
71
-   */
69
+    /**
70
+     * @param object $response_body
71
+     */
72 72
     private function setResponseBody($response_body)
73 73
     {
74 74
         $this->responseBody = $response_body;
Please login to merge, or discard this patch.