@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function beforeSave($insert) |
37 | 37 | { |
38 | - if (! $this->entityId) { |
|
38 | + if (!$this->entityId) { |
|
39 | 39 | $this->entityId = $this->getEntityId(); |
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Remove the signature if it exists. |
44 | 44 | */ |
45 | - if($this->getMetadataModel()->getSignature()) { |
|
45 | + if ($this->getMetadataModel()->getSignature()) { |
|
46 | 46 | $this->removeSignature(); |
47 | 47 | } |
48 | 48 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | protected function removeSignature() |
65 | 65 | { |
66 | - if($this->getMetadataModel()->getSignature()) { |
|
66 | + if ($this->getMetadataModel()->getSignature()) { |
|
67 | 67 | $doc = new \DOMDocument('1.0', 'UTF-8'); |
68 | 68 | $doc->loadXML($this->metadata); |
69 | 69 | $doc->documentElement->removeChild( |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function getMetadataModel(): EntityDescriptor |
91 | 91 | { |
92 | - if (! $this->metadataModel) { |
|
92 | + if (!$this->metadataModel) { |
|
93 | 93 | $this->metadataModel = EntityDescriptor::loadXml($this->metadata); |
94 | 94 | } |
95 | 95 |
@@ -52,8 +52,7 @@ |
||
52 | 52 | $logout->setDestination( |
53 | 53 | $provider->getType() === AbstractPlugin::SP ? |
54 | 54 | $provider->getMetadataModel()->getFirstSpSsoDescriptor()->getFirstSingleLogoutService( |
55 | - )->getLocation() : |
|
56 | - $provider->getMetadataModel()->getFirstIdpSsoDescriptor()->getFirstSingleLogoutService( |
|
55 | + )->getLocation() : $provider->getMetadataModel()->getFirstIdpSsoDescriptor()->getFirstSingleLogoutService( |
|
57 | 56 | )->getLocation() |
58 | 57 | ); |
59 | 58 | /** |