updated multiple files for code compliance
updated code from php code sniffer MediaWiki rules