{"id":1934,"date":"2016-10-20T10:26:48","date_gmt":"2016-10-20T08:26:48","guid":{"rendered":"https:\/\/guven.atbakan.com\/blog\/?p=1934"},"modified":"2024-04-14T00:26:00","modified_gmt":"2024-04-13T21:26:00","slug":"my-phpstorm-file-watcher-for-php-cs-fixer","status":"publish","type":"post","link":"https:\/\/guven.atbakan.com\/blog\/my-phpstorm-file-watcher-for-php-cs-fixer\/","title":{"rendered":"My PhpStorm file watcher for php-cs-fixer"},"content":{"rendered":"<p>I started using <a href=\"https:\/\/github.com\/FriendsOfPHP\/PHP-CS-Fixer\">PHP Code Style Fixer<\/a> long time ago for automatically fix my code style. You can use this tool via command line. But also you can add a file-watcher for PhpStorm. It runs php-cs-fixer on every file save. So you dont need to run php-cs-fixer manually.<\/p>\n<p>Here you can download <code>watchers.xml<\/code> : https:\/\/gist.github.com\/shibby\/6cb1fcafe3747ce8e2f7aa0e8dc2b516<\/p>\n<p>All you need to do is import xml file from PhpStorm Settings-&gt;File Watchers and installing php-cs-fixer to <code>\/usr\/local\/bin<\/code> folder.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I started using PHP Code Style Fixer long time ago for automatically fix my code style. You can use this tool via command line. But also you can add a file-watcher for PhpStorm. It runs php-cs-fixer on every file save. So you dont need to run php-cs-fixer manually. Here you can download watchers.xml : https:\/\/gist.github.com\/shibby\/6cb1fcafe3747ce8e2f7aa0e8dc2b516 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1934","post","type-post","status-publish","format-standard","hentry","category-genel"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/posts\/1934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/comments?post=1934"}],"version-history":[{"count":3,"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/posts\/1934\/revisions"}],"predecessor-version":[{"id":1969,"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/posts\/1934\/revisions\/1969"}],"wp:attachment":[{"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/media?parent=1934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/categories?post=1934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guven.atbakan.com\/blog\/wp-json\/wp\/v2\/tags?post=1934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}