Passed
Push — main ( d1d6a4...e5b920 )
by Thierry
10:22 queued 02:08
created
src/AnnotationReader.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -139,10 +139,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.