{"action":"opened","issue":{"url":"https://api.github.com/repos/gaving/gulp-phpcbf/issues/4","labels_url":"https://api.github.com/repos/gaving/gulp-phpcbf/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/gaving/gulp-phpcbf/issues/4/comments","events_url":"https://api.github.com/repos/gaving/gulp-phpcbf/issues/4/events","html_url":"https://github.com/gaving/gulp-phpcbf/issues/4","id":111239033,"number":4,"title":"Can't get it to work!","user":{"login":"onlyskyguy","id":10752336,"avatar_url":"https://avatars.githubusercontent.com/u/10752336?v=3","gravatar_id":"","url":"https://api.github.com/users/onlyskyguy","html_url":"https://github.com/onlyskyguy","followers_url":"https://api.github.com/users/onlyskyguy/followers","following_url":"https://api.github.com/users/onlyskyguy/following{/other_user}","gists_url":"https://api.github.com/users/onlyskyguy/gists{/gist_id}","starred_url":"https://api.github.com/users/onlyskyguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onlyskyguy/subscriptions","organizations_url":"https://api.github.com/users/onlyskyguy/orgs","repos_url":"https://api.github.com/users/onlyskyguy/repos","events_url":"https://api.github.com/users/onlyskyguy/events{/privacy}","received_events_url":"https://api.github.com/users/onlyskyguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-13T18:22:27Z","updated_at":"2015-10-13T18:22:27Z","closed_at":null,"body":"Can't get gulp-phpcbf to work! Any help here would be greatly appreciated! \r\n\r\nI AM able to run phpcbf from the terminal though with the following command:\r\n\r\n```\r\n$ (Project Folder) lib/vendor/composer/bin/phpcbf --standard=\"WordPress\" src/test.php\r\n```\r\nResult:\r\n```\r\nChanging into directory /path/to/project/src\r\nProcessing test.php [PHP => 945 tokens in 193 lines]... DONE in 36ms (0 fixable violations)\r\nNo fixable errors were found\r\nTime: 70ms; Memory: 5.75Mb\r\n```\r\n\r\nI have composer installed in my project directory in:\r\n\r\n```\r\npath/to/project/lib/vendor/composer\r\n```\r\n\r\nI'm also using [gulp-phpcs](https://github.com/JustBlackBird/gulp-phpcs) and it seems to be working fine, I get an output of problems. I've also got the [WP coding standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) installed, although gulp-phpcbf fails with any standard. \r\n\r\nPHP Codesniffer and the WP Standards seem to be installed fine, as they also work with gulp-phpcs. I'm on Ubuntu.\r\n\r\nHere's my gulp task:\r\n\r\n```\r\ngulp.task( 'phpcbf', function() {\r\n\treturn gulp.src(['src/**/*.php']) \r\n\t\t.pipe(plugins.phpcbf({\r\n\t\t   \tbin: 'lib/vendor/composer/bin/phpcbf',\r\n\t\t    standard: 'WordPress'\r\n\t\t    //warningSeverity: 0\r\n\t\t}))\r\n\t\t.pipe(gulp.dest(['src/']));\r\n});\r\n```\r\n\r\nI get the following error:\r\n\r\n```\r\nevents.js:141\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n  Error: /bin/sh -c lib/vendor/composer/bin/phpcbf --standard=\"WordPress\"\r\n  \r\n  - Command failed: /bin/sh -c lib/vendor/composer/bin/phpcbf --standard=\"WordPress\"\r\n  \r\n  - child_process.js:203 ChildProcess.exithandler\r\n    child_process.js:203:12\r\n  \r\n  - events.js:87 emitTwo\r\n    events.js:87:13\r\n  \r\n  - events.js:172 ChildProcess.emit\r\n    events.js:172:7\r\n  \r\n  - child_process.js:817 maybeClose\r\n    internal/child_process.js:817:16\r\n  \r\n  - child_process.js:211 Process.ChildProcess._handle.onexit\r\n    internal/child_process.js:211:5\r\n\r\n```\r\n\r\nSome kind of permissions problem? Why can't gulp execute the phpcbf script?\r\n\r\nNot sure where to go from here. Thanks for any help!"}}