Class: PhpCop::Cop::Files::PhpEncoding

Inherits:
Cop
  • Object
show all
Defined in:
lib/phpcop/cop/files/phpencoding.rb

Overview

This class test file php use correctly encoding type

Constant Summary collapse

MSG_ALERT_DESCRIB =
'Is not encoding in UTF-8 without BOM.'

Constants inherited from Cop

Cop::MSG_ALERT_FILE

Instance Attribute Summary

Attributes inherited from Cop

#errors

Instance Method Summary collapse

Constructor Details

#initialize(file, line, line_number) ⇒ PhpEncoding

Returns a new instance of PhpEncoding.



11
12
13
14
# File 'lib/phpcop/cop/files/phpencoding.rb', line 11

def initialize(file, line, line_number)
  super(file, line.to_s, line_number)
  test_line
end