mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
phpstan support (#250)
* phpstan v1 + workflow * Fix intend * More fixes * Update phpstan.neon * phpstan level 2 * Move errors ignoring into phpstan.neon * phpstan level 3 * Don't ignore templates folder * Something from level 4 * Update phpstan.neon
This commit is contained in:
@@ -23,9 +23,15 @@ $guilds_list = new OTS_Guilds_List();
|
||||
$guilds_list->init();
|
||||
if(count($guilds_list) > 0)
|
||||
{
|
||||
/**
|
||||
* @var OTS_Guild $guild
|
||||
*/
|
||||
foreach($guilds_list as $guild)
|
||||
{
|
||||
$error = 0;
|
||||
/**
|
||||
* @var OTS_Player $leader
|
||||
*/
|
||||
$leader = $guild->getOwner();
|
||||
if($leader->isLoaded())
|
||||
{
|
||||
|
@@ -117,6 +117,9 @@ if(isset($todo) && $todo == 'save')
|
||||
$ranks = $new_guild->getGuildRanksList();
|
||||
$ranks->orderBy('level', POT::ORDER_DESC);
|
||||
foreach($ranks as $rank) {
|
||||
/**
|
||||
* @var OTS_GuildRank $rank
|
||||
*/
|
||||
if($rank->getLevel() == 3) {
|
||||
$player->setRank($rank);
|
||||
}
|
||||
|
@@ -19,6 +19,9 @@ $guilds_list->orderBy("name");
|
||||
$guilds = array();
|
||||
if(count($guilds_list) > 0)
|
||||
{
|
||||
/**
|
||||
* @var OTS_Guild $guild
|
||||
*/
|
||||
foreach ($guilds_list as $guild) {
|
||||
$guild_logo = $guild->getCustomField('logo_name');
|
||||
if (empty($guild_logo) || !file_exists(GUILD_IMAGES_DIR . $guild_logo))
|
||||
|
Reference in New Issue
Block a user