Automatic pass to convert with php-cs-fixer
This commit is contained in:
@@ -1,34 +1,38 @@
|
||||
<?php
|
||||
|
||||
/** DomFramework
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
/**
|
||||
* DomFramework
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
|
||||
namespace Domframework;
|
||||
|
||||
/** The graphPalette class */
|
||||
/**
|
||||
* The graphPalette class
|
||||
*/
|
||||
class GraphPalette
|
||||
{
|
||||
/** Get the complete palette
|
||||
* @param string $name The palette name to get
|
||||
*/
|
||||
/**
|
||||
* Get the complete palette
|
||||
* @param string $name The palette name to get
|
||||
*/
|
||||
public static function getPalette($name)
|
||||
{
|
||||
$palette = array(
|
||||
"basic" => array(
|
||||
array("bgcolor" => "indianred", "color" => "firebrick"),
|
||||
array("bgcolor" => "lightblue", "color" => "blue"),
|
||||
array("bgcolor" => "peru", "color" => "maroon"),
|
||||
array("bgcolor" => "mediumaquamarine", "color" => "teal"),
|
||||
array("bgcolor" => "orange", "color" => "goldenrod"),
|
||||
array("bgcolor" => "limegreen", "color" => "green"),
|
||||
array("bgcolor" => "darkgrey", "color" => "grey"),
|
||||
array("bgcolor" => "darkyellow1", "color" => "darkyellow2"),
|
||||
array("bgcolor" => "grey", "color" => "black"),
|
||||
),
|
||||
);
|
||||
$palette = [
|
||||
"basic" => [
|
||||
["bgcolor" => "indianred", "color" => "firebrick"],
|
||||
["bgcolor" => "lightblue", "color" => "blue"],
|
||||
["bgcolor" => "peru", "color" => "maroon"],
|
||||
["bgcolor" => "mediumaquamarine", "color" => "teal"],
|
||||
["bgcolor" => "orange", "color" => "goldenrod"],
|
||||
["bgcolor" => "limegreen", "color" => "green"],
|
||||
["bgcolor" => "darkgrey", "color" => "grey"],
|
||||
["bgcolor" => "darkyellow1", "color" => "darkyellow2"],
|
||||
["bgcolor" => "grey", "color" => "black"],
|
||||
],
|
||||
];
|
||||
if (! is_string($name) || ! array_key_exists($name, $palette)) {
|
||||
throw new \Exception(dgettext(
|
||||
"domframework",
|
||||
|
||||
Reference in New Issue
Block a user