mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
mvc: stype/whitespace sweep
This commit is contained in:
parent
556e6a4307
commit
2c8e35ccd4
@ -50,4 +50,4 @@ abstract class BaseConstraint extends Validator implements ValidatorInterface
|
||||
}
|
||||
$validator->appendMessage(new Message($message, $attribute, $name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user