GH-455 Fix case-sensitivity issue with PHPExcel_Chart_GridLines

This commit is contained in:
MarkBaker 2014-11-26 22:53:55 +00:00
parent 9940b262c4
commit 2be1bb0c2e
3 changed files with 19 additions and 19 deletions

View File

@ -115,14 +115,14 @@ class PHPExcel_Chart
/** /**
* Chart Major Gridlines as * Chart Major Gridlines as
* *
* @var PHPExcel_Chart_Gridlines * @var PHPExcel_Chart_GridLines
*/ */
private $_majorGridlines = null; private $_majorGridlines = null;
/** /**
* Chart Minor Gridlines as * Chart Minor Gridlines as
* *
* @var PHPExcel_Chart_Gridlines * @var PHPExcel_Chart_GridLines
*/ */
private $_minorGridlines = null; private $_minorGridlines = null;
@ -177,7 +177,7 @@ class PHPExcel_Chart
/** /**
* Create a new PHPExcel_Chart * Create a new PHPExcel_Chart
*/ */
public function __construct($name, PHPExcel_Chart_Title $title = null, PHPExcel_Chart_Legend $legend = null, PHPExcel_Chart_PlotArea $plotArea = null, $plotVisibleOnly = true, $displayBlanksAs = '0', PHPExcel_Chart_Title $xAxisLabel = null, PHPExcel_Chart_Title $yAxisLabel = null, PHPExcel_Chart_Axis $xAxis = null, PHPExcel_Chart_Axis $yAxis = null, PHPExcel_Chart_Gridlines $majorGridlines = null, PHPExcel_Chart_Gridlines $minorGridlines = null) public function __construct($name, PHPExcel_Chart_Title $title = null, PHPExcel_Chart_Legend $legend = null, PHPExcel_Chart_PlotArea $plotArea = null, $plotVisibleOnly = true, $displayBlanksAs = '0', PHPExcel_Chart_Title $xAxisLabel = null, PHPExcel_Chart_Title $yAxisLabel = null, PHPExcel_Chart_Axis $xAxis = null, PHPExcel_Chart_Axis $yAxis = null, PHPExcel_Chart_GridLines $majorGridlines = null, PHPExcel_Chart_GridLines $minorGridlines = null)
{ {
$this->_name = $name; $this->_name = $name;
$this->_title = $title; $this->_title = $title;
@ -387,27 +387,27 @@ class PHPExcel_Chart
/** /**
* Get Major Gridlines * Get Major Gridlines
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
public function getMajorGridlines() { public function getMajorGridlines() {
if($this->_majorGridlines !== NULL){ if($this->_majorGridlines !== NULL){
return $this->_majorGridlines; return $this->_majorGridlines;
} }
return new PHPExcel_Chart_Gridlines(); return new PHPExcel_Chart_GridLines();
} }
/** /**
* Get Minor Gridlines * Get Minor Gridlines
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
public function getMinorGridlines() { public function getMinorGridlines() {
if($this->_minorGridlines !== NULL){ if($this->_minorGridlines !== NULL){
return $this->_minorGridlines; return $this->_minorGridlines;
} }
return new PHPExcel_Chart_Gridlines(); return new PHPExcel_Chart_GridLines();
} }

View File

@ -7,7 +7,7 @@ require_once 'Properties.php';
* Time: 2:36 PM * Time: 2:36 PM
*/ */
class PHPExcel_Chart_Gridlines extends class PHPExcel_Chart_GridLines extends
PHPExcel_Properties { PHPExcel_Properties {
/** /**
@ -90,7 +90,7 @@ class PHPExcel_Chart_Gridlines extends
/** /**
* Change Object State to True * Change Object State to True
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _activateObject() { private function _activateObject() {
@ -229,7 +229,7 @@ class PHPExcel_Chart_Gridlines extends
* *
* @param float $size * @param float $size
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _setGlowSize($size) { private function _setGlowSize($size) {
@ -245,7 +245,7 @@ class PHPExcel_Chart_Gridlines extends
* @param int $alpha * @param int $alpha
* @param string $type * @param string $type
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _setGlowColor($color, $alpha, $type) { private function _setGlowColor($color, $alpha, $type) {
@ -307,7 +307,7 @@ class PHPExcel_Chart_Gridlines extends
* *
* @param int $shadow_presets * @param int $shadow_presets
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _setShadowPresetsProperties($shadow_presets) { private function _setShadowPresetsProperties($shadow_presets) {
@ -323,7 +323,7 @@ class PHPExcel_Chart_Gridlines extends
* @param array $properties_map * @param array $properties_map
* @param * $reference * @param * $reference
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _setShadowProperiesMapValues(array $properties_map, &$reference = NULL) { private function _setShadowProperiesMapValues(array $properties_map, &$reference = NULL) {
@ -355,7 +355,7 @@ class PHPExcel_Chart_Gridlines extends
* @param int $alpha * @param int $alpha
* @param string $type * @param string $type
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _setShadowColor($color, $alpha, $type) { private function _setShadowColor($color, $alpha, $type) {
@ -377,7 +377,7 @@ class PHPExcel_Chart_Gridlines extends
* *
* @param float $blur * @param float $blur
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _setShadowBlur($blur) { private function _setShadowBlur($blur) {
@ -393,7 +393,7 @@ class PHPExcel_Chart_Gridlines extends
* *
* @param int $angle * @param int $angle
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _setShadowAngle($angle) { private function _setShadowAngle($angle) {
@ -409,7 +409,7 @@ class PHPExcel_Chart_Gridlines extends
* *
* @param float $distance * @param float $distance
* *
* @return PHPExcel_Chart_Gridlines * @return PHPExcel_Chart_GridLines
*/ */
private function _setShadowDistance($distance) { private function _setShadowDistance($distance) {

View File

@ -239,8 +239,8 @@ class PHPExcel_Writer_Excel2007_Chart extends
PHPExcel_Worksheet $pSheet, PHPExcel_Worksheet $pSheet,
PHPExcel_Chart_Axis $xAxis, PHPExcel_Chart_Axis $xAxis,
PHPExcel_Chart_Axis $yAxis, PHPExcel_Chart_Axis $yAxis,
PHPExcel_Chart_Gridlines $majorGridlines, PHPExcel_Chart_GridLines $majorGridlines,
PHPExcel_Chart_Gridlines $minorGridlines PHPExcel_Chart_GridLines $minorGridlines
) { ) {
if (is_null($plotArea)) { if (is_null($plotArea)) {
return; return;