original_string: private function getClassMethods(File $phpcsFile, $stackPtr)
      {
          $pointer = $stackPtr;
          $methods = [];
  
          while (($next = $phpcsFile->findNext(T_FUNCTION, $pointer + 1)) !== false) {
              $modifier = $this->getModifier($phpcsFile, $next);
              if ($this->isPublic($modifier) && !$this->isMagicFunction($phpcsFile->getDeclarationName($next))) {
                  $methods[] = $next;
              }
  
              $pointer = $next;
          }
  
          return $methods;
      }
code: private function getClassMethods(File $phpcsFile, $stackPtr)
      {
          $pointer = $stackPtr;
          $methods = [];
  
          while (($next = $phpcsFile->findNext(T_FUNCTION, $pointer + 1)) !== false) {
              $modifier = $this->getModifier($phpcsFile, $next);
              if ($this->isPublic($modifier) && !$this->isMagicFunction($phpcsFile->getDeclarationName($next))) {
                  $methods[] = $next;
              }
  
              $pointer = $next;
          }
  
          return $methods;
      }
code_tokens: private function getClassMethods ( File $ phpcsFile , $ stackPtr ) { $ pointer = $ stackPtr ; $ methods = [ ] ; while ( ( $ next = $ phpcsFile -> findNext ( T_FUNCTION , $ pointer + 1 ) ) !== false ) { $ modifier = $ this -> getModifier ( $ phpcsFile , $ next ) ; if ( $ this -> isPublic ( $ modifier ) && ! $ this -> isMagicFunction ( $ phpcsFile -> getDeclarationName ( $ next ) ) ) { $ methods [ ] = $ next ; } $ pointer = $ next ; } return $ methods ; }
docstring: Retrieve the list of class methods' pointers.
  
  @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned
  @param int $stackPtr The position of the current token in the stack passed in $tokens.
  @return array
  @throws \PHP_CodeSniffer\Exceptions\RuntimeException
  @throws \PHP_CodeSniffer\Exceptions\TokenizerException
docstring_tokens: Retrieve the list of class methods pointers .