src: extend whitespace sweep to root dir files

This commit is contained in:
Franco Fichtner 2016-08-13 12:50:58 +02:00
parent d137b214ad
commit 4425c28ea0
5 changed files with 6 additions and 4 deletions

View File

@ -52,7 +52,7 @@ fi
echo "Flush Phalcon volt templates"
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
echo "Reloading GUI configuration"

View File

@ -298,6 +298,8 @@ sweep: force
xargs -0 -n1 scripts/cleanfile
find ${.CURDIR}/scripts -type f -print0 | \
xargs -0 -n1 scripts/cleanfile
find ${.CURDIR} -type f -depth 1 -print0 | \
xargs -0 -n1 scripts/cleanfile
style: want-pear-PHP_CodeSniffer
@(phpcs --tab-width=4 --standard=PSR2 ${.CURDIR}/src/opnsense/mvc \

View File

@ -41,7 +41,7 @@ abstract class BaseModelMigration
* Walk through all nodes and check required defaults
* @param $node
*/
private function checkDefaults($node)
private function checkDefaults($node)
{
foreach ($node->__items as $key => $subnode) {
if (count($subnode->__items) > 0) {

View File

@ -38,4 +38,4 @@ class M1_0_0 extends BaseModelMigration
$current_value = (string)$model->general->FromEmail;
$model->general->FromEmail = "100_" . $current_value;
}
}
}

View File

@ -38,4 +38,4 @@ class M1_0_1 extends BaseModelMigration
$current_value = (string)$model->general->FromEmail;
$model->general->FromEmail = "101_" . $current_value;
}
}
}