src/RecordProcessor/Helpers/Excel/CellWriter.php
protected function setColorStyle( $styleType, $color, $type = false, $colorType = 'rgb' )
    {
        // Set the styles
        $styles = is_array( $color )
            ? $color
            : [
                'type'  => $type,
                'color' => [ $colorType => str_replace( '#', '', $color ) ],
            ];

        return $this->setStyle( $styleType, $styles );
    }
protected function setColorStyle( $styleType, $color, $type = false, $colorType = 'rgb' )
    {
        // Set the styles
        $styles = is_array( $color )
            ? $color
            : [
                'type'  => $type,
                'color' => [ $colorType => str_replace( '#', '', $color ) ],
            ];

        return $this->setStyle( $styleType, $styles );
    }
protected function setColorStyle ( $ styleType , $ color , $ type = false , $ colorType = 'rgb' ) { // Set the styles $ styles = is_array ( $ color ) ? $ color : [ 'type' => $ type , 'color' => [ $ colorType => str_replace ( '#' , '' , $ color ) ] , ] ; return $ this -> setStyle ( $ styleType , $ styles ) ; }
Set the color style

@param         $styleType
@param string  $color
@param boolean $type
@param string  $colorType

@return  CellWriter
@throws \PhpOffice\PhpSpreadsheet\Exception
Set the color style