diff vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php	Thu May 09 15:33:08 2019 +0100
@@ -64,7 +64,7 @@
 
 
     /**
-     * Processes the token in the specified PHP_CodeSniffer_File.
+     * Processes the token in the specified PHP_CodeSniffer\Files\File.
      *
      * @param \PHP_CodeSniffer\Files\File $phpcsFile The PHP_CodeSniffer file where this
      *                                               token was found.
@@ -92,7 +92,7 @@
             return;
         }
 
-        // If this token is inside nested inside a function at a deeper
+        // If this token is nested inside a function at a deeper
         // level than the current OO scope that was found, it's a normal
         // variable and not a member var.
         $conditions = array_reverse($tokens[$stackPtr]['conditions'], true);
@@ -119,7 +119,7 @@
         if ($inFunction === false && isset($tokens[$stackPtr]['nested_parenthesis']) === true) {
             foreach ($tokens[$stackPtr]['nested_parenthesis'] as $opener => $closer) {
                 if (isset($tokens[$opener]['parenthesis_owner']) === false) {
-                    // Check if this is a USE statement in a closure.
+                    // Check if this is a USE statement for a closure.
                     $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($opener - 1), null, true);
                     if ($tokens[$prev]['code'] === T_USE) {
                         $inFunction = true;