@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | * @return boolean |
55 | 55 | */ |
56 | 56 | public function contains($policyRuleAttributes, $attributes, $extraData = []) { |
57 | - foreach($extraData['attribute']->getValue() as $attribute) { |
|
57 | + foreach ($extraData['attribute']->getValue() as $attribute) { |
|
58 | 58 | $result = true; |
59 | - foreach($policyRuleAttributes as $pra) { |
|
59 | + foreach ($policyRuleAttributes as $pra) { |
|
60 | 60 | $attributeData = $pra->getAttribute(); |
61 | - if(!$this->comparisonManager->compare( |
|
61 | + if (!$this->comparisonManager->compare( |
|
62 | 62 | $pra->getComparisonType(), |
63 | 63 | $pra->getComparison(), |
64 | 64 | $pra->getValue(), |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | break; |
69 | 69 | } |
70 | 70 | } |
71 | - if($result === true) { |
|
71 | + if ($result === true) { |
|
72 | 72 | return true; |
73 | 73 | } |
74 | 74 | } |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * @return \PhpAbac\Example\User |
102 | 102 | */ |
103 | 103 | public function removeVisa(Visa $visa) { |
104 | - if(isset($this->visas[$visa->getId()])) { |
|
104 | + if (isset($this->visas[$visa->getId()])) { |
|
105 | 105 | unset($this->visas[$visa->getId()]); |
106 | 106 | } |
107 | 107 | return $this; |