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
6ca40bc4
Commit
6ca40bc4
authored
Mar 17, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvc: new style checker has new style checks ;)
parent
9821d6fb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
71 deletions
+69
-71
FilterRule.php
...opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php
+1
-1
Util.php
src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php
+68
-69
AuthGroupField.php
...vc/app/models/OPNsense/Base/FieldTypes/AuthGroupField.php
+0
-1
No files found.
src/opnsense/mvc/app/library/OPNsense/Firewall/FilterRule.php
View file @
6ca40bc4
...
...
@@ -314,7 +314,7 @@ class FilterRule
// set prio
if
(
isset
(
$tmp
[
'set-prio'
])
&&
$tmp
[
'set-prio'
]
!==
""
&&
isset
(
$tmp
[
'set-prio-low'
])
&&
$tmp
[
'set-prio-low'
]
!==
""
)
{
$tmp
[
'set-prio'
]
=
"(
{
$tmp
[
'set-prio'
]
}
,
{
$tmp
[
'set-prio-low'
]
}
)"
;
$tmp
[
'set-prio'
]
=
"(
{
$tmp
[
'set-prio'
]
}
,
{
$tmp
[
'set-prio-low'
]
}
)"
;
}
$result
[]
=
$tmp
;
}
...
...
src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php
View file @
6ca40bc4
...
...
@@ -2,7 +2,6 @@
/**
* Copyright (C) 2017 Deciso B.V.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
...
...
@@ -92,7 +91,7 @@ class Util
* @param boolean $allow_range ranges allowed
* @return boolean
*/
public
function
isPort
(
$number
,
$allow_range
=
true
)
public
function
isPort
(
$number
,
$allow_range
=
true
)
{
$tmp
=
explode
(
':'
,
$number
);
foreach
(
$tmp
as
$port
)
{
...
...
src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/AuthGroupField.php
View file @
6ca40bc4
...
...
@@ -33,7 +33,6 @@ use Phalcon\Validation\Validator\InclusionIn;
use
OPNsense\Base\Validators\CsvListValidator
;
use
OPNsense\Core\Config
;
class
AuthGroupField
extends
BaseField
{
/**
...
...
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