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
2f088552
Commit
2f088552
authored
Aug 10, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvc: style sweep
parent
6411baea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
SettingsController.php
...c/app/controllers/OPNsense/IDS/Api/SettingsController.php
+3
-3
SettingsController.php
...app/controllers/OPNsense/Proxy/Api/SettingsController.php
+2
-2
BaseModelTest.php
...ense/mvc/tests/app/models/OPNsense/Base/BaseModelTest.php
+1
-1
No files found.
src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/SettingsController.php
View file @
2f088552
...
...
@@ -41,8 +41,8 @@ use \OPNsense\Base\UIModelGrid;
*/
class
SettingsController
extends
ApiMutableModelControllerBase
{
static
protected
$internalModelName
=
'ids'
;
static
protected
$internalModelClass
=
'\OPNsense\IDS\IDS'
;
static
protected
$internalModelName
=
'ids'
;
static
protected
$internalModelClass
=
'\OPNsense\IDS\IDS'
;
/**
* @return array plain model settings (non repeating items)
...
...
@@ -148,7 +148,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @param string|null $sid rule identifier
* @return array|mixed
*/
public
function
getRuleInfoAction
(
$sid
=
null
)
public
function
getRuleInfoAction
(
$sid
=
null
)
{
// request list of installed rules
if
(
!
empty
(
$sid
))
{
...
...
src/opnsense/mvc/app/controllers/OPNsense/Proxy/Api/SettingsController.php
View file @
2f088552
...
...
@@ -39,8 +39,8 @@ use \OPNsense\Base\UIModelGrid;
*/
class
SettingsController
extends
ApiMutableModelControllerBase
{
static
protected
$internalModelName
=
'proxy'
;
static
protected
$internalModelClass
=
'\OPNsense\Proxy\Proxy'
;
static
protected
$internalModelName
=
'proxy'
;
static
protected
$internalModelClass
=
'\OPNsense\Proxy\Proxy'
;
/**
*
...
...
src/opnsense/mvc/tests/app/models/OPNsense/Base/BaseModelTest.php
View file @
2f088552
...
...
@@ -80,7 +80,7 @@ class BaseModelTest extends \PHPUnit_Framework_TestCase
BaseModelTest
::
$model
->
arraytypes
->
item
->
Del
(
$nodeid
);
}
// generate new items
for
(
$i
=
1
;
$i
<=
10
;
$i
++
)
{
for
(
$i
=
1
;
$i
<=
10
;
$i
++
)
{
$node
=
BaseModelTest
::
$model
->
arraytypes
->
item
->
Add
();
$node
->
number
=
$i
;
}
...
...
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