• Resolved sandersweb

    (@sandersweb)


    I use Local by Flywheel to run my local WordPress sites and it’s currently installed in a directory that contains a space: “~/Local sites/…”. When this plugin runs PHPCS it gets the path to the plugin which contains the space, e.g. “/Users/me/Local sites/my-wordpress-site/apps/public/wp-content/plugins/plugin-check/vendors/squizlabs/php_codesniffer/bin/phpcs”. Due to the space, when PHP tries to run this command it breaks without either escaping the space or surrounding it with quotes.

    It might be a good idea to escape or quote any paths before getting PHP to execute a command.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHPCS does not run when installation path contains spaces’ is closed to new replies.