dartiss / plugins-list

WordPress plugin to insert a list of the Wordpress plugins you are using into any post/page.
https://wordpress.org/plugins/plugins-list/
GNU General Public License v2.0
7 stars 6 forks source link

Fix PHPCS issues #12

Closed dartiss closed 6 years ago

dartiss commented 6 years ago
FILE: /Users/davidartiss/documents/github/plugins-list/plugins-list.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 22 WARNINGS AFFECTING 15 LINES
--------------------------------------------------------------------------------
  68 | ERROR   | extract() usage is highly discouraged, due to the complexity
     |         | and unintended issues it might cause.
  70 | WARNING | Variable $format is undefined.
  70 | WARNING | Variable $show_inactive is undefined.
  70 | WARNING | Variable $show_active is undefined.
  70 | WARNING | Variable $cache is undefined.
  70 | WARNING | Variable $nofollow is undefined.
  70 | WARNING | Variable $target is undefined.
  92 | ERROR   | extract() usage is highly discouraged, due to the complexity
     |         | and unintended issues it might cause.
  94 | WARNING | Variable $active is undefined.
  94 | WARNING | Variable $inactive is undefined.
  94 | WARNING | Variable $cache is undefined.
 124 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 125 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 126 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 127 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 129 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 141 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 141 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 176 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 176 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 180 | WARNING | Unused variable $plugin_data.
 183 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 216 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 244 | WARNING | Unused variable $plugins_allowedtags2.
--------------------------------------------------------------------------------

FILE: /Users/davidartiss/documents/github/plugins-list/uninstall.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 20 | ERROR | [x] A closing tag is not permitted at the end of a PHP file
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
dartiss commented 6 years ago

Fixed in #13