정적 분석기 결과 반영. 주로 배열 초기화. 변수 이름 실수 수정.

This commit is contained in:
2018-04-06 20:06:28 +09:00
parent 2bce82c73e
commit ffc0fc0c6f
20 changed files with 109 additions and 94 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
<?php
namespace sammo\Event\Action;
use sammo\Util;
use sammo\DB;
/**
@@ -51,7 +50,7 @@ class RaiseInvader extends \sammo\Event\Action{
private function moveCapital(){
$cities = array_map(function ($value) {
return $value;
}, INVADER_LIST);
}, static::INVADER_LIST);
$db = DB::db();
+3 -3
View File
@@ -17,9 +17,9 @@ class RegNPC extends \sammo\Event\Action{
int $intel,
int $birth = 160,
int $death = 300,
string $ego = null,
string $char = null,
string $text = null
$ego = null,
string $char = '',
string $text = ''
){
$this->npc = new \sammo\Scenario\NPC(
$affinity,