Skip to content

Commit

Permalink
Fix misspelling of getFilename function
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Aug 11, 2019
1 parent a740354 commit b2c1546
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function register()
*/
public function process(File $phpcsFile, $stackPtr)
{
$path = $phpcsFile->getFileName();
$path = $phpcsFile->getFilename();
$properties = $this->getProperties($path);
if ($properties === null) {
// Not under version control.
Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Squiz/Sniffs/Files/FileExtensionSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function register()
public function process(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
$fileName = $phpcsFile->getFileName();
$fileName = $phpcsFile->getFilename();
$extension = substr($fileName, strrpos($fileName, '.'));
$nextClass = $phpcsFile->findNext([T_CLASS, T_INTERFACE, T_TRAIT], $stackPtr);

Expand Down

0 comments on commit b2c1546

Please sign in to comment.