Skip to content

Commit 22405cb

Browse files
committed
Revert "MS Windows compatibility, issue stephpy#34"
This reverts commit 4f41742.
1 parent 4f41742 commit 22405cb

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

autoload/php_cs_fixer.vim

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,7 @@ else
2020
end
2121

2222
" Check the php-cs-fixer version
23-
if (has('win32') || has('win64'))
24-
if empty(matchstr(&shell, 'powershell'))
25-
echoerr('This plugin requires PowerShell in Windows')
26-
finish
27-
else
28-
let g:php_cs_fixer_version = system("(Select-String -InputObject (" . g:php_cs_fixer_version_command . ") -Pattern " . shellescape("\"([0-9])\\.\"") . ").Matches.Groups.Groups[1].value\"")
29-
endif
30-
else
31-
let g:php_cs_fixer_version = system(g:php_cs_fixer_version_command . " | sed -e 's/[^0-9.]*\\([0-9.]*\\).*/\\1/'")
32-
endif
23+
let g:php_cs_fixer_version = system(g:php_cs_fixer_version_command . " | sed -e 's/[^0-9.]*\\([0-9.]*\\).*/\\1/'")
3324

3425
if g:php_cs_fixer_version >= 2
3526
let g:php_cs_fixer_rules = get(g:, 'php_cs_fixer_rules', '@PSR2')

0 commit comments

Comments
 (0)