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



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

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