Fix syntax error in flaggedrevisions
Add missing return tags
Fix returns and throws in phpdoc
Remove duplicate keys and make array more readable