Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused variables #56

Open
romaingugert opened this issue Jan 24, 2017 · 0 comments
Open

Unused variables #56

romaingugert opened this issue Jan 24, 2017 · 0 comments

Comments

@romaingugert
Copy link

You can use PHP Mess dector (https://phpmd.org/) to detects when a variable is not used.

> ./phpmd.phar ./ text unusedcode 
multisite-clone-duplicator-develop/include/admin.php:100	Avoid unused local variables such as '$current_site'.
multisite-clone-duplicator-develop/lib/data.php:39	Avoid unused local variables such as '$to_site_prefix_length'.
multisite-clone-duplicator-develop/lib/data.php:43	Avoid unused local variables such as '$option_value'.
multisite-clone-duplicator-develop/lib/data.php:137	Avoid unused local variables such as '$col'.
multisite-clone-duplicator-develop/lib/data.php:215	Avoid unused local variables such as '$result'.
multisite-clone-duplicator-develop/lib/data.php:257	Avoid unused local variables such as '$v'.
multisite-clone-duplicator-develop/lib/duplicate.php:149	Avoid unused local variables such as '$to_site_prefix_length'.
multisite-clone-duplicator-develop/lib/functions.php:146	Avoid unused parameters such as '$locale'.
multisite-clone-duplicator-develop/wp-cli/wp-cli-site-duplicate-subcommand.php:53	Avoid unused parameters such as '$_'.
multisite-clone-duplicator-develop/wp-cli/wp-cli-site-duplicate-subcommand.php:177	Avoid unused local variables such as '$user'.
@pierre-dargham pierre-dargham added this to the release/1.5.0 milestone Jan 24, 2017
@davddo davddo modified the milestones: release/1.5.0, release/1.5.1 May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants