protected function findExpected(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
    {
        $tokens = $phpcsFile->getTokens();
        // Find the last operator in the previous line.
        $prevLineOp = $phpcsFile->findPrevious(
            array(
                T_WHITESPACE, T_CONSTANT_ENCAPSED_STRING
            ),
            $stackPtr - 1,
            null,
            true
        );

        if ($tokens[$prevLineOp]['code'] === T_EQUAL) {
            // Align to the assignment operator.
            return $tokens[$prevLineOp]['column'] - 1;
        } elseif ($tokens[$prevLineOp]['code'] === T_STRING_CONCAT) {
            // Align to the previous line.
            $prev2 = $phpcsFile->findPrevious(T_WHITESPACE, $prevLineOp - 1, null, true);
            if ($tokens[$prev2]['line'] !== $tokens[$prevLineOp]['line']) {
                return $tokens[$prevLineOp]['column'] - 1;
            }
            return $this->findExpected($phpcsFile, $prevLineOp);
        }

        $startOfStmt = $phpcsFile->findStartOfStatement($stackPtr);
        if ($tokens[$startOfStmt]['code'] == T_RETURN) {
            // Align to the return statement with 5 spaces.
            return $tokens[$startOfStmt]['column'] + 4;
        }
        // Align to the start of the statement with 4 spaces.
        return $tokens[$startOfStmt]['column'] + 3;
    }