original_string: private function setSparklineColors($sparkline) {
          $colors = Common::getRequestVar('colors', false, 'json');
  
          if (empty($colors)) { // quick fix so row evolution sparklines will have color in widgetize's iframes
              $colors = array(
                  'backgroundColor' => '#ffffff',
                  'lineColor' => '#162C4A',
                  'minPointColor' => '#ff7f7f',
                  'maxPointColor' => '#75BF7C',
                  'lastPointColor' => '#55AAFF',
                  'fillColor' => '#ffffff'
              );
          }
  
          if (strtolower($colors['backgroundColor']) !== '#ffffff') {
              $sparkline->setBackgroundColorHex($colors['backgroundColor']);
          } else {
              $sparkline->deactivateBackgroundColor();
          }
          $sparkline->setLineColorHex($colors['lineColor']);
          if (strtolower($colors['fillColor'] !== "#ffffff")) {
              $sparkline->setFillColorHex($colors['fillColor']);
          } else {
              $sparkline->deactivateFillColor();
          }
          if (strtolower($colors['minPointColor'] !== "#ffffff")) {
              $sparkline->addPoint("minimum", 5, $colors['minPointColor']);
          }
          if (strtolower($colors['maxPointColor'] !== "#ffffff")) {
              $sparkline->addPoint("maximum", 5, $colors['maxPointColor']);
          }
          if (strtolower($colors['lastPointColor'] !== "#ffffff")) {
              $sparkline->addPoint("last", 5, $colors['lastPointColor']);
          }
      }
code: private function setSparklineColors($sparkline) {
          $colors = Common::getRequestVar('colors', false, 'json');
  
          if (empty($colors)) { // quick fix so row evolution sparklines will have color in widgetize's iframes
              $colors = array(
                  'backgroundColor' => '#ffffff',
                  'lineColor' => '#162C4A',
                  'minPointColor' => '#ff7f7f',
                  'maxPointColor' => '#75BF7C',
                  'lastPointColor' => '#55AAFF',
                  'fillColor' => '#ffffff'
              );
          }
  
          if (strtolower($colors['backgroundColor']) !== '#ffffff') {
              $sparkline->setBackgroundColorHex($colors['backgroundColor']);
          } else {
              $sparkline->deactivateBackgroundColor();
          }
          $sparkline->setLineColorHex($colors['lineColor']);
          if (strtolower($colors['fillColor'] !== "#ffffff")) {
              $sparkline->setFillColorHex($colors['fillColor']);
          } else {
              $sparkline->deactivateFillColor();
          }
          if (strtolower($colors['minPointColor'] !== "#ffffff")) {
              $sparkline->addPoint("minimum", 5, $colors['minPointColor']);
          }
          if (strtolower($colors['maxPointColor'] !== "#ffffff")) {
              $sparkline->addPoint("maximum", 5, $colors['maxPointColor']);
          }
          if (strtolower($colors['lastPointColor'] !== "#ffffff")) {
              $sparkline->addPoint("last", 5, $colors['lastPointColor']);
          }
      }
code_tokens: private function setSparklineColors ( $ sparkline ) { $ colors = Common :: getRequestVar ( 'colors' , false , 'json' ) ; if ( empty ( $ colors ) ) { // quick fix so row evolution sparklines will have color in widgetize's iframes $ colors = array ( 'backgroundColor' => '#ffffff' , 'lineColor' => '#162C4A' , 'minPointColor' => '#ff7f7f' , 'maxPointColor' => '#75BF7C' , 'lastPointColor' => '#55AAFF' , 'fillColor' => '#ffffff' ) ; } if ( strtolower ( $ colors [ 'backgroundColor' ] ) !== '#ffffff' ) { $ sparkline -> setBackgroundColorHex ( $ colors [ 'backgroundColor' ] ) ; } else { $ sparkline -> deactivateBackgroundColor ( ) ; } $ sparkline -> setLineColorHex ( $ colors [ 'lineColor' ] ) ; if ( strtolower ( $ colors [ 'fillColor' ] !== "#ffffff" ) ) { $ sparkline -> setFillColorHex ( $ colors [ 'fillColor' ] ) ; } else { $ sparkline -> deactivateFillColor ( ) ; } if ( strtolower ( $ colors [ 'minPointColor' ] !== "#ffffff" ) ) { $ sparkline -> addPoint ( "minimum" , 5 , $ colors [ 'minPointColor' ] ) ; } if ( strtolower ( $ colors [ 'maxPointColor' ] !== "#ffffff" ) ) { $ sparkline -> addPoint ( "maximum" , 5 , $ colors [ 'maxPointColor' ] ) ; } if ( strtolower ( $ colors [ 'lastPointColor' ] !== "#ffffff" ) ) { $ sparkline -> addPoint ( "last" , 5 , $ colors [ 'lastPointColor' ] ) ; } }
docstring: Sets the sparkline colors
  
  @param \Davaxi\Sparkline $sparkline
docstring_tokens: Sets the sparkline colors