<commit_before>" ~/.vim/after/ftplugin/php.vim

setlocal define=^\\s*const matchpairs-=<:> keywordprg=pman

let b:commentary_format = '// %s'

if exists('$PHP_BINARY')
  let b:syntastic_php_exec = $PHP_BINARY
endif

" It's assumed that 'autowrite' and 'autoread' are set.
command! -buffer FixCS execute '!php-cs-fixer fix' shellescape(expand('%:p'))

nnoremap <buffer> <LocalLeader>= :FixCS<CR>
nnoremap <buffer> <LocalLeader>i :call PhpInsertUse()<CR>

call undo#ftplugin(
      \ 'setlocal define< matchpairs< keywordprg<',
      \ 'unlet! b:commentary_format b:syntastic_php_exec',
      \ 'silent! delcommand FixCS',
      \ 'silent! nunmap <buffer> <LocalLeader>=',
      \ 'silent! nunmap <buffer> <LocalLeader>i',
      \ )<commit_msg>vim: update filetype settings for PHP<commit_after>" ~/.vim/after/ftplugin/php.vim

setlocal define=\\v\\c^\\s*%(%(private\|protected\|public)\\s+)?const
setlocal matchpairs-=<:> keywordprg=pman

let b:commentary_format = '// %s'

if exists('$PHP_BINARY')
  let b:syntastic_php_exec = $PHP_BINARY
endif

" It's assumed that 'autowrite' and 'autoread' are set.
command! -buffer FixCS execute '!php-cs-fixer fix' shellescape(expand('%:p'))

nnoremap <buffer> <LocalLeader>= :FixCS<CR>
nnoremap <buffer> <LocalLeader>e :call PhpExpandClass()<CR>
nnoremap <buffer> <LocalLeader>i :call PhpInsertUse()<CR>

call undo#ftplugin(
      \ 'setlocal define< matchpairs< keywordprg<',
      \ 'unlet! b:commentary_format b:syntastic_php_exec',
      \ 'silent! delcommand FixCS',
      \ 'silent! nunmap <buffer> <LocalLeader>=',
      \ 'silent! nunmap <buffer> <LocalLeader>e',
      \ 'silent! nunmap <buffer> <LocalLeader>i',
      \ )
{'fraction_non_alphanumeric': 0.16347305389221556, 'fraction_numerical': 0.0, 'mean_word_length': 4.57, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1177548', 'n_tokens_mistral': 643, 'n_tokens_neox': 632, 'n_words': 133}