@@ -96,9 +96,9 @@ |
||
| 96 | 96 | * @method sxmlAddChildrenRecursive |
| 97 | 97 | * @author PA |
| 98 | 98 | * @date 2017-01-12 |
| 99 | - * @param SimpleXMLElement $root Root XML Node |
|
| 99 | + * @param \SimpleXMLElement $root Root XML Node |
|
| 100 | 100 | * @param array $arguments Array of Arguments to be added to XML Node |
| 101 | - * @return SimpleXMLElement Resulting XML Tree |
|
| 101 | + * @return \SimpleXMLElement Resulting XML Tree |
|
| 102 | 102 | */ |
| 103 | 103 | private function sxmlAddChildrenRecursive(\SimpleXMLElement $root, array $arguments) : \SimpleXMLElement |
| 104 | 104 | { |
@@ -87,8 +87,8 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | //Add Arguments to the Call Node |
| 89 | 89 | try { |
| 90 | - $call = $this->sxmlAddChildrenRecursive($call,$arguments); |
|
| 91 | - } catch(\Exception $e) { |
|
| 90 | + $call = $this->sxmlAddChildrenRecursive($call, $arguments); |
|
| 91 | + } catch (\Exception $e) { |
|
| 92 | 92 | throw new YourMembershipRequestException($e->getMessage(), $e->getCode(), $method, $arguments, $e); |
| 93 | 93 | } |
| 94 | 94 | return $call; |
@@ -107,9 +107,9 @@ discard block |
||
| 107 | 107 | { |
| 108 | 108 | foreach ($arguments as $key => $value) { |
| 109 | 109 | if (is_array($value)) { |
| 110 | - $child = new \SimpleXMLElement(sprintf('<%s></%s>',$key, $key)); |
|
| 110 | + $child = new \SimpleXMLElement(sprintf('<%s></%s>', $key, $key)); |
|
| 111 | 111 | $this->sxmlAddChildrenRecursive($child, $value); |
| 112 | - $this->sxmlAppend($root,$child); |
|
| 112 | + $this->sxmlAppend($root, $child); |
|
| 113 | 113 | } else { |
| 114 | 114 | $root->addChild($key, $value); |
| 115 | 115 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * Package Config Path |
| 16 | 16 | * @var string |
| 17 | 17 | */ |
| 18 | - private $packageConfigPath = __DIR__.'/config/yourmembership.php'; |
|
| 18 | + private $packageConfigPath = __DIR__ . '/config/yourmembership.php'; |
|
| 19 | 19 | /** |
| 20 | 20 | * Indicates if loading of the provider is deferred. |
| 21 | 21 | * |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $this->packageConfigPath, $this->packageName |
| 35 | 35 | ); |
| 36 | 36 | |
| 37 | - $this->app->bind(YourMembershipClient::class, function ($app, $parameters) { |
|
| 37 | + $this->app->bind(YourMembershipClient::class, function($app, $parameters) { |
|
| 38 | 38 | $guzzleClient = new \GuzzleHttp\Client($app['config']['yourmembership']['guzzle-client']); |
| 39 | 39 | return new YourMembershipClient($guzzleClient, $parameters[0], $parameters[1]); |
| 40 | 40 | }); |