Automatic pass to convert with php-cs-fixer

This commit is contained in:
2023-04-13 21:33:52 +02:00
parent 63b150a493
commit 0111c96f1d
105 changed files with 10478 additions and 8273 deletions

View File

@@ -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",