Skip to content

Commit

Permalink
plugins: serious style sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Feb 13, 2020
1 parent 117dcf5 commit 18bc32f
Show file tree
Hide file tree
Showing 105 changed files with 279 additions and 276 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@

namespace OPNsense\iperf\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use \OPNsense\Core\Backend;
use \OPNsense\Core\Config;
use \OPNsense\Iperf\FakeInstance;
use OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Core\Backend;
use OPNsense\Core\Config;
use OPNsense\Iperf\FakeInstance;

class InstanceController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

namespace OPNsense\iperf\Api;

use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Core\Backend;
use OPNsense\Base\ApiControllerBase;
use OPNsense\Core\Backend;

class ServiceController extends ApiControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace OPNsense\GridExample\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

/**
* a settings controller for our GridExample app, uses our ApiMutableModelControllerBase type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

namespace OPNsense\HelloWorld\Api;

use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Core\Backend;
use OPNsense\Base\ApiControllerBase;
use OPNsense\Core\Backend;

/**
* Class ServiceController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@

namespace OPNsense\HelloWorld\Api;

use \OPNsense\Base\ApiControllerBase;
use \OPNsense\HelloWorld\HelloWorld;
use \OPNsense\Core\Config;
use OPNsense\Base\ApiControllerBase;
use OPNsense\HelloWorld\HelloWorld;
use OPNsense\Core\Config;

/**
* Class SettingsController Handles settings related API actions for the HelloWorld module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace OPNsense\HelloWorld\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

/**
* a simplified settings controller for our HelloWorld app, uses our ApiMutableModelControllerBase type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace OPNsense\Bind\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class AclController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

namespace OPNsense\Bind\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use \OPNsense\Core\Backend;
use OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Core\Backend;

class DomainController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

namespace OPNsense\Bind\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use \OPNsense\Bind\Domain;
use \OPNsense\Core\Config;
use OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Bind\Domain;
use OPNsense\Core\Config;

class RecordController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

namespace OPNsense\Dnscryptproxy\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use \OPNsense\Core\Backend;
use OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Core\Backend;

class CloakController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

namespace OPNsense\Dnscryptproxy\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use \OPNsense\Core\Backend;
use OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Core\Backend;

class ForwardController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

namespace OPNsense\Dnscryptproxy\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use \OPNsense\Core\Backend;
use OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Core\Backend;

class ServerController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

namespace OPNsense\Dnscryptproxy\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use \OPNsense\Core\Backend;
use OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Core\Backend;

class WhitelistController extends ApiMutableModelControllerBase
{
Expand Down
74 changes: 37 additions & 37 deletions dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/r53.inc
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
<?php
/**
*
* Copyright (c) 2011 Dan Myers
* Copyright (c) 2008 Donovan Schonknecht
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* This is a modified BSD license (the third clause has been removed).
* The BSD license may be found here:
* http://www.opensource.org/licenses/bsd-license.php
*
* Amazon Route 53 is a trademark of Amazon.com, Inc. or its affiliates.
*
* Route53 is based on Donovan Schonknecht's Amazon S3 PHP class, found here:
* http://undesigned.org.za/2007/10/22/amazon-s3-php-class
*
*/

/*
*
* Copyright (c) 2011 Dan Myers
* Copyright (c) 2008 Donovan Schonknecht
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* This is a modified BSD license (the third clause has been removed).
* The BSD license may be found here:
* http://www.opensource.org/licenses/bsd-license.php
*
* Amazon Route 53 is a trademark of Amazon.com, Inc. or its affiliates.
*
* Route53 is based on Donovan Schonknecht's Amazon S3 PHP class, found here:
* http://undesigned.org.za/2007/10/22/amazon-s3-php-class
*/

/**
* Amazon Route53 PHP class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

namespace OPNsense\Postfix\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class AddressController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace OPNsense\Postfix\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class AntispamController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace OPNsense\Postfix\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class DomainController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace OPNsense\Postfix\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class RecipientController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

namespace OPNsense\Postfix\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class RecipientbccController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace OPNsense\Postfix\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class SenderController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

namespace OPNsense\Postfix\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class SenderbccController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace OPNsense\Postfix\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class SendercanonicalController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

namespace OPNsense\Rspamd;

use \OPNsense\Core\Backend;
use \OPNsense\Rspamd\RSpamd;
use OPNsense\Core\Backend;
use OPNsense\Rspamd\RSpamd;

/**
* Class IndexController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

namespace OPNsense\Collectd\Api;

use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Collectd\General;
use \OPNsense\Core\Config;
use OPNsense\Base\ApiControllerBase;
use OPNsense\Collectd\General;
use OPNsense\Core\Config;

class GeneralController extends ApiControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

namespace OPNsense\Collectd\Api;

use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Core\Backend;
use \OPNsense\Collectd\General;
use OPNsense\Base\ApiControllerBase;
use OPNsense\Core\Backend;
use OPNsense\Collectd\General;

/**
* Class ServiceController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace OPNsense\Netsnmp\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class UserController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace OPNsense\Nrpe\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class CommandController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

namespace OPNsense\Telegraf\Api;

use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Telegraf\General;
use \OPNsense\Core\Config;
use OPNsense\Base\ApiControllerBase;
use OPNsense\Telegraf\General;
use OPNsense\Core\Config;

class GeneralController extends ApiControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

namespace OPNsense\Telegraf\Api;

use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Telegraf\Input;
use \OPNsense\Core\Config;
use OPNsense\Base\ApiControllerBase;
use OPNsense\Telegraf\Input;
use OPNsense\Core\Config;

class InputController extends ApiControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace OPNsense\Telegraf\Api;

use \OPNsense\Base\ApiMutableModelControllerBase;
use OPNsense\Base\ApiMutableModelControllerBase;

class KeyController extends ApiMutableModelControllerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

namespace OPNsense\Telegraf\Api;

use \OPNsense\Base\ApiControllerBase;
use \OPNsense\Telegraf\Output;
use \OPNsense\Core\Config;
use OPNsense\Base\ApiControllerBase;
use OPNsense\Telegraf\Output;
use OPNsense\Core\Config;

class OutputController extends ApiControllerBase
{
Expand Down
Loading

0 comments on commit 18bc32f

Please sign in to comment.