lib/IgraalOSL/StatsTable/Dumper/Excel/ExcelDumper.php
protected function getDefaultStyleArrayForRow($row)
    {
        $style = $this->getDefaultStyleForFilledCells();

        if ($this->getOption(self::OPTION_ZEBRA)) {
            if (($row % 2) == 0) {
                $bgColor = $this->getOption(self::OPTION_ZEBRA_COLOR_EVEN);
            } else {
                $bgColor = $this->getOption(self::OPTION_ZEBRA_COLOR_ODD);
            }

            if ($bgColor) {
                $style['fill'] = [
                    'fillType' => Fill::FILL_SOLID,
                    'color' => ['argb' => $bgColor],
                ];
            }
        }

        return $style;
    }
protected function getDefaultStyleArrayForRow($row)
    {
        $style = $this->getDefaultStyleForFilledCells();

        if ($this->getOption(self::OPTION_ZEBRA)) {
            if (($row % 2) == 0) {
                $bgColor = $this->getOption(self::OPTION_ZEBRA_COLOR_EVEN);
            } else {
                $bgColor = $this->getOption(self::OPTION_ZEBRA_COLOR_ODD);
            }

            if ($bgColor) {
                $style['fill'] = [
                    'fillType' => Fill::FILL_SOLID,
                    'color' => ['argb' => $bgColor],
                ];
            }
        }

        return $style;
    }
protected function getDefaultStyleArrayForRow ( $ row ) { $ style = $ this -> getDefaultStyleForFilledCells ( ) ; if ( $ this -> getOption ( self :: OPTION_ZEBRA ) ) { if ( ( $ row % 2 ) == 0 ) { $ bgColor = $ this -> getOption ( self :: OPTION_ZEBRA_COLOR_EVEN ) ; } else { $ bgColor = $ this -> getOption ( self :: OPTION_ZEBRA_COLOR_ODD ) ; } if ( $ bgColor ) { $ style [ 'fill' ] = [ 'fillType' => Fill :: FILL_SOLID , 'color' => [ 'argb' => $ bgColor ] , ] ; } } return $ style ; }
Get default style for a given row
@param  integer $row
@return array
Get default style for a given row