@@ -136,15 +136,13 @@ |
||
| 136 | 136 | if(isset($aMethodAttrs['protected'])) |
| 137 | 137 | { |
| 138 | 138 | $aProtected[] = $sMethod; // The method is not to be exported. |
| 139 | - } |
|
| 140 | - elseif(count($aMethodAttrs) > 0) |
|
| 139 | + } elseif(count($aMethodAttrs) > 0) |
|
| 141 | 140 | { |
| 142 | 141 | $aAttributes[$sMethod] = $aMethodAttrs; |
| 143 | 142 | } |
| 144 | 143 | } |
| 145 | 144 | return [false, $aAttributes, $aProtected]; |
| 146 | - } |
|
| 147 | - catch(AnnotationException $e) |
|
| 145 | + } catch(AnnotationException $e) |
|
| 148 | 146 | { |
| 149 | 147 | throw new SetupException($e->getMessage()); |
| 150 | 148 | } |
@@ -197,14 +197,14 @@ |
||
| 197 | 197 | $nCount = count($this->properties); |
| 198 | 198 | switch($nCount) |
| 199 | 199 | { |
| 200 | - case 0: |
|
| 201 | - return true; |
|
| 202 | - case 1: |
|
| 203 | - return isset($this->properties['attr']) || isset($this->properties['class']); |
|
| 204 | - case 2: |
|
| 205 | - return isset($this->properties['attr']) && isset($this->properties['class']); |
|
| 206 | - default: |
|
| 207 | - return false; |
|
| 200 | + case 0: |
|
| 201 | + return true; |
|
| 202 | + case 1: |
|
| 203 | + return isset($this->properties['attr']) || isset($this->properties['class']); |
|
| 204 | + case 2: |
|
| 205 | + return isset($this->properties['attr']) && isset($this->properties['class']); |
|
| 206 | + default: |
|
| 207 | + return false; |
|
| 208 | 208 | } |
| 209 | 209 | } |
| 210 | 210 | |