Class: Avm::Files::Formatter::Formats::Php

Inherits:
GenericPlain show all
Defined in:
lib/avm/files/formatter/formats/php.rb

Constant Summary collapse

VALID_BASENAMES =
%w[*.php].freeze
VALID_TYPES =
['x-php'].freeze

Instance Method Summary collapse

Methods inherited from GenericPlain

#internal_apply, #string_apply

Methods inherited from Base

#apply, #match?, #name, #valid_basenames, #valid_types

Instance Method Details

#file_apply(file) ⇒ Object



14
15
16
17
# File 'lib/avm/files/formatter/formats/php.rb', line 14

def file_apply(file)
  ::Avm::Executables.php_cs_fixer.command.append(['fix', file]).system!
  super(file)
end