@@ -139,10 +139,12 @@ discard block |
||
| 139 | 139 | $sName = $xAnnotation->getName(); |
| 140 | 140 | $xAnnotation->setPrevValue($aAttributes[$sName] ?? null); |
| 141 | 141 | $xValue = $xAnnotation->getValue(); |
| 142 | - if($sName !== 'protected' || ($xValue)) // Ignore annotation @exclude with value false |
|
| 142 | + if($sName !== 'protected' || ($xValue)) { |
|
| 143 | + // Ignore annotation @exclude with value false |
|
| 143 | 144 | { |
| 144 | 145 | $aAttributes[$sName] = $xValue; |
| 145 | 146 | } |
| 147 | + } |
|
| 146 | 148 | } |
| 147 | 149 | return $aAttributes; |
| 148 | 150 | } |
@@ -238,15 +240,13 @@ discard block |
||
| 238 | 240 | if(isset($aMethodAttrs['protected'])) |
| 239 | 241 | { |
| 240 | 242 | $aProtected[] = $sMethod; // The method is not to be exported. |
| 241 | - } |
|
| 242 | - elseif(count($aMethodAttrs) > 0) |
|
| 243 | + } elseif(count($aMethodAttrs) > 0) |
|
| 243 | 244 | { |
| 244 | 245 | $aAttributes[$sMethod] = $aMethodAttrs; |
| 245 | 246 | } |
| 246 | 247 | } |
| 247 | 248 | return [false, $aAttributes, $aProtected]; |
| 248 | - } |
|
| 249 | - catch(AnnotationException $e) |
|
| 249 | + } catch(AnnotationException $e) |
|
| 250 | 250 | { |
| 251 | 251 | throw new SetupException($e->getMessage()); |
| 252 | 252 | } |