Fix CodeSniffer errors and warnings (you guessed it, on API classes)

Change-Id: I56f9632975d53bdfe33ff9412e1a4ba010bdb2aa