public function row($y, array $options = []) {
        $row = isset($this->chars[$y]) ? $this->chars[$y] : [];

        if (!isset($options['min_x']) || !isset($options['max_x'])) {
            if (!($keys = array_keys($row))) {
                return '';
            }
        }

        $min = isset($options['min_x']) ? $options['min_x'] : min($keys);
        $max = isset($options['max_x']) ? $options['max_x'] : max($keys);

        return array_reduce(range($min, $max), function ($carry, $item) use ($row) {
            return $carry .= $this->toBraille(isset($row[$item]) ? $row[$item] : 0);
        }, '');
    }
public function row($y, array $options = []) {
        $row = isset($this->chars[$y]) ? $this->chars[$y] : [];

        if (!isset($options['min_x']) || !isset($options['max_x'])) {
            if (!($keys = array_keys($row))) {
                return '';
            }
        }

        $min = isset($options['min_x']) ? $options['min_x'] : min($keys);
        $max = isset($options['max_x']) ? $options['max_x'] : max($keys);

        return array_reduce(range($min, $max), function ($carry, $item) use ($row) {
            return $carry .= $this->toBraille(isset($row[$item]) ? $row[$item] : 0);
        }, '');
    }
public function row ( $ y , array $ options = [ ] ) { $ row = isset ( $ this -> chars [ $ y ] ) ? $ this -> chars [ $ y ] : [ ] ; if ( ! isset ( $ options [ 'min_x' ] ) || ! isset ( $ options [ 'max_x' ] ) ) { if ( ! ( $ keys = array_keys ( $ row ) ) ) { return '' ; } } $ min = isset ( $ options [ 'min_x' ] ) ? $ options [ 'min_x' ] : min ( $ keys ) ; $ max = isset ( $ options [ 'max_x' ] ) ? $ options [ 'max_x' ] : max ( $ keys ) ; return array_reduce ( range ( $ min , $ max ) , function ( $ carry , $ item ) use ( $ row ) { return $ carry .= $ this -> toBraille ( isset ( $ row [ $ item ] ) ? $ row [ $ item ] : 0 ) ; } , '' ) ; }
Gets a line

@param integer $y     y position
@param array $options options

@return string line
Gets a line