getTokens(); $property_adjusted = false; // Check for `::class` and don't ignore new lines in that case. if ( true === $this->ignoreNewlines && \T_DOUBLE_COLON === $tokens[ $stackPtr ]['code'] ) { $next_non_empty = $phpcsFile->findNext( Tokens::$emptyTokens, ( $stackPtr + 1 ), null, true ); if ( \T_STRING === $tokens[ $next_non_empty ]['code'] && 'class' === strtolower( $tokens[ $next_non_empty ]['content'] ) ) { $property_adjusted = true; $this->ignoreNewlines = false; } } $return = parent::process( $phpcsFile, $stackPtr ); if ( true === $property_adjusted ) { $this->ignoreNewlines = true; } return $return; } }