Translations::set_header
Sets $header PO header to $value
If the header already exists, it will be overwritten TODO: this should be out of this class, it is gettext specific
Signature
public function set_header(string
$header,
string
$value )
Parameters
$header
— string- header name, without trailing :
$value
— string- header value, without trailing \n
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
60 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
60 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
60 | 5 | error | Method name "Translations::set_header" is not in camel caps format |
60 | 5 | error | Visibility must be declared on method "set_header" |
60 | 42 | error | Opening brace should be on a new line |
61 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
61 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
62 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
62 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |