Fix PHPdoc in lib/private

using scrutinizer patch
Fix PHPdoc in lib/public

using scrutinizer patch