src/Rocketeer/Binaries/AbstractBinary.php
protected function sanitizeFlags(array $flags)
    {
        $flags = (array) $flags;

        // Flip array if necessary
        $firstKey = Arr::get(array_keys($flags), 0);
        if ($firstKey !== null && is_int($firstKey)) {
            $flags = array_combine(
                array_values($flags),
                array_fill(0, count($flags), null)
            );
        }

        return $flags;
    }
protected function sanitizeFlags(array $flags)
    {
        $flags = (array) $flags;

        // Flip array if necessary
        $firstKey = Arr::get(array_keys($flags), 0);
        if ($firstKey !== null && is_int($firstKey)) {
            $flags = array_combine(
                array_values($flags),
                array_fill(0, count($flags), null)
            );
        }

        return $flags;
    }
protected function sanitizeFlags ( array $ flags ) { $ flags = ( array ) $ flags ; // Flip array if necessary $ firstKey = Arr :: get ( array_keys ( $ flags ) , 0 ) ; if ( $ firstKey !== null && is_int ( $ firstKey ) ) { $ flags = array_combine ( array_values ( $ flags ) , array_fill ( 0 , count ( $ flags ) , null ) ) ; } return $ flags ; }
Sanitize a flags array.

@param array $flags

@return array
Sanitize a flags array .