@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | //Add Arguments to the Call Node |
| 88 | 88 | |
| 89 | - $call = $this->sxmlAddChildrenRecursive($call,$arguments); |
|
| 89 | + $call = $this->sxmlAddChildrenRecursive($call, $arguments); |
|
| 90 | 90 | |
| 91 | 91 | return $call; |
| 92 | 92 | } |
@@ -105,10 +105,10 @@ discard block |
||
| 105 | 105 | foreach ($arguments as $key => $value) { |
| 106 | 106 | if (is_array($value)) { |
| 107 | 107 | try { |
| 108 | - $child = new \SimpleXMLElement(sprintf('<%s></%s>',$key, $key)); |
|
| 108 | + $child = new \SimpleXMLElement(sprintf('<%s></%s>', $key, $key)); |
|
| 109 | 109 | $this->sxmlAddChildrenRecursive($child, $value); |
| 110 | - $this->sxmlAppend($root,$child); |
|
| 111 | - } catch(\Exception $e) { |
|
| 110 | + $this->sxmlAppend($root, $child); |
|
| 111 | + } catch (\Exception $e) { |
|
| 112 | 112 | throw new YourMembershipException($e->getMessage(), $e->getCode(), $e); |
| 113 | 113 | } |
| 114 | 114 | } else { |
@@ -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 | { |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | |
| 10 | 10 | private $packageName = 'yourmembership'; |
| 11 | - private $packageConfigPath = __DIR__.'/config/yourmembership.php'; |
|
| 11 | + private $packageConfigPath = __DIR__ . '/config/yourmembership.php'; |
|
| 12 | 12 | /** |
| 13 | 13 | * Indicates if loading of the provider is deferred. |
| 14 | 14 | * |