\MO
Synopsis
- // members
- public integer $_nplurals = 2;
- private string $filename = '';
- // methods
- public string get_filename()
- public void import_from_file()
- public bool export_to_file()
- public string|false export()
- public bool is_entry_good_for_export()
- public true export_to_file_handle()
- public string export_original()
- public string export_translations()
- public string export_headers()
- public string|false get_byteorder()
- public void import_from_reader()
- public void make_entry()
- public string select_plural_form()
- public int get_plural_forms_count()
- // Inherited methods from Gettext_Translations
- public void gettext_select_plural_form()
- public array nplurals_and_expression_from_header()
- public void make_plural_form_function()
- public string parenthesize_plural_exression()
- public array make_headers()
- public void set_header()
- // Inherited methods from Translations
- public bool add_entry()
- public bool add_entry_or_merge()
- public void set_header()
- public void set_headers()
- public void get_header()
- public void translate_entry()
- public string translate()
- public void select_plural_form()
- public int get_plural_forms_count()
- public void translate_plural()
- public void merge_with()
- public void merge_originals_with()
Hierarchy
Extends
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
14 - 322 | TooManyPublicMethods | The class MO has 11 public methods. Consider refactoring MO to keep number of public methods under 10. |
56 | ShortVariable | Avoid variables with short names like $fh. Configured minimum length is 3. |
94 | ShortVariable | Avoid variables with short names like $fh. Configured minimum length is 3. |
100 | LongVariable | Avoid excessively long variable names like $originals_lenghts_addr. Keep variable name length under 20. |
101 | LongVariable | Avoid excessively long variable names like $translations_lenghts_addr. Keep variable name length under 20. |
196 - 276 | CyclomaticComplexity | The method import_from_reader() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
196 - 276 | NPathComplexity | The method import_from_reader() has an NPath complexity of 3584. The configured NPath complexity threshold is 200. |
223 | LongVariable | Avoid excessively long variable names like $originals_lengths_length. Keep variable name length under 20. |
234 | LongVariable | Avoid excessively long variable names like $translations_lenghts_length. Keep variable name length under 20. |
257 | ShortVariable | Avoid variables with short names like $o. Configured minimum length is 3. |
258 | ShortVariable | Avoid variables with short names like $t. Configured minimum length is 3. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
14 | 1 | error | Line indented incorrectly; expected 4 spaces, found 0 |
14 | 1 | error | Each class must be in a namespace of at least one level (a top-level vendor name) |
14 | 39 | error | Opening brace of a class must be on the line after the definition |
16 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
16 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
16 | 9 | warning | Property name "$_nplurals" should not be prefixed with an underscore to indicate visibility |
16 | 9 | error | The var keyword must not be used to declare a property |
16 | 9 | error | Visibility must be declared on property "$_nplurals" |
23 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
23 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
25 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
26 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
27 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
28 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
29 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
30 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
30 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
30 | 12 | error | Method name "MO::get_filename" is not in camel caps format |
30 | 36 | error | Opening brace should be on a new line |
31 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
31 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
32 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
32 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
37 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
38 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
39 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
39 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
39 | 5 | error | Method name "MO::import_from_file" is not in camel caps format |
39 | 5 | error | Visibility must be declared on method "import_from_file" |
39 | 42 | error | Opening brace should be on a new line |
40 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
40 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
40 | 23 | error | Space after opening parenthesis of function call prohibited |
40 | 23 | error | Expected 0 spaces before closing bracket; 1 found |
42 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
42 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
42 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
42 | 38 | error | Expected 0 spaces before closing bracket; 1 found |
43 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
43 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
44 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
44 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
46 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
46 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
48 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
48 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
48 | 23 | error | Space after opening parenthesis of function call prohibited |
48 | 23 | error | Expected 0 spaces before closing bracket; 1 found |
49 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
49 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
55 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
55 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
55 | 5 | error | Method name "MO::export_to_file" is not in camel caps format |
55 | 5 | error | Visibility must be declared on method "export_to_file" |
55 | 40 | error | Opening brace should be on a new line |
56 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
56 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
57 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
57 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
57 | 9 | error | Inline control structures are not allowed |
57 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
57 | 18 | error | Expected 0 spaces before closing bracket; 1 found |
58 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
58 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
58 | 23 | error | Space after opening parenthesis of function call prohibited |
58 | 23 | error | Expected 0 spaces before closing bracket; 1 found |
59 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
59 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
60 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
60 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
61 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
61 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
66 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
66 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
66 | 5 | error | Visibility must be declared on method "export" |
66 | 23 | error | Opening brace should be on a new line |
67 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
67 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
68 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
68 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
68 | 9 | error | Inline control structures are not allowed |
68 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
68 | 22 | error | Expected 0 spaces before closing bracket; 1 found |
69 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
69 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
69 | 16 | error | Space after opening parenthesis of function call prohibited |
69 | 16 | error | Expected 0 spaces before closing bracket; 1 found |
70 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
70 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
70 | 9 | error | Space after opening parenthesis of function call prohibited |
70 | 9 | error | Expected 0 spaces before closing bracket; 1 found |
71 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
71 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
71 | 16 | error | Space after opening parenthesis of function call prohibited |
71 | 16 | error | Expected 0 spaces before closing bracket; 1 found |
72 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
72 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
76 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
77 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
78 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
78 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
78 | 5 | error | Method name "MO::is_entry_good_for_export" is not in camel caps format |
78 | 5 | error | Visibility must be declared on method "is_entry_good_for_export" |
78 | 40 | error | Expected 0 spaces between opening bracket and argument "$entry"; 1 found |
78 | 47 | error | Expected 0 spaces between argument "$entry" and closing bracket; 1 found |
78 | 49 | error | Opening brace should be on a new line |
79 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
79 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
79 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
79 | 14 | error | Space after opening parenthesis of function call prohibited |
79 | 14 | error | Expected 0 spaces before closing bracket; 1 found |
79 | 43 | error | Expected 0 spaces before closing bracket; 1 found |
80 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
80 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
81 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
81 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
83 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
83 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
83 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
83 | 15 | error | Space after opening parenthesis of function call prohibited |
83 | 15 | error | Expected 0 spaces before closing bracket; 1 found |
83 | 51 | error | Expected 0 spaces before closing bracket; 1 found |
84 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
84 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
85 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
85 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
87 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
87 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
88 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
88 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
93 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
94 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
94 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
94 | 5 | error | Method name "MO::export_to_file_handle" is not in camel caps format |
94 | 5 | error | Visibility must be declared on method "export_to_file_handle" |
94 | 41 | error | Opening brace should be on a new line |
95 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
95 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
95 | 20 | error | Space after opening parenthesis of function call prohibited |
95 | 20 | error | Expected 0 spaces before closing bracket; 1 found |
96 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
96 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
97 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
97 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
98 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
98 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
99 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
99 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
100 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
100 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
101 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
101 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
102 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
102 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
103 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
103 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
104 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
104 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
105 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
105 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
105 | 21 | error | Opening parenthesis of a multi-line function call must be the last content on the line |
105 | 32 | error | Only one argument is allowed per line in a multi-line function call |
105 | 40 | error | Only one argument is allowed per line in a multi-line function call |
105 | 51 | error | Only one argument is allowed per line in a multi-line function call |
105 | 59 | error | Only one argument is allowed per line in a multi-line function call |
106 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
106 | 1 | error | Multi-line function call not indented correctly; expected 8 spaces but found 12 |
106 | 41 | error | Only one argument is allowed per line in a multi-line function call |
106 | 56 | error | Only one argument is allowed per line in a multi-line function call |
106 | 66 | error | Closing parenthesis of a multi-line function call must be on a line by itself |
107 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
107 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
109 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
110 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
110 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
111 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
111 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
112 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
112 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
114 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
114 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
116 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
116 | 9 | error | Line indented incorrectly; expected 16 spaces, found 8 |
116 | 9 | error | Expected 1 space after FOREACH keyword; 0 found |
117 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
117 | 13 | error | Line indented incorrectly; expected at least 20 spaces, found 12 |
118 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
118 | 13 | error | Line indented incorrectly; expected at least 20 spaces, found 12 |
119 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
119 | 13 | error | Line indented incorrectly; expected at least 20 spaces, found 12 |
120 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
120 | 13 | error | Line indented incorrectly; expected at least 20 spaces, found 12 |
121 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
121 | 9 | error | Line indented incorrectly; expected 16 spaces, found 8 |
123 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
123 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
124 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
124 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
125 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
125 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
126 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
126 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
128 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
128 | 9 | error | Line indented incorrectly; expected 16 spaces, found 8 |
128 | 9 | error | Expected 1 space after FOREACH keyword; 0 found |
129 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
129 | 13 | error | Line indented incorrectly; expected at least 20 spaces, found 12 |
130 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
130 | 13 | error | Line indented incorrectly; expected at least 20 spaces, found 12 |
131 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
131 | 13 | error | Line indented incorrectly; expected at least 20 spaces, found 12 |
132 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
132 | 13 | error | Line indented incorrectly; expected at least 20 spaces, found 12 |
133 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
133 | 9 | error | Line indented incorrectly; expected 16 spaces, found 8 |
135 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
135 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
136 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
136 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
137 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
137 | 9 | error | Line indented incorrectly; expected at least 16 spaces, found 8 |
138 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
138 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
144 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
144 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
144 | 5 | error | Method name "MO::export_original" is not in camel caps format |
144 | 5 | error | Visibility must be declared on method "export_original" |
144 | 38 | error | Opening brace should be on a new line |
145 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
146 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
146 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
147 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
147 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
147 | 9 | error | Inline control structures are not allowed |
148 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
148 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
148 | 9 | error | Inline control structures are not allowed |
149 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
149 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
150 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
150 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
155 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
156 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
156 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
156 | 5 | error | Method name "MO::export_translations" is not in camel caps format |
156 | 5 | error | Visibility must be declared on method "export_translations" |
156 | 42 | error | Opening brace should be on a new line |
157 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
158 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
158 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
159 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
159 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
161 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
162 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
164 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
164 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
164 | 5 | error | Method name "MO::export_headers" is not in camel caps format |
164 | 5 | error | Visibility must be declared on method "export_headers" |
164 | 31 | error | Opening brace should be on a new line |
165 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
165 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
166 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
166 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
166 | 9 | error | Expected 1 space after FOREACH keyword; 0 found |
167 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
167 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
168 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
168 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
169 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
169 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
170 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
170 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
174 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
175 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
176 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
176 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
176 | 5 | error | Method name "MO::get_byteorder" is not in camel caps format |
176 | 5 | error | Visibility must be declared on method "get_byteorder" |
176 | 36 | error | Opening brace should be on a new line |
177 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
179 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
180 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
180 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
181 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
181 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
182 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
183 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
183 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
184 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
184 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
185 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
185 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
186 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
186 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
186 | 11 | warning | Usage of ELSE IF is discouraged; use ELSEIF instead |
187 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
187 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
188 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
188 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
189 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
189 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
190 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
190 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
191 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
191 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
193 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
194 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
195 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
196 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
196 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
196 | 5 | error | Method name "MO::import_from_reader" is not in camel caps format |
196 | 5 | error | Visibility must be declared on method "import_from_reader" |
196 | 42 | error | Opening brace should be on a new line |
197 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
197 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
198 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
198 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
199 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
199 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
200 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
200 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
201 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
201 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
203 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
203 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
205 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
205 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
206 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
206 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
206 | 9 | error | Inline control structures are not allowed |
207 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
209 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
210 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
210 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
210 | 177 | warning | Line exceeds 120 characters; contains 177 characters |
211 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
211 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
211 | 9 | error | Inline control structures are not allowed |
212 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
214 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
215 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
215 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
215 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
215 | 38 | error | Expected 0 spaces before closing bracket; 1 found |
216 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
216 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
217 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
217 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
219 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
220 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
220 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
220 | 18 | error | Space after opening parenthesis of function call prohibited |
220 | 18 | error | Expected 0 spaces before closing bracket; 1 found |
222 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
223 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
223 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
224 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
224 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
224 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
224 | 63 | error | Expected 0 spaces before closing bracket; 1 found |
225 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
225 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
226 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
226 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
228 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
228 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
229 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
229 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
229 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
229 | 23 | error | Space after opening parenthesis of function call prohibited |
229 | 23 | error | Expected 0 spaces before closing bracket; 1 found |
229 | 72 | error | Expected 0 spaces before closing bracket; 1 found |
230 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
230 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
231 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
231 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
233 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
234 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
234 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
235 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
235 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
235 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
235 | 66 | error | Expected 0 spaces before closing bracket; 1 found |
236 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
236 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
237 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
237 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
239 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
239 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
240 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
240 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
240 | 13 | error | Expected 0 spaces after opening bracket; 1 found |
240 | 23 | error | Space after opening parenthesis of function call prohibited |
240 | 23 | error | Expected 0 spaces before closing bracket; 1 found |
240 | 78 | error | Expected 0 spaces before closing bracket; 1 found |
241 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
241 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
242 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
242 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
244 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
245 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
245 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
245 | 34 | error | Space after opening parenthesis of function call prohibited |
245 | 34 | error | Expected 0 spaces before closing bracket; 1 found |
246 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
246 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
246 | 34 | error | Space after opening parenthesis of function call prohibited |
246 | 34 | error | Expected 0 spaces before closing bracket; 1 found |
248 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
249 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
249 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
251 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
251 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
253 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
253 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
254 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
254 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
256 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
256 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
256 | 9 | error | Space found after opening bracket of FOR loop |
256 | 9 | error | Space found before closing bracket of FOR loop |
256 | 14 | error | Expected 0 spaces after opening bracket; 1 found |
256 | 50 | error | Expected 0 spaces before closing bracket; 1 found |
257 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
257 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
257 | 18 | error | Space after opening parenthesis of function call prohibited |
257 | 18 | error | Expected 0 spaces before closing bracket; 1 found |
258 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
258 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
258 | 18 | error | Space after opening parenthesis of function call prohibited |
258 | 18 | error | Expected 0 spaces before closing bracket; 1 found |
259 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
259 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
259 | 13 | error | Inline control structures are not allowed |
259 | 17 | error | Expected 0 spaces after opening bracket; 1 found |
259 | 28 | error | Expected 0 spaces before closing bracket; 1 found |
261 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
262 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
262 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
263 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
263 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
265 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
265 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
265 | 37 | error | Space after opening parenthesis of function call prohibited |
265 | 37 | error | Expected 0 spaces before closing bracket; 1 found |
266 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
266 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
266 | 37 | error | Space after opening parenthesis of function call prohibited |
266 | 37 | error | Expected 0 spaces before closing bracket; 1 found |
268 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
268 | 13 | error | Line indented incorrectly; expected 16 spaces, found 12 |
269 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
269 | 17 | error | Line indented incorrectly; expected at least 20 spaces, found 16 |
270 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
270 | 13 | error | Line indented incorrectly; expected 16 spaces, found 12 |
271 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
271 | 17 | error | Line indented incorrectly; expected at least 20 spaces, found 16 |
272 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
272 | 17 | error | Line indented incorrectly; expected at least 20 spaces, found 16 |
273 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
273 | 13 | error | Line indented incorrectly; expected 16 spaces, found 12 |
274 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
274 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
275 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
275 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
276 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
276 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
288 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
288 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
288 | 5 | error | Method name "MO::make_entry" is not in camel caps format |
288 | 5 | error | Visibility must be declared on method "make_entry" |
288 | 51 | error | Opening brace should be on a new line |
289 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
289 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
290 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
291 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
291 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
292 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
292 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
293 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
293 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
294 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
294 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
295 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
295 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
296 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
297 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
297 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
298 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
298 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
299 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
299 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
300 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
300 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
301 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
301 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
302 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
302 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
303 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
304 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
304 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
305 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
305 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
306 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
306 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
312 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
312 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
312 | 5 | error | Method name "MO::select_plural_form" is not in camel caps format |
312 | 5 | error | Visibility must be declared on method "select_plural_form" |
312 | 41 | error | Opening brace should be on a new line |
313 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
313 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
314 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
314 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
319 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
319 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
319 | 5 | error | Method name "MO::get_plural_forms_count" is not in camel caps format |
319 | 5 | error | Visibility must be declared on method "get_plural_forms_count" |
319 | 39 | error | Opening brace should be on a new line |
320 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
320 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
321 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
321 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
Tasks
Line | Task |
---|---|
145 | warnings for control characters |
157 | warnings for control characters |
Members
private
- $filename
—
string
Loaded MO file.
public
- $_nplurals
- $entries
- $headers
Methods
public
- export()
- export_headers()
- export_original()
- export_to_file()
- export_to_file_handle()
- export_translations()
- get_byteorder()
- get_filename() — Returns the loaded MO file.
- get_plural_forms_count()
- import_from_file() — Fills up with the entries from MO file $filename
- import_from_reader()
- is_entry_good_for_export()
- make_entry() — Build a Translation_Entry from original string and translation strings, found in a MO file
- select_plural_form()
Inherited from Gettext_Translations
public
- gettext_select_plural_form() — The gettext implementation of select_plural_form.
- make_headers()
- make_plural_form_function() — Makes a function, which will return the right translation index, according to the plural forms header
- nplurals_and_expression_from_header()
- parenthesize_plural_exression() — Adds parentheses to the inner parts of ternary operators in plural expressions, because PHP evaluates ternary oerators from left to right
- set_header()
Inherited from Translations
public
- add_entry() — Add entry to the PO structure
- add_entry_or_merge()
- get_header()
- get_plural_forms_count()
- merge_originals_with()
- merge_with() — Merge $other in the current object.
- select_plural_form() — Given the number of items, returns the 0-based index of the plural form to use
- set_header() — Sets $header PO header to $value
- set_headers()
- translate()
- translate_entry()
- translate_plural()
History
-
2017-05-29T22:42:45+00:00 (commit #ba5872a)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Core remastered to Bootstrap CSS framework.
-
2017-05-17T09:50:09+00:00 (commit #bcd6e9c)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2
-
2017-05-16T19:52:59+00:00 (commit #fd0a296)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2 applied
-
2016-01-25T17:45:50+00:00 (commit #97e2af2)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Pre v.3.0
-
2015-03-28T21:15:41+00:00 (commit #158813e)
Author: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru) / Commiter: Калёнов Денис Михайлович (a-KaDeMi-k@yandex.ru)
ję v2
-
2015-03-17T22:34:17+00:00 (commit #28c49e6)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
#23: Написать автоматические тесты для всей системы https://github.com/Limych/GeniBase/issues/issue/23
-
2015-03-13T19:41:13+00:00 (commit #839eee5)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Setting user ID cookie and some minor code changes. #50
-
2015-03-11T20:40:06+00:00 (commit #d811aca)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Added actions.