From 802f5135b0979bab3bf30ae1733f9867e2caed7a Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 17 Apr 2020 19:01:05 +0200 Subject: apply psr12 --- app/class/Summary.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'app/class/Summary.php') diff --git a/app/class/Summary.php b/app/class/Summary.php index b8b17e9..3ee0db0 100644 --- a/app/class/Summary.php +++ b/app/class/Summary.php @@ -40,11 +40,11 @@ class Summary extends Item } - /** - * Generate a Summary based on header ids. Need to use `$this->headerid` before to scan text - * - * @return string html list with anchor link - */ + /** + * Generate a Summary based on header ids. Need to use `$this->headerid` before to scan text + * + * @return string html list with anchor link + */ public function sumparser() { $sumstring = ''; @@ -76,7 +76,7 @@ class Summary extends Item - // __________________________________________________ G E T ____________________________________________________________ + // ________________________________________________ G E T ________________________________________________________ public function fullmatch() @@ -95,7 +95,7 @@ class Summary extends Item } - // __________________________________________________ S E T ____________________________________________________________ + // ________________________________________________ S E T ________________________________________________________ public function setfullmatch(string $fullmatch) @@ -114,7 +114,7 @@ class Summary extends Item public function setmin($min) { $min = intval($min); - if($min >= 1 && $min <= 6) { + if ($min >= 1 && $min <= 6) { $this->min = $min; } } @@ -122,7 +122,7 @@ class Summary extends Item public function setmax($max) { $max = intval($max); - if($max >= 1 && $max <= 6) { + if ($max >= 1 && $max <= 6) { $this->max = $max; } } @@ -134,9 +134,8 @@ class Summary extends Item public function setelement(string $element) { - if(in_array($element, Model::TEXT_ELEMENTS)) { + if (in_array($element, Model::TEXT_ELEMENTS)) { $this->element = $element; } } - } -- cgit v1.2.3