- fixed some PHP type declarations, closed #783

- fixed missing "connection types" for type `stargate` and `abyssal` to whitelist
This commit is contained in:
Mark Friedrich
2019-06-02 19:18:56 +02:00
parent cffeea80a3
commit 017d8d9c6e
4 changed files with 5 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ class ConnectionModel extends AbstractMapTrackingModel {
* allowed connection types
* @var array
*/
protected static $connectionTypeWhitelist = ['wh_fresh', 'wh_reduced', 'wh_critical', 'frigate', 'preserve_mass'];
protected static $connectionTypeWhitelist = ['stargate', 'abyssal', 'wh_fresh', 'wh_reduced', 'wh_critical', 'frigate', 'preserve_mass'];
/**
* get connection data
@@ -315,7 +315,7 @@ class ConnectionModel extends AbstractMapTrackingModel {
* @return logging\LogInterface
* @throws \Exception\ConfigException
*/
public function newLog($action = '') : Logging\LogInterface {
public function newLog(string $action = '') : Logging\LogInterface {
return $this->getMap()->newLog($action)->setTempData($this->getLogObjectData());
}

View File

@@ -977,7 +977,7 @@ class MapModel extends AbstractMapTrackingModel {
* @return logging\LogInterface
* @throws ConfigException
*/
public function newLog($action = '') : Logging\LogInterface{
public function newLog(string $action = '') : Logging\LogInterface{
$logChannelData = $this->getLogChannelData();
$logObjectData = $this->getLogObjectData();
$log = (new logging\MapLog($action, $logChannelData))->setTempData($logObjectData);

View File

@@ -538,7 +538,7 @@ class SystemModel extends AbstractMapTrackingModel {
* @return logging\LogInterface
* @throws \Exception\ConfigException
*/
public function newLog($action = '') : Logging\LogInterface{
public function newLog(string $action = '') : Logging\LogInterface{
return $this->getMap()->newLog($action)->setTempData($this->getLogObjectData());
}

View File

@@ -173,7 +173,7 @@ class SystemSignatureModel extends AbstractMapTrackingModel {
* @return logging\LogInterface
* @throws \Exception\ConfigException
*/
public function newLog($action = ''): Logging\LogInterface{
public function newLog(string $action = ''): Logging\LogInterface{
return $this->getMap()->newLog($action)->setTempData($this->getLogObjectData());
}