Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
Update error.php
Update error.php
Merge pull request #3138 from thiagotalma/inspections

Correction of many warnings code inspection.