aboutsummaryrefslogtreecommitdiff
path: root/lib/models/HelpTourStep.class.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2023-05-08 17:08:52 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2023-05-08 17:08:52 +0200
commita1fda2758e9c241ac3eb980ac8716dfedbe9dd3c (patch)
tree2190f0478fb153efdb8ba48ebb574c7691f4f351 /lib/models/HelpTourStep.class.php
parent244d00ed91ad2b4b83e902a45cd6def3d7bc7e86 (diff)
let phpcsfixer fix errors according to @PSR12 rules on lib/modelsphpcsfixer
Diffstat (limited to 'lib/models/HelpTourStep.class.php')
-rw-r--r--lib/models/HelpTourStep.class.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/models/HelpTourStep.class.php b/lib/models/HelpTourStep.class.php
index d2ce1dc..6c3c572 100644
--- a/lib/models/HelpTourStep.class.php
+++ b/lib/models/HelpTourStep.class.php
@@ -1,4 +1,5 @@
<?php
+
// +---------------------------------------------------------------------------+
// This file is part of Stud.IP
//
@@ -88,9 +89,11 @@ class HelpTourStep extends SimpleORMap
* @todo Das Model sollte nix über PageLayout wissen, das sollte anders raus transportiert werden
* @return boolean true or false
*/
- public function validate() {
- if (!$this->orientation)
+ public function validate()
+ {
+ if (!$this->orientation) {
$this->orientation = 'B';
+ }
if (!$this->title && !$this->tip) {
PageLayout::postMessage(MessageBox::error(_('Der Schritt muss einen Titel oder Inhalt besitzen.')));
return false;
@@ -102,4 +105,3 @@ class HelpTourStep extends SimpleORMap
return true;
}
}
-