```coffeescript
child_process = require 'child_process'

module.exports =
	activate: (state) ->
		atom.commands.add 'atom-workspace', 'wp-phptidy:run': => @run()
	
	run: ->
		editor = atom.workspace.getActivePaneItem()
		editor.save()

		file = editor?.buffer.file
		filepath = file?.path

		if filepath.length
		  child_process.exec(__dirname + '/../vendor/wp-phptidy.php replace ' + filepath)```

Fix for executing PHP on Windows
user
```coffeescript
child_process = require 'child_process'

module.exports =
	activate: (state) ->
		atom.commands.add 'atom-workspace', 'wp-phptidy:run': => @run()
	
	run: ->
		editor = atom.workspace.getActivePaneItem()
		editor.save()

		file = editor?.buffer.file
		filepath = file?.path

		if filepath.length
		  child_process.exec('php ' + __dirname + '/../vendor/wp-phptidy.php replace ' + filepath)
```
assistant