Skip to content

Commit

Permalink
added support for more fallsy functions: gethostname and getimagesize
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharhamel committed Jun 25, 2019
1 parent 8e8d99e commit ed4fc9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generator/src/DocPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ public function detectFalsyFunction(): bool
if (preg_match('/Upon\s+failure,?\s+\<function\>[\w_]{1,15}?\<\/function\>\s+returns\s+&false;/m', $file)) {
return true;
}
if (preg_match('/On\s+failure,\s+&false;\s+is\s+returned/m', $file)) {
return true;
}
if (preg_match('/on\s+success,\s+otherwise\s+&false;\s+is\s+returned/m', $file)) {
return true;
}

return false;
}
Expand Down

0 comments on commit ed4fc9f

Please sign in to comment.