Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class PHPExcel_Chart_Axis extends PHPExcel_Chart_Properties { private $axisNumber =..

Decoded Output download

<?php
 class PHPExcel_Chart_Axis extends PHPExcel_Chart_Properties { private $axisNumber = array("format" => self::FORMAT_CODE_GENERAL, "source_linked" => 1); private $axisOptions = array("minimum" => null, "maximum" => null, "major_unit" => null, "minor_unit" => null, "orientation" => self::ORIENTATION_NORMAL, "minor_tick_mark" => self::TICK_MARK_NONE, "major_tick_mark" => self::TICK_MARK_NONE, "axis_labels" => self::AXIS_LABELS_NEXT_TO, "horizontal_crosses" => self::HORIZONTAL_CROSSES_AUTOZERO, "horizontal_crosses_value" => null); private $fillProperties = array("type" => self::EXCEL_COLOR_TYPE_ARGB, "value" => null, "alpha" => 0); private $lineProperties = array("type" => self::EXCEL_COLOR_TYPE_ARGB, "value" => null, "alpha" => 0); private $lineStyleProperties = array("width" => "9525", "compound" => self::LINE_STYLE_COMPOUND_SIMPLE, "dash" => self::LINE_STYLE_DASH_SOLID, "cap" => self::LINE_STYLE_CAP_FLAT, "join" => self::LINE_STYLE_JOIN_BEVEL, "arrow" => array("head" => array("type" => self::LINE_STYLE_ARROW_TYPE_NOARROW, "size" => self::LINE_STYLE_ARROW_SIZE_5), "end" => array("type" => self::LINE_STYLE_ARROW_TYPE_NOARROW, "size" => self::LINE_STYLE_ARROW_SIZE_8))); private $shadowProperties = array("presets" => self::SHADOW_PRESETS_NOSHADOW, "effect" => null, "color" => array("type" => self::EXCEL_COLOR_TYPE_STANDARD, "value" => "black", "alpha" => 40), "size" => array("sx" => null, "sy" => null, "kx" => null), "blur" => null, "direction" => null, "distance" => null, "algn" => null, "rotWithShape" => null); private $glowProperties = array("size" => null, "color" => array("type" => self::EXCEL_COLOR_TYPE_STANDARD, "value" => "black", "alpha" => 40)); private $softEdges = array("size" => null); public function setAxisNumberProperties($format_code) { $this->axisNumber["format"] = (string) $format_code; $this->axisNumber["source_linked"] = 0; } public function getAxisNumberFormat() { return $this->axisNumber["format"]; } public function getAxisNumberSourceLinked() { return (string) $this->axisNumber["source_linked"]; } public function setAxisOptionsProperties($axis_labels, $horizontal_crosses_value = null, $horizontal_crosses = null, $axis_orientation = null, $major_tmt = null, $minor_tmt = null, $minimum = null, $maximum = null, $major_unit = null, $minor_unit = null) { $this->axisOptions["axis_labels"] = (string) $axis_labels; $horizontal_crosses_value !== null ? $this->axisOptions["horizontal_crosses_value"] = (string) $horizontal_crosses_value : null; $horizontal_crosses !== null ? $this->axisOptions["horizontal_crosses"] = (string) $horizontal_crosses : null; $axis_orientation !== null ? $this->axisOptions["orientation"] = (string) $axis_orientation : null; $major_tmt !== null ? $this->axisOptions["major_tick_mark"] = (string) $major_tmt : null; $minor_tmt !== null ? $this->axisOptions["minor_tick_mark"] = (string) $minor_tmt : null; $minor_tmt !== null ? $this->axisOptions["minor_tick_mark"] = (string) $minor_tmt : null; $minimum !== null ? $this->axisOptions["minimum"] = (string) $minimum : null; $maximum !== null ? $this->axisOptions["maximum"] = (string) $maximum : null; $major_unit !== null ? $this->axisOptions["major_unit"] = (string) $major_unit : null; $minor_unit !== null ? $this->axisOptions["minor_unit"] = (string) $minor_unit : null; } public function getAxisOptionsProperty($property) { return $this->axisOptions[$property]; } public function setAxisOrientation($orientation) { $this->orientation = (string) $orientation; } public function setFillParameters($color, $alpha = 0, $type = self::EXCEL_COLOR_TYPE_ARGB) { $this->fillProperties = $this->setColorProperties($color, $alpha, $type); } public function setLineParameters($color, $alpha = 0, $type = self::EXCEL_COLOR_TYPE_ARGB) { $this->lineProperties = $this->setColorProperties($color, $alpha, $type); } public function getFillProperty($property) { return $this->fillProperties[$property]; } public function getLineProperty($property) { return $this->lineProperties[$property]; } public function setLineStyleProperties($line_width = null, $compound_type = null, $dash_type = null, $cap_type = null, $join_type = null, $head_arrow_type = null, $head_arrow_size = null, $end_arrow_type = null, $end_arrow_size = null) { !is_null($line_width) ? $this->lineStyleProperties["width"] = $this->getExcelPointsWidth((double) $line_width) : null; !is_null($compound_type) ? $this->lineStyleProperties["compound"] = (string) $compound_type : null; !is_null($dash_type) ? $this->lineStyleProperties["dash"] = (string) $dash_type : null; !is_null($cap_type) ? $this->lineStyleProperties["cap"] = (string) $cap_type : null; !is_null($join_type) ? $this->lineStyleProperties["join"] = (string) $join_type : null; !is_null($head_arrow_type) ? $this->lineStyleProperties["arrow"]["head"]["type"] = (string) $head_arrow_type : null; !is_null($head_arrow_size) ? $this->lineStyleProperties["arrow"]["head"]["size"] = (string) $head_arrow_size : null; !is_null($end_arrow_type) ? $this->lineStyleProperties["arrow"]["end"]["type"] = (string) $end_arrow_type : null; !is_null($end_arrow_size) ? $this->lineStyleProperties["arrow"]["end"]["size"] = (string) $end_arrow_size : null; } public function getLineStyleProperty($elements) { return $this->getArrayElementsValue($this->lineStyleProperties, $elements); } public function getLineStyleArrowWidth($arrow) { return $this->getLineStyleArrowSize($this->lineStyleProperties["arrow"][$arrow]["size"], "w"); } public function getLineStyleArrowLength($arrow) { return $this->getLineStyleArrowSize($this->lineStyleProperties["arrow"][$arrow]["size"], "len"); } public function setShadowProperties($sh_presets, $sh_color_value = null, $sh_color_type = null, $sh_color_alpha = null, $sh_blur = null, $sh_angle = null, $sh_distance = null) { $this->setShadowPresetsProperties((int) $sh_presets)->setShadowColor(is_null($sh_color_value) ? $this->shadowProperties["color"]["value"] : $sh_color_value, is_null($sh_color_alpha) ? (int) $this->shadowProperties["color"]["alpha"] : $sh_color_alpha, is_null($sh_color_type) ? $this->shadowProperties["color"]["type"] : $sh_color_type)->setShadowBlur($sh_blur)->setShadowAngle($sh_angle)->setShadowDistance($sh_distance); } private function setShadowPresetsProperties($shadow_presets) { $this->shadowProperties["presets"] = $shadow_presets; $this->setShadowProperiesMapValues($this->getShadowPresetsMap($shadow_presets)); return $this; } private function setShadowProperiesMapValues(array $properties_map, &$reference = null) { $base_reference = $reference; foreach ($properties_map as $property_key => $property_val) { if (is_array($property_val)) { if ($reference === null) { $reference =& $this->shadowProperties[$property_key]; } else { $reference =& $reference[$property_key]; } $this->setShadowProperiesMapValues($property_val, $reference); } else { if ($base_reference === null) { $this->shadowProperties[$property_key] = $property_val; } else { $reference[$property_key] = $property_val; } } } return $this; } private function setShadowColor($color, $alpha, $type) { $this->shadowProperties["color"] = $this->setColorProperties($color, $alpha, $type); return $this; } private function setShadowBlur($blur) { if ($blur !== null) { $this->shadowProperties["blur"] = (string) $this->getExcelPointsWidth($blur); } return $this; } private function setShadowAngle($angle) { if ($angle !== null) { $this->shadowProperties["direction"] = (string) $this->getExcelPointsAngle($angle); } return $this; } private function setShadowDistance($distance) { if ($distance !== null) { $this->shadowProperties["distance"] = (string) $this->getExcelPointsWidth($distance); } return $this; } public function getShadowProperty($elements) { return $this->getArrayElementsValue($this->shadowProperties, $elements); } public function setGlowProperties($size, $color_value = null, $color_alpha = null, $color_type = null) { $this->setGlowSize($size)->setGlowColor(is_null($color_value) ? $this->glowProperties["color"]["value"] : $color_value, is_null($color_alpha) ? (int) $this->glowProperties["color"]["alpha"] : $color_alpha, is_null($color_type) ? $this->glowProperties["color"]["type"] : $color_type); } public function getGlowProperty($property) { return $this->getArrayElementsValue($this->glowProperties, $property); } private function setGlowSize($size) { if (!is_null($size)) { $this->glowProperties["size"] = $this->getExcelPointsWidth($size); } return $this; } private function setGlowColor($color, $alpha, $type) { $this->glowProperties["color"] = $this->setColorProperties($color, $alpha, $type); return $this; } public function setSoftEdges($size) { if (!is_null($size)) { $softEdges["size"] = (string) $this->getExcelPointsWidth($size); } } public function getSoftEdgesSize() { return $this->softEdges["size"]; } } ?>

Did this file decode correctly?

Original Code

<?php
 class PHPExcel_Chart_Axis extends PHPExcel_Chart_Properties { private $axisNumber = array("\x66\x6f\162\155\x61\x74" => self::FORMAT_CODE_GENERAL, "\163\157\x75\x72\143\x65\137\154\x69\156\153\x65\x64" => 1); private $axisOptions = array("\155\x69\156\151\x6d\165\155" => null, "\155\141\x78\151\x6d\x75\155" => null, "\x6d\141\x6a\x6f\162\137\165\x6e\x69\x74" => null, "\x6d\x69\x6e\x6f\x72\137\x75\x6e\x69\x74" => null, "\x6f\162\151\x65\x6e\x74\x61\x74\x69\x6f\x6e" => self::ORIENTATION_NORMAL, "\155\151\x6e\157\162\137\164\x69\143\153\x5f\155\x61\162\x6b" => self::TICK_MARK_NONE, "\155\141\x6a\157\162\x5f\x74\x69\143\153\137\155\x61\162\153" => self::TICK_MARK_NONE, "\141\170\151\x73\137\154\141\x62\145\154\163" => self::AXIS_LABELS_NEXT_TO, "\x68\157\x72\x69\172\x6f\x6e\x74\x61\x6c\x5f\143\x72\157\x73\163\145\163" => self::HORIZONTAL_CROSSES_AUTOZERO, "\x68\157\162\151\172\157\156\164\141\x6c\137\143\x72\157\x73\x73\145\163\x5f\166\x61\154\165\145" => null); private $fillProperties = array("\x74\171\160\145" => self::EXCEL_COLOR_TYPE_ARGB, "\166\141\x6c\165\x65" => null, "\x61\x6c\x70\150\x61" => 0); private $lineProperties = array("\x74\x79\x70\x65" => self::EXCEL_COLOR_TYPE_ARGB, "\x76\x61\154\165\145" => null, "\x61\154\160\x68\141" => 0); private $lineStyleProperties = array("\167\151\x64\x74\150" => "\x39\x35\x32\x35", "\x63\157\x6d\160\157\x75\156\x64" => self::LINE_STYLE_COMPOUND_SIMPLE, "\144\x61\x73\150" => self::LINE_STYLE_DASH_SOLID, "\x63\141\x70" => self::LINE_STYLE_CAP_FLAT, "\x6a\x6f\x69\156" => self::LINE_STYLE_JOIN_BEVEL, "\x61\x72\x72\x6f\x77" => array("\150\x65\141\144" => array("\x74\x79\160\145" => self::LINE_STYLE_ARROW_TYPE_NOARROW, "\x73\151\x7a\x65" => self::LINE_STYLE_ARROW_SIZE_5), "\145\156\x64" => array("\164\x79\x70\145" => self::LINE_STYLE_ARROW_TYPE_NOARROW, "\163\151\x7a\145" => self::LINE_STYLE_ARROW_SIZE_8))); private $shadowProperties = array("\x70\162\145\x73\x65\164\163" => self::SHADOW_PRESETS_NOSHADOW, "\145\146\146\x65\143\164" => null, "\x63\x6f\154\x6f\162" => array("\164\171\x70\x65" => self::EXCEL_COLOR_TYPE_STANDARD, "\x76\141\154\x75\145" => "\142\x6c\x61\143\x6b", "\x61\x6c\x70\150\141" => 40), "\163\x69\x7a\145" => array("\163\x78" => null, "\x73\171" => null, "\153\170" => null), "\x62\x6c\x75\162" => null, "\x64\151\x72\145\143\x74\x69\x6f\x6e" => null, "\x64\151\x73\164\x61\156\x63\x65" => null, "\141\x6c\147\x6e" => null, "\x72\157\164\x57\x69\x74\x68\123\x68\x61\160\145" => null); private $glowProperties = array("\x73\151\x7a\x65" => null, "\x63\x6f\154\x6f\x72" => array("\164\x79\x70\x65" => self::EXCEL_COLOR_TYPE_STANDARD, "\x76\141\x6c\165\145" => "\142\x6c\x61\x63\153", "\141\x6c\x70\x68\x61" => 40)); private $softEdges = array("\x73\151\x7a\x65" => null); public function setAxisNumberProperties($format_code) { $this->axisNumber["\146\157\162\155\x61\164"] = (string) $format_code; $this->axisNumber["\163\157\x75\162\143\145\x5f\154\151\x6e\x6b\145\144"] = 0; } public function getAxisNumberFormat() { return $this->axisNumber["\146\157\x72\x6d\141\x74"]; } public function getAxisNumberSourceLinked() { return (string) $this->axisNumber["\163\x6f\x75\x72\x63\x65\x5f\x6c\x69\x6e\153\145\144"]; } public function setAxisOptionsProperties($axis_labels, $horizontal_crosses_value = null, $horizontal_crosses = null, $axis_orientation = null, $major_tmt = null, $minor_tmt = null, $minimum = null, $maximum = null, $major_unit = null, $minor_unit = null) { $this->axisOptions["\x61\x78\x69\163\x5f\x6c\x61\142\x65\154\163"] = (string) $axis_labels; $horizontal_crosses_value !== null ? $this->axisOptions["\x68\157\x72\151\172\157\x6e\164\141\x6c\x5f\143\162\x6f\163\x73\145\163\x5f\x76\141\x6c\165\145"] = (string) $horizontal_crosses_value : null; $horizontal_crosses !== null ? $this->axisOptions["\x68\x6f\162\151\x7a\x6f\156\164\x61\x6c\x5f\x63\162\157\x73\163\145\x73"] = (string) $horizontal_crosses : null; $axis_orientation !== null ? $this->axisOptions["\157\x72\151\145\x6e\164\141\x74\x69\x6f\156"] = (string) $axis_orientation : null; $major_tmt !== null ? $this->axisOptions["\155\141\152\157\162\137\x74\x69\143\153\137\155\x61\162\x6b"] = (string) $major_tmt : null; $minor_tmt !== null ? $this->axisOptions["\155\151\156\157\162\137\164\x69\143\153\x5f\x6d\141\x72\x6b"] = (string) $minor_tmt : null; $minor_tmt !== null ? $this->axisOptions["\155\151\x6e\157\x72\137\x74\151\x63\x6b\137\155\x61\162\x6b"] = (string) $minor_tmt : null; $minimum !== null ? $this->axisOptions["\x6d\151\x6e\151\x6d\x75\x6d"] = (string) $minimum : null; $maximum !== null ? $this->axisOptions["\x6d\x61\x78\151\x6d\x75\155"] = (string) $maximum : null; $major_unit !== null ? $this->axisOptions["\x6d\141\152\157\x72\137\165\x6e\x69\x74"] = (string) $major_unit : null; $minor_unit !== null ? $this->axisOptions["\155\151\x6e\157\x72\x5f\x75\x6e\x69\164"] = (string) $minor_unit : null; } public function getAxisOptionsProperty($property) { return $this->axisOptions[$property]; } public function setAxisOrientation($orientation) { $this->orientation = (string) $orientation; } public function setFillParameters($color, $alpha = 0, $type = self::EXCEL_COLOR_TYPE_ARGB) { $this->fillProperties = $this->setColorProperties($color, $alpha, $type); } public function setLineParameters($color, $alpha = 0, $type = self::EXCEL_COLOR_TYPE_ARGB) { $this->lineProperties = $this->setColorProperties($color, $alpha, $type); } public function getFillProperty($property) { return $this->fillProperties[$property]; } public function getLineProperty($property) { return $this->lineProperties[$property]; } public function setLineStyleProperties($line_width = null, $compound_type = null, $dash_type = null, $cap_type = null, $join_type = null, $head_arrow_type = null, $head_arrow_size = null, $end_arrow_type = null, $end_arrow_size = null) { !is_null($line_width) ? $this->lineStyleProperties["\167\x69\x64\164\150"] = $this->getExcelPointsWidth((double) $line_width) : null; !is_null($compound_type) ? $this->lineStyleProperties["\x63\x6f\x6d\x70\157\165\156\x64"] = (string) $compound_type : null; !is_null($dash_type) ? $this->lineStyleProperties["\x64\x61\163\150"] = (string) $dash_type : null; !is_null($cap_type) ? $this->lineStyleProperties["\x63\x61\x70"] = (string) $cap_type : null; !is_null($join_type) ? $this->lineStyleProperties["\152\157\x69\156"] = (string) $join_type : null; !is_null($head_arrow_type) ? $this->lineStyleProperties["\x61\x72\162\x6f\167"]["\150\145\x61\x64"]["\x74\x79\160\145"] = (string) $head_arrow_type : null; !is_null($head_arrow_size) ? $this->lineStyleProperties["\x61\162\x72\157\167"]["\x68\x65\141\x64"]["\163\x69\x7a\145"] = (string) $head_arrow_size : null; !is_null($end_arrow_type) ? $this->lineStyleProperties["\x61\x72\162\x6f\167"]["\x65\x6e\144"]["\164\171\160\x65"] = (string) $end_arrow_type : null; !is_null($end_arrow_size) ? $this->lineStyleProperties["\141\162\x72\157\x77"]["\145\156\x64"]["\x73\x69\172\145"] = (string) $end_arrow_size : null; } public function getLineStyleProperty($elements) { return $this->getArrayElementsValue($this->lineStyleProperties, $elements); } public function getLineStyleArrowWidth($arrow) { return $this->getLineStyleArrowSize($this->lineStyleProperties["\x61\162\x72\157\x77"][$arrow]["\x73\x69\172\x65"], "\x77"); } public function getLineStyleArrowLength($arrow) { return $this->getLineStyleArrowSize($this->lineStyleProperties["\141\162\x72\x6f\167"][$arrow]["\x73\151\x7a\145"], "\154\x65\x6e"); } public function setShadowProperties($sh_presets, $sh_color_value = null, $sh_color_type = null, $sh_color_alpha = null, $sh_blur = null, $sh_angle = null, $sh_distance = null) { $this->setShadowPresetsProperties((int) $sh_presets)->setShadowColor(is_null($sh_color_value) ? $this->shadowProperties["\x63\x6f\x6c\x6f\162"]["\166\x61\x6c\165\145"] : $sh_color_value, is_null($sh_color_alpha) ? (int) $this->shadowProperties["\x63\157\x6c\x6f\162"]["\x61\154\x70\x68\x61"] : $sh_color_alpha, is_null($sh_color_type) ? $this->shadowProperties["\143\157\x6c\x6f\162"]["\164\x79\x70\145"] : $sh_color_type)->setShadowBlur($sh_blur)->setShadowAngle($sh_angle)->setShadowDistance($sh_distance); } private function setShadowPresetsProperties($shadow_presets) { $this->shadowProperties["\160\x72\x65\163\145\164\163"] = $shadow_presets; $this->setShadowProperiesMapValues($this->getShadowPresetsMap($shadow_presets)); return $this; } private function setShadowProperiesMapValues(array $properties_map, &$reference = null) { $base_reference = $reference; foreach ($properties_map as $property_key => $property_val) { if (is_array($property_val)) { if ($reference === null) { $reference =& $this->shadowProperties[$property_key]; } else { $reference =& $reference[$property_key]; } $this->setShadowProperiesMapValues($property_val, $reference); } else { if ($base_reference === null) { $this->shadowProperties[$property_key] = $property_val; } else { $reference[$property_key] = $property_val; } } } return $this; } private function setShadowColor($color, $alpha, $type) { $this->shadowProperties["\143\157\154\157\x72"] = $this->setColorProperties($color, $alpha, $type); return $this; } private function setShadowBlur($blur) { if ($blur !== null) { $this->shadowProperties["\x62\x6c\165\x72"] = (string) $this->getExcelPointsWidth($blur); } return $this; } private function setShadowAngle($angle) { if ($angle !== null) { $this->shadowProperties["\x64\151\162\145\x63\x74\151\x6f\156"] = (string) $this->getExcelPointsAngle($angle); } return $this; } private function setShadowDistance($distance) { if ($distance !== null) { $this->shadowProperties["\144\151\x73\x74\x61\x6e\x63\145"] = (string) $this->getExcelPointsWidth($distance); } return $this; } public function getShadowProperty($elements) { return $this->getArrayElementsValue($this->shadowProperties, $elements); } public function setGlowProperties($size, $color_value = null, $color_alpha = null, $color_type = null) { $this->setGlowSize($size)->setGlowColor(is_null($color_value) ? $this->glowProperties["\x63\157\x6c\x6f\162"]["\x76\141\x6c\x75\145"] : $color_value, is_null($color_alpha) ? (int) $this->glowProperties["\143\x6f\154\x6f\162"]["\141\154\x70\x68\x61"] : $color_alpha, is_null($color_type) ? $this->glowProperties["\143\157\x6c\x6f\162"]["\x74\171\160\x65"] : $color_type); } public function getGlowProperty($property) { return $this->getArrayElementsValue($this->glowProperties, $property); } private function setGlowSize($size) { if (!is_null($size)) { $this->glowProperties["\x73\151\x7a\x65"] = $this->getExcelPointsWidth($size); } return $this; } private function setGlowColor($color, $alpha, $type) { $this->glowProperties["\143\x6f\x6c\x6f\x72"] = $this->setColorProperties($color, $alpha, $type); return $this; } public function setSoftEdges($size) { if (!is_null($size)) { $softEdges["\163\x69\x7a\x65"] = (string) $this->getExcelPointsWidth($size); } } public function getSoftEdgesSize() { return $this->softEdges["\x73\151\172\145"]; } }

Function Calls

None

Variables

None

Stats

MD5 e4d52c8e11cc889bca9d82b54b188997
Eval Count 0
Decode Time 93 ms