~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/tools/config.php

  • Committer: zodiacsohma1 at gmail
  • Date: 2014-03-02 08:09:55 UTC
  • Revision ID: zodiacsohma1@gmail.com-20140302080955-r5ot6eipfe0nlpww
Simplified all fields and code in all areas for better as they seem to repeat themselves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
            {
115
115
                foreach (self::$commands as $cmd)
116
116
                {
117
 
                    if (isset($cmd) && !is_null($cmd) && $cmd instanceof configBase && (strtolower($cmd->name) == strtolower($command)))
 
117
                    if (isset($cmd) && $cmd instanceof configBase && (strtolower($cmd->name) == strtolower($command)))
118
118
                    {
119
119
                        $found = true;
120
120
 
144
144
                    $sim_maxlen = -1;
145
145
                    foreach (self::$commands as $cmd)
146
146
                    {
147
 
                        if (isset($cmd) && !is_null($cmd) && $cmd instanceof configBase)
 
147
                        if (isset($cmd) && $cmd instanceof configBase)
148
148
                        {
149
149
                            if (contains($cmd->name, $command, false))
150
150
                            {
162
162
 
163
163
                        foreach (self::$commands as $cmd)
164
164
                        {
165
 
                            if (isset($cmd) && !is_null($cmd) && $cmd instanceof configBase && contains($cmd->name, $command, false))
 
165
                            if (isset($cmd) && $cmd instanceof configBase && contains($cmd->name, $command, false))
166
166
                            {
167
167
                                if ($printMax-- > 0)
168
168
                                {