Completed
Pull Request — master (#34)
by Adam
03:25
created
src/Connector/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
                 if (is_array($object->message)) {
111 111
                     $output = '';
112 112
                     foreach ($object->message as $message) {
113
-                        $output .= $message . PHP_EOL;
113
+                        $output .= $message.PHP_EOL;
114 114
                     }
115 115
                     throw new \Exception($output);
116 116
                 } else {
Please login to merge, or discard this patch.
src/Connector/Connector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
         return $this->provider->getAuthenticatedRequest(
71 71
             $verb,
72
-            self::BASE_URI . $path,
72
+            self::BASE_URI.$path,
73 73
             $this->accessToken
74 74
         );
75 75
     }
Please login to merge, or discard this patch.
src/Response/LogForwardingDestinationsResponse.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($destinations)
17 17
     {
18
-        parent::__construct(array_map(function ($destination) {
18
+        parent::__construct(array_map(function($destination) {
19 19
             return new LogForwardingDestinationResponse($destination);
20 20
         }, $destinations), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/NotificationsResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function __construct($notifications)
16 16
     {
17
-        parent::__construct(array_map(function ($notification) {
17
+        parent::__construct(array_map(function($notification) {
18 18
             return new NotificationResponse($notification);
19 19
         }, $notifications), self::ARRAY_AS_PROPS);
20 20
     }
Please login to merge, or discard this patch.
src/Endpoints/LogForwardingDestinations.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
         $this->client = $client;
28 28
     }
29 29
 
30
-   /**
31
-    * Returns a list of log forwarding destinations.
32
-    *
33
-    * @param string $environmentUuid The environment ID
34
-    * @return LogForwardingDestinationsResponse
35
-    */
30
+    /**
31
+     * Returns a list of log forwarding destinations.
32
+     *
33
+     * @param string $environmentUuid The environment ID
34
+     * @return LogForwardingDestinationsResponse
35
+     */
36 36
     public function getAll($environmentUuid)
37 37
     {
38 38
         return new LogForwardingDestinationsResponse(
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
         );
44 44
     }
45 45
 
46
-   /**
47
-    * Returns a specific log forwarding destination.
48
-    *
49
-    * @param string $environmentUuid The environment ID
50
-    * @param int    $destinationId
51
-    * @return LogForwardingDestinationResponse
52
-    */
46
+    /**
47
+     * Returns a specific log forwarding destination.
48
+     *
49
+     * @param string $environmentUuid The environment ID
50
+     * @param int    $destinationId
51
+     * @return LogForwardingDestinationResponse
52
+     */
53 53
     public function get($environmentUuid, $destinationId)
54 54
     {
55 55
         return new LogForwardingDestinationResponse(
@@ -60,17 +60,17 @@  discard block
 block discarded – undo
60 60
         );
61 61
     }
62 62
 
63
-   /**
64
-    * Creates a log forwarding destination.
65
-    *
66
-    * @param string $environmentUuid
67
-    * @param string $label
68
-    * @param array  $sources
69
-    * @param string $consumer
70
-    * @param array  $credentials
71
-    * @param string $address
72
-    * @return OperationResponse
73
-    */
63
+    /**
64
+     * Creates a log forwarding destination.
65
+     *
66
+     * @param string $environmentUuid
67
+     * @param string $label
68
+     * @param array  $sources
69
+     * @param string $consumer
70
+     * @param array  $credentials
71
+     * @param string $address
72
+     * @return OperationResponse
73
+     */
74 74
     public function create($environmentUuid, $label, $sources, $consumer, $credentials, $address)
75 75
     {
76 76
 
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
         );
90 90
     }
91 91
 
92
-   /**
93
-    * Delete a specific log forwarding destination.
94
-    *
95
-    * @param string $environmentUuid
96
-    * @param int    $destId
97
-    * @return OperationResponse
98
-    */
92
+    /**
93
+     * Delete a specific log forwarding destination.
94
+     *
95
+     * @param string $environmentUuid
96
+     * @param int    $destId
97
+     * @return OperationResponse
98
+     */
99 99
     public function delete($environmentUuid, $destId)
100 100
     {
101 101
         return new OperationResponse(
@@ -103,13 +103,13 @@  discard block
 block discarded – undo
103 103
         );
104 104
     }
105 105
 
106
-   /**
107
-    * Disables a log forwarding destination.
108
-    *
109
-    * @param string $environmentUuid
110
-    * @param int    $destId
111
-    * @return OperationResponse
112
-    */
106
+    /**
107
+     * Disables a log forwarding destination.
108
+     *
109
+     * @param string $environmentUuid
110
+     * @param int    $destId
111
+     * @return OperationResponse
112
+     */
113 113
     public function disable($environmentUuid, $destId)
114 114
     {
115 115
         return new OperationResponse(
@@ -120,13 +120,13 @@  discard block
 block discarded – undo
120 120
         );
121 121
     }
122 122
 
123
-   /**
124
-    * Disables a log forwarding destination.
125
-    *
126
-    * @param string $environmentUuid
127
-    * @param int    $destId
128
-    * @return OperationResponse
129
-    */
123
+    /**
124
+     * Disables a log forwarding destination.
125
+     *
126
+     * @param string $environmentUuid
127
+     * @param int    $destId
128
+     * @return OperationResponse
129
+     */
130 130
     public function enable($environmentUuid, $destId)
131 131
     {
132 132
         return new OperationResponse(
@@ -137,18 +137,18 @@  discard block
 block discarded – undo
137 137
         );
138 138
     }
139 139
 
140
-   /**
141
-    * Updates a log forwarding destination.
142
-    *
143
-    * @param string $environmentUuid
144
-    * @param int    $destId
145
-    * @param string $label
146
-    * @param array  $sources
147
-    * @param string $consumer
148
-    * @param array  $creds
149
-    * @param string $address
150
-    * @return OperationResponse
151
-    */
140
+    /**
141
+     * Updates a log forwarding destination.
142
+     *
143
+     * @param string $environmentUuid
144
+     * @param int    $destId
145
+     * @param string $label
146
+     * @param array  $sources
147
+     * @param string $consumer
148
+     * @param array  $creds
149
+     * @param string $address
150
+     * @return OperationResponse
151
+     */
152 152
     public function update($environmentUuid, $destId, $label, $sources, $consumer, $creds, $address)
153 153
     {
154 154
 
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
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * @param string $branch
50 50
      * @return OperationResponse
51 51
      */
52
-    public function switch($environmentUuid, $branch)
52
+    public function switch ($environmentUuid, $branch)
53 53
     {
54 54
 
55 55
         $options = [
Please login to merge, or discard this patch.
src/Endpoints/Environments.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
     {
91 91
 
92 92
         $options  = [
93
-          'form_params' => $config,
93
+            'form_params' => $config,
94 94
         ];
95 95
 
96 96
         return new OperationResponse(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     public function update($environmentUuid, array $config)
90 90
     {
91 91
 
92
-        $options  = [
92
+        $options = [
93 93
           'form_params' => $config,
94 94
         ];
95 95
 
Please login to merge, or discard this patch.
src/Response/SslCertificatesResponse.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($certificates)
17 17
     {
18
-        parent::__construct(array_map(function ($certificate) {
18
+        parent::__construct(array_map(function($certificate) {
19 19
             return new SslCertificateResponse($certificate);
20 20
         }, $certificates), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.
src/Response/LogsResponse.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($logs)
17 17
     {
18
-        parent::__construct(array_map(function ($log) {
18
+        parent::__construct(array_map(function($log) {
19 19
             return new LogResponse($log);
20 20
         }, $logs), self::ARRAY_AS_PROPS);
21 21
     }
Please login to merge, or discard this patch.