@@ -110,7 +110,7 @@ |
||
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 { |
@@ -69,7 +69,7 @@ |
||
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 | } |
@@ -15,7 +15,7 @@ |
||
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 CertificateResponse($certificate); |
20 | 20 | }, $certificates), self::ARRAY_AS_PROPS); |
21 | 21 | } |
@@ -15,7 +15,7 @@ |
||
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 | } |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | { |
341 | 341 | |
342 | 342 | $options = [ |
343 | - 'form_params' => $config, |
|
343 | + 'form_params' => $config, |
|
344 | 344 | ]; |
345 | 345 | |
346 | 346 | return new OperationResponse( |
@@ -709,12 +709,12 @@ discard block |
||
709 | 709 | ); |
710 | 710 | } |
711 | 711 | |
712 | - /** |
|
713 | - * Returns a list of log forwarding destinations. |
|
714 | - * |
|
715 | - * @param string $environmentUuid The environment ID |
|
716 | - * @return LogForwardingDestinationsResponse |
|
717 | - */ |
|
712 | + /** |
|
713 | + * Returns a list of log forwarding destinations. |
|
714 | + * |
|
715 | + * @param string $environmentUuid The environment ID |
|
716 | + * @return LogForwardingDestinationsResponse |
|
717 | + */ |
|
718 | 718 | public function getLogDestinations($environmentUuid) |
719 | 719 | { |
720 | 720 | return new LogForwardingDestinationsResponse( |
@@ -725,13 +725,13 @@ discard block |
||
725 | 725 | ); |
726 | 726 | } |
727 | 727 | |
728 | - /** |
|
729 | - * Returns a specific log forwarding destination. |
|
730 | - * |
|
731 | - * @param string $environmentUuid The environment ID |
|
732 | - * @param int $destinationId |
|
733 | - * @return LogForwardingDestinationResponse |
|
734 | - */ |
|
728 | + /** |
|
729 | + * Returns a specific log forwarding destination. |
|
730 | + * |
|
731 | + * @param string $environmentUuid The environment ID |
|
732 | + * @param int $destinationId |
|
733 | + * @return LogForwardingDestinationResponse |
|
734 | + */ |
|
735 | 735 | public function getLogDestination($environmentUuid, $destinationId) |
736 | 736 | { |
737 | 737 | return new LogForwardingDestinationResponse( |
@@ -742,17 +742,17 @@ discard block |
||
742 | 742 | ); |
743 | 743 | } |
744 | 744 | |
745 | - /** |
|
746 | - * Creates a log forwarding destination. |
|
747 | - * |
|
748 | - * @param string $environmentUuid |
|
749 | - * @param string $label |
|
750 | - * @param array $sources |
|
751 | - * @param string $consumer |
|
752 | - * @param array $credentials |
|
753 | - * @param string $address |
|
754 | - * @return OperationResponse |
|
755 | - */ |
|
745 | + /** |
|
746 | + * Creates a log forwarding destination. |
|
747 | + * |
|
748 | + * @param string $environmentUuid |
|
749 | + * @param string $label |
|
750 | + * @param array $sources |
|
751 | + * @param string $consumer |
|
752 | + * @param array $credentials |
|
753 | + * @param string $address |
|
754 | + * @return OperationResponse |
|
755 | + */ |
|
756 | 756 | public function createLogDestination($environmentUuid, $label, $sources, $consumer, $credentials, $address) |
757 | 757 | { |
758 | 758 | |
@@ -771,13 +771,13 @@ discard block |
||
771 | 771 | ); |
772 | 772 | } |
773 | 773 | |
774 | - /** |
|
775 | - * Delete a specific log forwarding destination. |
|
776 | - * |
|
777 | - * @param string $environmentUuid |
|
778 | - * @param int $destId |
|
779 | - * @return OperationResponse |
|
780 | - */ |
|
774 | + /** |
|
775 | + * Delete a specific log forwarding destination. |
|
776 | + * |
|
777 | + * @param string $environmentUuid |
|
778 | + * @param int $destId |
|
779 | + * @return OperationResponse |
|
780 | + */ |
|
781 | 781 | public function deleteLogDestination($environmentUuid, $destId) |
782 | 782 | { |
783 | 783 | return new OperationResponse( |
@@ -785,13 +785,13 @@ discard block |
||
785 | 785 | ); |
786 | 786 | } |
787 | 787 | |
788 | - /** |
|
789 | - * Disables a log forwarding destination. |
|
790 | - * |
|
791 | - * @param string $environmentUuid |
|
792 | - * @param int $destId |
|
793 | - * @return OperationResponse |
|
794 | - */ |
|
788 | + /** |
|
789 | + * Disables a log forwarding destination. |
|
790 | + * |
|
791 | + * @param string $environmentUuid |
|
792 | + * @param int $destId |
|
793 | + * @return OperationResponse |
|
794 | + */ |
|
795 | 795 | public function disableLogDestination($environmentUuid, $destId) |
796 | 796 | { |
797 | 797 | return new OperationResponse( |
@@ -802,13 +802,13 @@ discard block |
||
802 | 802 | ); |
803 | 803 | } |
804 | 804 | |
805 | - /** |
|
806 | - * Disables a log forwarding destination. |
|
807 | - * |
|
808 | - * @param string $environmentUuid |
|
809 | - * @param int $destId |
|
810 | - * @return OperationResponse |
|
811 | - */ |
|
805 | + /** |
|
806 | + * Disables a log forwarding destination. |
|
807 | + * |
|
808 | + * @param string $environmentUuid |
|
809 | + * @param int $destId |
|
810 | + * @return OperationResponse |
|
811 | + */ |
|
812 | 812 | public function enableLogDestination($environmentUuid, $destId) |
813 | 813 | { |
814 | 814 | return new OperationResponse( |
@@ -819,18 +819,18 @@ discard block |
||
819 | 819 | ); |
820 | 820 | } |
821 | 821 | |
822 | - /** |
|
823 | - * Updates a log forwarding destination. |
|
824 | - * |
|
825 | - * @param string $environmentUuid |
|
826 | - * @param int $destId |
|
827 | - * @param string $label |
|
828 | - * @param array $sources |
|
829 | - * @param string $consumer |
|
830 | - * @param array $creds |
|
831 | - * @param string $address |
|
832 | - * @return OperationResponse |
|
833 | - */ |
|
822 | + /** |
|
823 | + * Updates a log forwarding destination. |
|
824 | + * |
|
825 | + * @param string $environmentUuid |
|
826 | + * @param int $destId |
|
827 | + * @param string $label |
|
828 | + * @param array $sources |
|
829 | + * @param string $consumer |
|
830 | + * @param array $creds |
|
831 | + * @param string $address |
|
832 | + * @return OperationResponse |
|
833 | + */ |
|
834 | 834 | public function updateLogDestination($environmentUuid, $destId, $label, $sources, $consumer, $creds, $address) |
835 | 835 | { |
836 | 836 |