src/Standards/BestIt/Sniffs/Formatting/AlphabeticallySortedUsesSniff.php
private function compareUseStatements(UseStatement $prevStatement, UseStatement $nextStatement): int
    {
        $callbacks = [
            'compareUseStatementsByType',
            'compareUseStatementsByContent',
            // This will return something in any case!
            'compareUseStatementsByNamespaceCount'
        ];

        foreach ($callbacks as $callback) {
            $compared = $this->$callback($prevStatement, $nextStatement);

            if ($compared !== null) {
                return $compared;
            }
        }
    }
private function compareUseStatements(UseStatement $prevStatement, UseStatement $nextStatement): int
    {
        $callbacks = [
            'compareUseStatementsByType',
            'compareUseStatementsByContent',
            // This will return something in any case!
            'compareUseStatementsByNamespaceCount'
        ];

        foreach ($callbacks as $callback) {
            $compared = $this->$callback($prevStatement, $nextStatement);

            if ($compared !== null) {
                return $compared;
            }
        }
    }
private function compareUseStatements ( UseStatement $ prevStatement , UseStatement $ nextStatement ) : int { $ callbacks = [ 'compareUseStatementsByType' , 'compareUseStatementsByContent' , // This will return something in any case! 'compareUseStatementsByNamespaceCount' ] ; foreach ( $ callbacks as $ callback ) { $ compared = $ this -> $ callback ( $ prevStatement , $ nextStatement ) ; if ( $ compared !== null ) { return $ compared ; } } }
Will removing a compare marker for the given use statements.

@param UseStatement $prevStatement
@param UseStatement $nextStatement

@return int 1 <=> -1 To move statements in a direction.
Will removing a compare marker for the given use statements .