Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
2c8e35cc
Commit
2c8e35cc
authored
Aug 15, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvc: stype/whitespace sweep
parent
556e6a43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
BaseConstraint.php
...c/app/models/OPNsense/Base/Constraints/BaseConstraint.php
+1
-1
UniqueConstraint.php
...app/models/OPNsense/Base/Constraints/UniqueConstraint.php
+1
-3
run_migrations.php
src/opnsense/mvc/script/run_migrations.php
+2
-3
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/BaseConstraint.php
View file @
2c8e35cc
...
...
@@ -50,4 +50,4 @@ abstract class BaseConstraint extends Validator implements ValidatorInterface
}
$validator
->
appendMessage
(
new
Message
(
$message
,
$attribute
,
$name
));
}
}
\ No newline at end of file
}
src/opnsense/mvc/app/models/OPNsense/Base/Constraints/UniqueConstraint.php
View file @
2c8e35cc
...
...
@@ -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
}
src/opnsense/mvc/script/run_migrations.php
View file @
2c8e35cc
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment