Merge pull request #228 from jeff1evesque/php_logic_loader

#227: logic_loader.php, fix typo 'analysis' -> 'training'
#229: logic_loader.php, replace ternary operator with 'if-elseif'