From 385b3f4adf86606e03941171c136d8f2eb2b35c2 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 24 Apr 2020 16:36:12 +0200 Subject: fix: most of PHPStan errors --- app/class/Colors.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/class/Colors.php') diff --git a/app/class/Colors.php b/app/class/Colors.php index 234adb2..ffa56b6 100644 --- a/app/class/Colors.php +++ b/app/class/Colors.php @@ -5,7 +5,7 @@ namespace Wcms; class Colors extends Item { - protected $file = MODEL::CSS_DIR . 'tagcolors.css'; + protected $file = Model::CSS_DIR . 'tagcolors.css'; protected $rawcss = ""; @@ -27,7 +27,7 @@ class Colors extends Item public function readcssfile(): bool { - if (MODEL::dircheck(MODEL::CSS_DIR) && file_exists($this->file)) { + if (Model::dircheck(Model::CSS_DIR) && file_exists($this->file)) { $this->rawcss = file_get_contents($this->file); return true; } else { @@ -53,7 +53,7 @@ class Colors extends Item /** * Transform a CSS string in a array of `tag => background-color` * - * @return array Ouput array using TAG as key and Hex Color as value + * @return bool Ouput array using TAG as key and Hex Color as value */ public function parsetagcss() { @@ -79,7 +79,7 @@ class Colors extends Item public function writecssfile() { - if (MODEL::dircheck(MODEL::CSS_DIR)) { + if (Model::dircheck(Model::CSS_DIR)) { return file_put_contents($this->file, $this->rawcss); } } @@ -90,7 +90,7 @@ class Colors extends Item foreach ($this->tagcolor as $tag => $color) { $i = ''; $l = ''; - $html .= '\n
  • ' . $i . $l . '
  • '; + $html .= "\n
  • " . $i . $l . '
  • '; } $html .= PHP_EOL . ''; return $html; -- cgit v1.2.3