plugins: PSR12 "b", "d" and "m"

This commit is contained in:
Franco Fichtner 2019-10-07 16:27:10 +02:00
parent 0d1f9d9362
commit c3328e60c0
29 changed files with 79 additions and 49 deletions

View File

@ -1,4 +1,5 @@
<?php
/*
Copyright (C) 2017 Fabian Franz

View File

@ -1,4 +1,5 @@
<?php
/*
Copyright (C) 2017 Fabian Franz

View File

@ -1,4 +1,5 @@
<?php
/*
Copyright (C) 2017 Fabian Franz
All rights reserved.

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2019 Deciso B.V.
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2019 Deciso B.V.
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2019 Deciso B.V.
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2015 Deciso B.V.
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2015-2019 Deciso B.V.
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2015-2019 Deciso B.V.
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2015 Deciso B.V.
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2015 Deciso B.V.
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2018 Michael Muenz <m.muenz@gmail.com>
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2019 Michael Muenz <m.muenz@gmail.com>
* Copyright (C) 2019 Deciso B.V.

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2019 Michael Muenz <m.muenz@gmail.com>
* Copyright (C) 2019 Deciso B.V.
@ -50,7 +51,7 @@ class RecordController extends ApiMutableModelControllerBase
if ($this->request->isPost()) {
$record = $this->getModel()->getRecord($uuid);
if ($record !== null) {
(new Domain)->updateSerial((string)$record->domain)->serializeToConfig();
(new Domain())->updateSerial((string)$record->domain)->serializeToConfig();
Config::getInstance()->save();
}
}

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2018 Michael Muenz <m.muenz@gmail.com>
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2018 Michael Muenz <m.muenz@gmail.com>
*

View File

@ -1,4 +1,5 @@
<?php
/**
* Copyright (C) 2018 Michael Muenz <m.muenz@gmail.com>
*

View File

@ -420,9 +420,11 @@ class updatedns
if ($this->_dnsPort) {
$port = ":" . $this->_dnsPort;
}
if (($this->_dnsService == "noip-free") &&
if (
($this->_dnsService == "noip-free") &&
($this->_forceUpdateNeeded == true) &&
($this->_dnsDummyUpdateDone == false)) {
($this->_dnsDummyUpdateDone == false)
) {
// Update the IP to a dummy value to force No-IP free accounts to see a change.
$iptoset = "192.168.1.1";
$this->_dnsDummyUpdateDone = true;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
namespace OPNsense\Postfix;
use OPNsense\Base\BaseModel;

View File

@ -1,4 +1,5 @@
<?php
/*
Copyright (C) 2017 Fabian Franz

View File

@ -1,4 +1,5 @@
<?php
/*
Copyright (C) 2017 Fabian Franz
All rights reserved.