mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code clean up.
This commit is contained in:
@@ -18,15 +18,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
|
||||
/**
|
||||
* Class Alias
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class Alias.
|
||||
*/
|
||||
class Alias extends BunqObject
|
||||
{
|
||||
|
@@ -18,15 +18,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
|
||||
/**
|
||||
* Class Amount
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class Amount.
|
||||
*/
|
||||
class Amount extends BunqObject
|
||||
{
|
||||
|
@@ -18,15 +18,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
|
||||
/**
|
||||
* Class Avatar
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class Avatar.
|
||||
*/
|
||||
class Avatar extends BunqObject
|
||||
{
|
||||
|
@@ -18,15 +18,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
|
||||
/**
|
||||
* Class BunqObject
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class BunqObject.
|
||||
*/
|
||||
class BunqObject
|
||||
{
|
||||
|
@@ -18,7 +18,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
@@ -28,17 +27,17 @@ use FireflyIII\Services\Bunq\Id\DeviceServerId;
|
||||
|
||||
class DeviceServer extends BunqObject
|
||||
{
|
||||
/** @var Carbon */
|
||||
/** @var Carbon */
|
||||
private $created;
|
||||
/** @var string */
|
||||
/** @var string */
|
||||
private $description;
|
||||
/** @var DeviceServerId */
|
||||
/** @var DeviceServerId */
|
||||
private $id;
|
||||
/** @var string */
|
||||
/** @var string */
|
||||
private $ip;
|
||||
/** @var string */
|
||||
/** @var string */
|
||||
private $status;
|
||||
/** @var Carbon */
|
||||
/** @var Carbon */
|
||||
private $updated;
|
||||
|
||||
public function __construct(array $data)
|
||||
|
@@ -18,7 +18,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
@@ -26,35 +25,33 @@ namespace FireflyIII\Services\Bunq\Object;
|
||||
use Carbon\Carbon;
|
||||
|
||||
/**
|
||||
* Class MonetaryAccountBank
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class MonetaryAccountBank.
|
||||
*/
|
||||
class MonetaryAccountBank extends BunqObject
|
||||
{
|
||||
/** @var array */
|
||||
private $aliases = [];
|
||||
/** @var Avatar */
|
||||
/** @var Avatar */
|
||||
private $avatar;
|
||||
/** @var Amount */
|
||||
/** @var Amount */
|
||||
private $balance;
|
||||
/** @var Carbon */
|
||||
private $created;
|
||||
/** @var string */
|
||||
private $currency = '';
|
||||
/** @var Amount */
|
||||
/** @var Amount */
|
||||
private $dailyLimit;
|
||||
/** @var Amount */
|
||||
/** @var Amount */
|
||||
private $dailySpent;
|
||||
/** @var string */
|
||||
private $description = '';
|
||||
/** @var int */
|
||||
private $id = 0;
|
||||
/** @var MonetaryAccountProfile */
|
||||
/** @var MonetaryAccountProfile */
|
||||
private $monetaryAccountProfile;
|
||||
/** @var array */
|
||||
private $notificationFilters = [];
|
||||
/** @var Amount */
|
||||
/** @var Amount */
|
||||
private $overdraftLimit;
|
||||
/** @var string */
|
||||
private $publicUuid = '';
|
||||
@@ -62,7 +59,7 @@ class MonetaryAccountBank extends BunqObject
|
||||
private $reason = '';
|
||||
/** @var string */
|
||||
private $reasonDescription = '';
|
||||
/** @var MonetaryAccountSetting */
|
||||
/** @var MonetaryAccountSetting */
|
||||
private $setting;
|
||||
/** @var string */
|
||||
private $status = '';
|
||||
|
@@ -18,21 +18,18 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
|
||||
/**
|
||||
* Class MonetaryAccountProfile
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class MonetaryAccountProfile.
|
||||
*/
|
||||
class MonetaryAccountProfile extends BunqObject
|
||||
{
|
||||
/** @var string */
|
||||
private $profileActionRequired = '';
|
||||
/** @var Amount */
|
||||
/** @var Amount */
|
||||
private $profileAmountRequired;
|
||||
private $profileDrain;
|
||||
private $profileFill;
|
||||
|
@@ -18,15 +18,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
|
||||
/**
|
||||
* Class MonetaryAccountSetting
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class MonetaryAccountSetting.
|
||||
*/
|
||||
class MonetaryAccountSetting extends BunqObject
|
||||
{
|
||||
|
@@ -18,15 +18,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
|
||||
/**
|
||||
* Class NotificationFilter
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class NotificationFilter.
|
||||
*/
|
||||
class NotificationFilter extends BunqObject
|
||||
{
|
||||
|
@@ -18,15 +18,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
|
||||
/**
|
||||
* Class ServerPublicKey
|
||||
*
|
||||
* @package Bunq\Object
|
||||
* Class ServerPublicKey.
|
||||
*/
|
||||
class ServerPublicKey extends BunqObject
|
||||
{
|
||||
|
@@ -18,7 +18,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
@@ -26,9 +25,7 @@ namespace FireflyIII\Services\Bunq\Object;
|
||||
use Carbon\Carbon;
|
||||
|
||||
/**
|
||||
* Class UserCompany
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class UserCompany.
|
||||
*/
|
||||
class UserCompany extends BunqObject
|
||||
{
|
||||
@@ -69,7 +66,7 @@ class UserCompany extends BunqObject
|
||||
private $status = '';
|
||||
/** @var string */
|
||||
private $subStatus = '';
|
||||
/** @var string */
|
||||
/** @var string */
|
||||
private $typeOfBusinessEntity = '';
|
||||
/** @var array */
|
||||
private $ubos = [];
|
||||
|
@@ -18,7 +18,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
@@ -26,9 +25,7 @@ namespace FireflyIII\Services\Bunq\Object;
|
||||
use Carbon\Carbon;
|
||||
|
||||
/**
|
||||
* Class UserLight
|
||||
*
|
||||
* @package FireflyIII\Services\Bunq\Object
|
||||
* Class UserLight.
|
||||
*/
|
||||
class UserLight extends BunqObject
|
||||
{
|
||||
@@ -62,7 +59,7 @@ class UserLight extends BunqObject
|
||||
*/
|
||||
public function __construct(array $data)
|
||||
{
|
||||
if (count($data) === 0) {
|
||||
if (0 === count($data)) {
|
||||
return;
|
||||
}
|
||||
$this->id = intval($data['id']);
|
||||
|
@@ -18,7 +18,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Bunq\Object;
|
||||
@@ -26,9 +25,7 @@ namespace FireflyIII\Services\Bunq\Object;
|
||||
use Carbon\Carbon;
|
||||
|
||||
/**
|
||||
* Class UserPerson
|
||||
*
|
||||
* @package Bunq\Object
|
||||
* Class UserPerson.
|
||||
*/
|
||||
class UserPerson extends BunqObject
|
||||
{
|
||||
@@ -101,7 +98,7 @@ class UserPerson extends BunqObject
|
||||
*/
|
||||
public function __construct(array $data)
|
||||
{
|
||||
if (count($data) === 0) {
|
||||
if (0 === count($data)) {
|
||||
return;
|
||||
}
|
||||
$this->id = intval($data['id']);
|
||||
|
Reference in New Issue
Block a user