Skip to content

Commit

Permalink
- fixed some PHP type declarations, closed #783
Browse files Browse the repository at this point in the history
- fixed missing "connection types" for type `stargate` and `abyssal` to whitelist
  • Loading branch information
exodus4d committed Jun 2, 2019
1 parent cffeea8 commit 017d8d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/main/model/pathfinder/connectionmodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -315,7 +315,7 @@ public function afterEraseEvent($self, $pkeys){
* @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());
}

Expand Down
2 changes: 1 addition & 1 deletion app/main/model/pathfinder/mapmodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ public function getAllCorporations() : array {
* @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);
Expand Down
2 changes: 1 addition & 1 deletion app/main/model/pathfinder/systemmodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ public function getNewSignature() : SystemSignatureModel {
* @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());
}

Expand Down
2 changes: 1 addition & 1 deletion app/main/model/pathfinder/systemsignaturemodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ protected function validate_name(string $key, string $val): bool {
* @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());
}

Expand Down

0 comments on commit 017d8d9

Please sign in to comment.