aboutsummaryrefslogtreecommitdiff
path: root/app/class/Summary.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-17 19:01:05 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-17 19:01:05 +0200
commit802f5135b0979bab3bf30ae1733f9867e2caed7a (patch)
tree3575cb7dd353e7f1ce74b079aa1559b5d69054bf /app/class/Summary.php
parent74e2b3fdd66bfbe99bae771fa3a0b6c427fc0f86 (diff)
downloadwcms-802f5135b0979bab3bf30ae1733f9867e2caed7a.tar.gz
wcms-802f5135b0979bab3bf30ae1733f9867e2caed7a.zip
apply psr12
Diffstat (limited to 'app/class/Summary.php')
-rw-r--r--app/class/Summary.php21
1 files changed, 10 insertions, 11 deletions
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;
}
}
-
}