@@ -41,7 +41,9 @@ discard block |
||
41 | 41 | public function addDirective(DirectiveInterface $directive) |
42 | 42 | { |
43 | 43 | $directiveName = $this->getDirectiveName($directive); |
44 | - if ($this->isDirectiveNameRegistered($directiveName)) return $this; |
|
44 | + if ($this->isDirectiveNameRegistered($directiveName)) { |
|
45 | + return $this; |
|
46 | + } |
|
45 | 47 | |
46 | 48 | $this->directivesList[$directiveName] = $directive; |
47 | 49 | |
@@ -50,7 +52,9 @@ discard block |
||
50 | 52 | |
51 | 53 | private function getDirectiveName($directive) |
52 | 54 | { |
53 | - if (is_string($directive)) return $directive; |
|
55 | + if (is_string($directive)) { |
|
56 | + return $directive; |
|
57 | + } |
|
54 | 58 | if (is_object($directive) && $directive instanceof DirectiveInterface) { |
55 | 59 | return $directive->getName(); |
56 | 60 | } |
@@ -18,7 +18,9 @@ |
||
18 | 18 | |
19 | 19 | public function buildDirectives() |
20 | 20 | { |
21 | - if ($this->_isDirectivesBuilt) return true; |
|
21 | + if ($this->_isDirectivesBuilt) { |
|
22 | + return true; |
|
23 | + } |
|
22 | 24 | |
23 | 25 | if (!empty($this->data['directives'])) { |
24 | 26 | $this->addDirectives($this->data['directives']); |