Enhance input validation in ShieldsIo class #215
11 new alerts
New alerts in code changed by this pull request
- 11 warnings
See annotations below for details.
Annotations
Check warning on line 18 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Missing doc comment for function addComponent() Warning
Check warning on line 20 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Implicit true comparisons prohibited; use === TRUE instead Warning
Check warning on line 24 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Expected //end addComponent() Warning
Check warning on line 24 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Expected 1 blank line before closing function brace; 0 found Warning
Check warning on line 24 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Expected 2 blank lines after function; 1 found Warning
Check warning on line 26 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Missing doc comment for function addQueryString() Warning
Check warning on line 28 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Implicit true comparisons prohibited; use === TRUE instead Warning
Check warning on line 31 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Expected 1 blank line before closing function brace; 0 found Warning
Check warning on line 31 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Expected 2 blank lines after function; 1 found Warning
Check warning on line 31 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Expected //end addQueryString() Warning
Check warning on line 33 in src/ShieldsIo.php
Code scanning / Phpcs (reported by Codacy)
Missing doc comment for function generateBadgeUrl() Warning