Skip to content

Commit 4083931

Browse files
committed
Better property and method classifications
1 parent ecea418 commit 4083931

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PHPFUI/InstaDoc/Section/Doc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
260260

261261
$constants = $this->reflection->getConstants();
262262

263-
if ($constants)
263+
if ($constants && 'isStatic' != $accessType)
264264
{
265265
\ksort($constants, SORT_FLAG_CASE | SORT_STRING);
266266
$section = 'Constants';
@@ -269,7 +269,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
269269
{
270270
$constant = new \ReflectionClassConstant($this->class, $name);
271271

272-
if (\method_exists($constant, $accessType) && $constant->{$accessType}())
272+
if ($constant->{$accessType}())
273273
{
274274
if ($section)
275275
{
@@ -292,7 +292,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
292292

293293
foreach ($properties as $property)
294294
{
295-
if (\method_exists($property, $accessType) && $property->{$accessType}())
295+
if ($property->{$accessType}())
296296
{
297297
if ($section)
298298
{
@@ -315,7 +315,7 @@ protected function getContent(string $accessType) : \PHPFUI\Table
315315

316316
foreach ($methods as $method)
317317
{
318-
if (\method_exists($method, $accessType) && $method->{$accessType}())
318+
if ($method->{$accessType}())
319319
{
320320
if ($section)
321321
{

0 commit comments

Comments
 (0)