// typo availaible => available
 // Invalid return types in PHPDoc's
 // Redundant closing tags removed
 // Statements that would never execute
 // Replace deprecated key_exists php function
 // Equal assignment - useless
 // duplicate keys in arrays, values are just overwritten
 // duplicate case expression in switch
 // fix return type
 // looks like it's a string, not datetime object
 // looks like it's a string
 // some missing break; statements
 // fixing more wrong types in PHPDoc's
 // fixing wrong param types in PHPDoc's
Merge pull request #1420 from FishBuy/code-quality

[*] Project: Deprecated functions replaced, PHPDoc's improved, redundant code removed