Skip to content

Commit

Permalink
PhpStan 0.12 Level 8 (Develop)
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed Mar 2, 2020
1 parent d93d66d commit a37ce30
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 38 deletions.
6 changes: 3 additions & 3 deletions docker/config/splash.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"WsMethod": "SOAP",
"WsMethod": "NuSOAP",
"PsUseOrderPdf": true
},
"Address": {
Expand All @@ -13,13 +13,13 @@
"allow_push_updated": true,
"fields": {
"status": { "write": 1 }
}
}
},
"Invoice": {
"enable_push_deleted": false
},
"CreditNote": {
"disabled": false
"disabled": true
},
"Product": {
"enable_push_deleted": false
Expand Down
54 changes: 27 additions & 27 deletions docker/toolkit/splash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@ splash:
WsHost: http://latest.prestashop.local
WsPath: /modules/splashsync/vendor/splash/phpcore/soap.php

########################################################################
# Prestashop 1.7
ps-1-7:
id: ThisIsPs17Key
key: ThisTokenIsNotSoSecretChangeIt
name: Prestashop 1.7
host: false
connector: soap
config:
WsIdentifier: ThisIsPs17Key
WsEncryptionKey: ThisTokenIsNotSoSecretChangeIt
WsHost: http://ps1-7.prestashop.local
WsPath: /modules/splashsync/vendor/splash/phpcore/soap.php

########################################################################
# Prestashop 1.6
ps-1-6:
id: ThisIsPs16Key
key: ThisTokenIsNotSoSecretChangeIt
name: Prestashop 1.6
host: false
connector: soap
config:
WsIdentifier: ThisIsPs16Key
WsEncryptionKey: ThisTokenIsNotSoSecretChangeIt
WsHost: http://ps1-6.prestashop.local
WsPath: /modules/splashsync/vendor/splash/phpcore/soap.php
# ########################################################################
# # Prestashop 1.7
# ps-1-7:
# id: ThisIsPs17Key
# key: ThisTokenIsNotSoSecretChangeIt
# name: Prestashop 1.7
# host: false
# connector: soap
# config:
# WsIdentifier: ThisIsPs17Key
# WsEncryptionKey: ThisTokenIsNotSoSecretChangeIt
# WsHost: http://ps1-7.prestashop.local
# WsPath: /modules/splashsync/vendor/splash/phpcore/soap.php
#
# ########################################################################
# # Prestashop 1.6
# ps-1-6:
# id: ThisIsPs16Key
# key: ThisTokenIsNotSoSecretChangeIt
# name: Prestashop 1.6
# host: false
# connector: soap
# config:
# WsIdentifier: ThisIsPs16Key
# WsEncryptionKey: ThisTokenIsNotSoSecretChangeIt
# WsHost: http://ps1-6.prestashop.local
# WsPath: /modules/splashsync/vendor/splash/phpcore/soap.php
2 changes: 1 addition & 1 deletion modules/splashsync/src/Objects/Address/CoreTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private function setIdCustomer($customerIdString)
}
//====================================================================//
// Verify Object Exists
$customer = new Customer($custoId);
$customer = new Customer((int) $custoId);
if ($customer->id != $custoId) {
return Splash::log()->errTrace("Unable to load Address Customer(".$custoId.").");
}
Expand Down
2 changes: 1 addition & 1 deletion modules/splashsync/src/Objects/CreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function __construct()
$this->spl = Local::getLocalModule();
//====================================================================//
// Load Default Currency
$this->currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
$this->currency = new Currency((int) Configuration::get('PS_CURRENCY_DEFAULT'));
//====================================================================//
// Credit Note Mode for Payments
$this->setCreditNoteMode(true);
Expand Down
2 changes: 1 addition & 1 deletion modules/splashsync/src/Objects/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@ public function __construct()
$this->spl = Local::getLocalModule();
//====================================================================//
// Load OsWs Currency
$this->Currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
$this->Currency = new Currency((int) Configuration::get('PS_CURRENCY_DEFAULT'));
}
}
2 changes: 1 addition & 1 deletion modules/splashsync/src/Objects/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function __construct()
$this->spl = Local::getLocalModule();
//====================================================================//
// Load Default Currency
$this->Currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
$this->Currency = new Currency((int) Configuration::get('PS_CURRENCY_DEFAULT'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion modules/splashsync/src/Objects/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,6 @@ public function __construct()
$this->spl = Local::getLocalModule();
//====================================================================//
// Load Default Currency
$this->Currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
$this->Currency = new Currency((int) Configuration::get('PS_CURRENCY_DEFAULT'));
}
}
4 changes: 2 additions & 2 deletions modules/splashsync/src/Objects/ThirdParty/CRUDTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function load($objectId)
Splash::log()->trace();
//====================================================================//
// Load Object
$object = new Customer($objectId);
$object = new Customer((int) $objectId);
if ($object->id != $objectId) {
return Splash::log()->err(
"ErrLocalTpl",
Expand Down Expand Up @@ -166,7 +166,7 @@ public function delete($objectId = null)
//====================================================================//
// Load Object From DataBase
//====================================================================//
$object = new Customer($objectId);
$object = new Customer((int) $objectId);
if ($object->id != $objectId) {
return Splash::log()->war("ErrLocalTpl", __CLASS__, __FUNCTION__, "Unable to load (".$objectId.").");
}
Expand Down
2 changes: 1 addition & 1 deletion modules/splashsync/src/Widgets/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private function buildActivityBlock($inputs = array())

//====================================================================//
// Load Default Currency
$this->currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
$this->currency = new Currency((int) Configuration::get('PS_CURRENCY_DEFAULT'));

//====================================================================//
// Load Splash Module
Expand Down

0 comments on commit a37ce30

Please sign in to comment.