src: style sweep

This commit is contained in:
Franco Fichtner
2019-01-14 09:04:33 +01:00
parent 39b8dd4556
commit 4ff026076a
88 changed files with 219 additions and 219 deletions
@@ -37,9 +37,9 @@ use \OPNsense\Iperf\FakeInstance;
class InstanceController extends ApiMutableModelControllerBase
{
static protected $internalModelClass = '\OPNsense\iperf\FakeInstance';
static protected $internalModelName = 'instance';
static private $SOCKET_PATH = "unix:///var/run/iperf-manager.sock";
protected static $internalModelClass = '\OPNsense\iperf\FakeInstance';
protected static $internalModelName = 'instance';
private static $SOCKET_PATH = "unix:///var/run/iperf-manager.sock";
// override base to set model - not used here
public function setAction()
@@ -32,8 +32,8 @@ use OPNsense\Base\ApiMutableServiceControllerBase;
class ServiceController extends ApiMutableServiceControllerBase
{
static protected $internalServiceClass = '\OPNsense\Redis\Redis';
static protected $internalServiceTemplate = 'OPNsense/Redis';
static protected $internalServiceEnabled = 'general.enabled';
static protected $internalServiceName = 'redis';
protected static $internalServiceClass = '\OPNsense\Redis\Redis';
protected static $internalServiceTemplate = 'OPNsense/Redis';
protected static $internalServiceEnabled = 'general.enabled';
protected static $internalServiceName = 'redis';
}
@@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
class SettingsController extends ApiMutableModelControllerBase
{
static protected $internalModelClass = '\OPNsense\Redis\Redis';
static protected $internalModelName = 'redis';
protected static $internalModelClass = '\OPNsense\Redis\Redis';
protected static $internalModelName = 'redis';
}
@@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
class AclController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'acl';
static protected $internalModelClass = '\OPNsense\Bind\Acl';
protected static $internalModelName = 'acl';
protected static $internalModelClass = '\OPNsense\Bind\Acl';
public function searchAclAction()
{
@@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
class DnsblController extends ApiMutableModelControllerBase
{
static protected $internalModelClass = '\OPNsense\Bind\Dnsbl';
static protected $internalModelName = 'dnsbl';
protected static $internalModelClass = '\OPNsense\Bind\Dnsbl';
protected static $internalModelName = 'dnsbl';
}
@@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
class GeneralController extends ApiMutableModelControllerBase
{
static protected $internalModelClass = '\OPNsense\Bind\General';
static protected $internalModelName = 'general';
protected static $internalModelClass = '\OPNsense\Bind\General';
protected static $internalModelName = 'general';
}
@@ -41,10 +41,10 @@ use OPNsense\Bind\Dnsbl;
*/
class ServiceController extends ApiMutableServiceControllerBase
{
static protected $internalServiceClass = '\OPNsense\Bind\General';
static protected $internalServiceTemplate = 'OPNsense/Bind';
static protected $internalServiceEnabled = 'enabled';
static protected $internalServiceName = 'bind';
protected static $internalServiceClass = '\OPNsense\Bind\General';
protected static $internalServiceTemplate = 'OPNsense/Bind';
protected static $internalServiceEnabled = 'enabled';
protected static $internalServiceName = 'bind';
public function dnsblAction()
{
@@ -34,8 +34,8 @@ use \OPNsense\Core\Backend;
class CloakController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'cloak';
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\Cloak';
protected static $internalModelName = 'cloak';
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\Cloak';
public function searchCloakAction()
{
@@ -34,8 +34,8 @@ use \OPNsense\Core\Backend;
class ForwardController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'forward';
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\Forward';
protected static $internalModelName = 'forward';
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\Forward';
public function searchForwardAction()
{
@@ -34,6 +34,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
class GeneralController extends ApiMutableModelControllerBase
{
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\General';
static protected $internalModelName = 'general';
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\General';
protected static $internalModelName = 'general';
}
@@ -33,8 +33,8 @@ use \OPNsense\Core\Backend;
class ServerController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'server';
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\Server';
protected static $internalModelName = 'server';
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\Server';
public function searchServerAction()
{
@@ -40,8 +40,8 @@ use OPNsense\Dnscryptproxy\General;
*/
class ServiceController extends ApiMutableServiceControllerBase
{
static protected $internalServiceClass = '\OPNsense\Dnscryptproxy\General';
static protected $internalServiceTemplate = 'OPNsense/Dnscryptproxy';
static protected $internalServiceEnabled = 'enabled';
static protected $internalServiceName = 'dnscryptproxy';
protected static $internalServiceClass = '\OPNsense\Dnscryptproxy\General';
protected static $internalServiceTemplate = 'OPNsense/Dnscryptproxy';
protected static $internalServiceEnabled = 'enabled';
protected static $internalServiceName = 'dnscryptproxy';
}
@@ -34,8 +34,8 @@ use \OPNsense\Core\Backend;
class WhitelistController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'whitelist';
static protected $internalModelClass = '\OPNsense\Dnscryptproxy\Whitelist';
protected static $internalModelName = 'whitelist';
protected static $internalModelClass = '\OPNsense\Dnscryptproxy\Whitelist';
public function searchWhitelistAction()
{
@@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
class AddressController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'address';
static protected $internalModelClass = '\OPNsense\Postfix\Address';
protected static $internalModelName = 'address';
protected static $internalModelClass = '\OPNsense\Postfix\Address';
public function searchAddressAction()
{
@@ -33,6 +33,6 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
class AntispamController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'antispam';
static protected $internalModelClass = '\OPNsense\Postfix\Antispam';
protected static $internalModelName = 'antispam';
protected static $internalModelClass = '\OPNsense\Postfix\Antispam';
}
@@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
class DomainController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'domain';
static protected $internalModelClass = '\OPNsense\Postfix\Domain';
protected static $internalModelName = 'domain';
protected static $internalModelClass = '\OPNsense\Postfix\Domain';
public function searchDomainAction()
{
@@ -32,6 +32,6 @@ use OPNsense\Base\ApiMutableModelControllerBase;
class GeneralController extends ApiMutableModelControllerBase
{
static protected $internalModelClass = '\OPNsense\Postfix\General';
static protected $internalModelName = 'general';
protected static $internalModelClass = '\OPNsense\Postfix\General';
protected static $internalModelName = 'general';
}
@@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
class RecipientController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'recipient';
static protected $internalModelClass = '\OPNsense\Postfix\Recipient';
protected static $internalModelName = 'recipient';
protected static $internalModelClass = '\OPNsense\Postfix\Recipient';
public function searchRecipientAction()
{
@@ -32,8 +32,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
class RecipientbccController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'recipientbcc';
static protected $internalModelClass = '\OPNsense\Postfix\Recipientbcc';
protected static $internalModelName = 'recipientbcc';
protected static $internalModelClass = '\OPNsense\Postfix\Recipientbcc';
public function searchRecipientbccAction()
{
@@ -33,8 +33,8 @@ use \OPNsense\Base\ApiMutableModelControllerBase;
class SenderController extends ApiMutableModelControllerBase
{
static protected $internalModelName = 'sender';
static protected $internalModelClass = '\OPNsense\Postfix\Sender';
protected static $internalModelName = 'sender';
protected static $internalModelClass = '\OPNsense\Postfix\Sender';
public function searchSenderAction()
{

Some files were not shown because too many files have changed in this diff Show More