- fixed some PHP type declarations, closed #783
- fixed missing "connection types" for type `stargate` and `abyssal` to whitelist
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user