From 2c8e35ccd464ec2a01f2288f27861ad72719dbf6 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 15 Aug 2016 19:07:01 +0200 Subject: [PATCH] mvc: stype/whitespace sweep --- .../app/models/OPNsense/Base/Constraints/BaseConstraint.php | 2 +- .../models/OPNsense/Base/Constraints/UniqueConstraint.php | 4 +--- src/opnsense/mvc/script/run_migrations.php | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/Constraints/BaseConstraint.php b/src/opnsense/mvc/app/models/OPNsense/Base/Constraints/BaseConstraint.php index 3d426dbc6..98ee466a7 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/Constraints/BaseConstraint.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/Constraints/BaseConstraint.php @@ -50,4 +50,4 @@ abstract class BaseConstraint extends Validator implements ValidatorInterface } $validator->appendMessage(new Message($message, $attribute, $name)); } -} \ No newline at end of file +} diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/Constraints/UniqueConstraint.php b/src/opnsense/mvc/app/models/OPNsense/Base/Constraints/UniqueConstraint.php index 50062f75a..0708a1c22 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/Constraints/UniqueConstraint.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/Constraints/UniqueConstraint.php @@ -28,7 +28,6 @@ */ namespace OPNsense\Base\Constraints; - /** * Class UniqueConstraint, add a unique constraint to this field and optional additional fields. * @package OPNsense\Base\Constraints @@ -88,5 +87,4 @@ class UniqueConstraint extends BaseConstraint } return true; } - -} \ No newline at end of file +} diff --git a/src/opnsense/mvc/script/run_migrations.php b/src/opnsense/mvc/script/run_migrations.php index d6ca425af..f9378a2ad 100755 --- a/src/opnsense/mvc/script/run_migrations.php +++ b/src/opnsense/mvc/script/run_migrations.php @@ -37,10 +37,9 @@ use OPNsense\Core\Config; $class_info = new \ReflectionClass("OPNsense\\Base\\BaseModel"); $executed_migration = false; $model_dir = dirname($class_info->getFileName())."/../../"; -foreach (new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($model_dir)) as $x) -{ +foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($model_dir)) as $x) { if (strtolower(substr($x->getPathname(), -4)) == '.php') { - $classname = str_replace('/','\\', explode('.', str_replace($model_dir, '', $x->getPathname()))[0]) ; + $classname = str_replace('/', '\\', explode('.', str_replace($model_dir, '', $x->getPathname()))[0]) ; try { $mdl_class_info = new \ReflectionClass($classname); $parent = $mdl_class_info->getParentClass();