Commit 4425c28e authored by Franco Fichtner's avatar Franco Fichtner

src: extend whitespace sweep to root dir files

parent d137b214
...@@ -52,7 +52,7 @@ fi ...@@ -52,7 +52,7 @@ fi
echo "Flush Phalcon volt templates" echo "Flush Phalcon volt templates"
rm -f /usr/local/opnsense/mvc/app/cache/*.php rm -f /usr/local/opnsense/mvc/app/cache/*.php
echo "Execute model migrations" echo "Execute model migrations"
/usr/local/opnsense/mvc/script/run_migrations.php /usr/local/opnsense/mvc/script/run_migrations.php
echo "Reloading GUI configuration" echo "Reloading GUI configuration"
......
...@@ -298,6 +298,8 @@ sweep: force ...@@ -298,6 +298,8 @@ sweep: force
xargs -0 -n1 scripts/cleanfile xargs -0 -n1 scripts/cleanfile
find ${.CURDIR}/scripts -type f -print0 | \ find ${.CURDIR}/scripts -type f -print0 | \
xargs -0 -n1 scripts/cleanfile xargs -0 -n1 scripts/cleanfile
find ${.CURDIR} -type f -depth 1 -print0 | \
xargs -0 -n1 scripts/cleanfile
style: want-pear-PHP_CodeSniffer style: want-pear-PHP_CodeSniffer
@(phpcs --tab-width=4 --standard=PSR2 ${.CURDIR}/src/opnsense/mvc \ @(phpcs --tab-width=4 --standard=PSR2 ${.CURDIR}/src/opnsense/mvc \
......
...@@ -41,7 +41,7 @@ abstract class BaseModelMigration ...@@ -41,7 +41,7 @@ abstract class BaseModelMigration
* Walk through all nodes and check required defaults * Walk through all nodes and check required defaults
* @param $node * @param $node
*/ */
private function checkDefaults($node) private function checkDefaults($node)
{ {
foreach ($node->__items as $key => $subnode) { foreach ($node->__items as $key => $subnode) {
if (count($subnode->__items) > 0) { if (count($subnode->__items) > 0) {
......
...@@ -38,4 +38,4 @@ class M1_0_0 extends BaseModelMigration ...@@ -38,4 +38,4 @@ class M1_0_0 extends BaseModelMigration
$current_value = (string)$model->general->FromEmail; $current_value = (string)$model->general->FromEmail;
$model->general->FromEmail = "100_" . $current_value; $model->general->FromEmail = "100_" . $current_value;
} }
} }
\ No newline at end of file
...@@ -38,4 +38,4 @@ class M1_0_1 extends BaseModelMigration ...@@ -38,4 +38,4 @@ class M1_0_1 extends BaseModelMigration
$current_value = (string)$model->general->FromEmail; $current_value = (string)$model->general->FromEmail;
$model->general->FromEmail = "101_" . $current_value; $model->general->FromEmail = "101_" . $current_value;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment