Fix coding standard violations

While working on something in /libraries/structure.lib.php file, I noticed that there are some coding standard violations. In this pull request I fix most of them.