Skip to content

Commit

Permalink
Merge branch 'feature/2027-pear-validfunctionname-fix-uninitialized-o…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Jun 1, 2018
2 parents a73f45c + a285842 commit 46fc938
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ protected function processTokenOutsideScope(File $phpcsFile, $stackPtr)
if ($packagePart !== '') {
// Check that each new word starts with a capital.
$nameBits = explode('_', $packagePart);
$nameBits = array_filter($nameBits);
foreach ($nameBits as $bit) {
if ($bit{0} !== strtoupper($bit{0})) {
$newPackagePart = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,5 @@ $a new class {
function __myFunction() {}
function __my_function() {}
}

function send_system_email__to_user($body, $recipient){}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function getErrorList()
227 => 1,
229 => 1,
230 => 2,
233 => 2,
];

}//end getErrorList()
Expand Down

0 comments on commit 46fc938

Please sign in to comment.