\POMO_CachedFileReader
Reads the contents of the file in the beginning.
Synopsis
- // Inherited members from POMO_StringReader
- public string $_str;
- // methods
- public void __construct()
- public void POMO_CachedFileReader()
- // Inherited methods from POMO_StringReader
- public void __construct()
- public void POMO_StringReader()
- public string read()
- public int seekto()
- public int length()
- public string read_all()
- // Inherited methods from POMO_Reader
- public void __construct()
- public void POMO_Reader()
- public void setEndian()
- public mixed readint32()
- public mixed readint32array()
- public string substr()
- public int strlen()
- public array str_split()
- public int pos()
- public true is_resource()
- public true close()
Hierarchy
Extends
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
228 - 230 | ConstructorWithNameAsEnclosingClass | Classes should not have a constructor method with the same name as the class |
289 - 291 | ConstructorWithNameAsEnclosingClass | Classes should not have a constructor method with the same name as the class |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
14 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
14 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
14 | 9 | error | The var keyword must not be used to declare a property |
14 | 9 | error | Visibility must be declared on property "$endian" |
15 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
15 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
15 | 9 | warning | Property name "$_post" should not be prefixed with an underscore to indicate visibility |
15 | 9 | error | The var keyword must not be used to declare a property |
15 | 9 | error | Visibility must be declared on property "$_post" |
20 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
20 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
20 | 5 | error | Visibility must be declared on method "__construct" |
20 | 28 | error | Opening brace should be on a new line |
21 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
21 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
22 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
22 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
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 |
28 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
28 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
28 | 12 | error | Method name "POMO_Reader::POMO_Reader" is not in camel caps format |
28 | 35 | error | Opening brace should be on a new line |
29 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
29 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
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 |
37 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
37 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
37 | 5 | error | Visibility must be declared on method "setEndian" |
37 | 33 | error | Opening brace should be on a new line |
38 | 1 | error | Spaces must be used to indent lines; tabs are not allowed |
38 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
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 |
47 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
47 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
47 | 5 | error | Visibility must be declared on method "readint32" |
47 | 26 | error | Opening brace should be on a new line |
48 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
48 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
49 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
49 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
49 | 9 | error | Inline control structures are not allowed |
50 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
51 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
51 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
52 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
52 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
53 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
53 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
53 | 16 | error | Space after opening parenthesis of function call prohibited |
53 | 16 | error | Expected 0 spaces before closing bracket; 1 found |
54 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
54 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
63 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
63 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
63 | 5 | error | Visibility must be declared on method "readint32array" |
63 | 37 | error | Opening brace should be on a new line |
64 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
64 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
65 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
65 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
65 | 9 | error | Inline control structures are not allowed |
66 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
67 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
67 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
68 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
68 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
69 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
69 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
77 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
77 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
77 | 5 | error | Visibility must be declared on method "substr" |
77 | 47 | error | Opening brace should be on a new line |
78 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
78 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
79 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
79 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
80 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
80 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
81 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
81 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
82 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
82 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
83 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
83 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
89 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
89 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
89 | 5 | error | Visibility must be declared on method "strlen" |
89 | 30 | error | Opening brace should be on a new line |
90 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
90 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
91 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
91 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
92 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
92 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
93 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
93 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
94 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
94 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
95 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
95 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
102 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
102 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
102 | 5 | error | Method name "POMO_Reader::str_split" is not in camel caps format |
102 | 5 | error | Visibility must be declared on method "str_split" |
102 | 46 | error | Opening brace should be on a new line |
103 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
103 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
104 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
104 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
105 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
105 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
106 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
106 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
106 | 13 | error | Inline control structures are not allowed |
107 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
108 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
108 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
109 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
109 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
110 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
110 | 13 | error | Line indented incorrectly; expected at least 16 spaces, found 12 |
110 | 20 | error | Space after opening parenthesis of function call prohibited |
110 | 20 | error | Expected 0 spaces before closing bracket; 1 found |
111 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
111 | 9 | error | Line indented incorrectly; expected 12 spaces, found 8 |
112 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
112 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
117 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
117 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
117 | 5 | error | Visibility must be declared on method "pos" |
117 | 20 | error | Opening brace should be on a new line |
118 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
118 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
119 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
119 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
124 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
124 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
124 | 5 | error | Method name "POMO_Reader::is_resource" is not in camel caps format |
124 | 5 | error | Visibility must be declared on method "is_resource" |
124 | 28 | error | Opening brace should be on a new line |
125 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
125 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
126 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
126 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
131 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
131 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
131 | 5 | error | Visibility must be declared on method "close" |
131 | 22 | error | Opening brace should be on a new line |
132 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
132 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
133 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
133 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
214 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
214 | 5 | error | Line indented incorrectly; expected at least 8 spaces, found 4 |
214 | 9 | warning | Property name "$_str" should not be prefixed with an underscore to indicate visibility |
214 | 9 | error | The var keyword must not be used to declare a property |
214 | 9 | error | Visibility must be declared on property "$_str" |
219 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
219 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
219 | 5 | error | Visibility must be declared on method "__construct" |
219 | 27 | error | Expected 0 spaces between opening bracket and argument "$str"; 1 found |
219 | 37 | error | Expected 0 spaces between argument "$str" and closing bracket; 1 found |
219 | 39 | error | Opening brace should be on a new line |
220 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
220 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
221 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
221 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
222 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
222 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
223 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
223 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
228 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
228 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
228 | 12 | error | Method name "POMO_StringReader::POMO_StringReader" is not in camel caps format |
228 | 40 | error | Expected 0 spaces between opening bracket and argument "$str"; 1 found |
228 | 50 | error | Expected 0 spaces between argument "$str" and closing bracket; 1 found |
228 | 52 | error | Opening brace should be on a new line |
229 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
229 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
229 | 15 | error | Space after opening parenthesis of function call prohibited |
229 | 15 | error | Expected 0 spaces before closing bracket; 1 found |
230 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
230 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
236 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
236 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
236 | 5 | error | Visibility must be declared on method "read" |
236 | 27 | error | Opening brace should be on a new line |
237 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
237 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
238 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
238 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
239 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
239 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
239 | 9 | error | Inline control structures are not allowed |
240 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
240 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
241 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
241 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
247 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
247 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
247 | 5 | error | Visibility must be declared on method "seekto" |
247 | 27 | error | Opening brace should be on a new line |
248 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
248 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
249 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
249 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
249 | 9 | error | Inline control structures are not allowed |
250 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
250 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
251 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
251 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
256 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
256 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
256 | 5 | error | Visibility must be declared on method "length" |
256 | 23 | error | Opening brace should be on a new line |
257 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
257 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
258 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
258 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
263 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
263 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
263 | 5 | error | Method name "POMO_StringReader::read_all" is not in camel caps format |
263 | 5 | error | Visibility must be declared on method "read_all" |
263 | 25 | error | Opening brace should be on a new line |
264 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
264 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
265 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
265 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
278 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
278 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
278 | 5 | error | Visibility must be declared on method "__construct" |
278 | 27 | error | Expected 0 spaces between opening bracket and argument "$filename"; 1 found |
278 | 37 | error | Expected 0 spaces between argument "$filename" and closing bracket; 1 found |
278 | 39 | error | Opening brace should be on a new line |
279 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
279 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
280 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
280 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
281 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
281 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
281 | 9 | error | Inline control structures are not allowed |
282 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
283 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
283 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
284 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
284 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
289 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
289 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
289 | 12 | error | Method name "POMO_CachedFileReader::POMO_CachedFileReader" is not in camel caps format |
289 | 44 | error | Expected 0 spaces between opening bracket and argument "$filename"; 1 found |
289 | 54 | error | Expected 0 spaces between argument "$filename" and closing bracket; 1 found |
289 | 56 | error | Opening brace should be on a new line |
290 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
290 | 9 | error | Line indented incorrectly; expected at least 12 spaces, found 8 |
290 | 15 | error | Space after opening parenthesis of function call prohibited |
290 | 15 | error | Expected 0 spaces before closing bracket; 1 found |
291 | 1 | error | Spaces must be used for alignment; tabs are not allowed |
291 | 5 | error | Line indented incorrectly; expected 8 spaces, found 4 |
Members
public
- $_post
- $_str
- $endian
Methods
public
- __construct() — PHP5 constructor.
- POMO_CachedFileReader() — PHP4 constructor.
Inherited from POMO_StringReader
public
- POMO_StringReader() — PHP4 constructor.
- length()
- read()
- read_all()
- seekto()
Inherited from POMO_Reader
public
- POMO_Reader() — PHP4 constructor.
- close()
- is_resource()
- pos()
- readint32() — Reads a 32bit Integer from the Stream
- readint32array() — Reads an array of 32-bit Integers from the Stream
- setEndian() — Sets the endianness of the file.
- str_split()
- strlen()
- substr()
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-16T23:37:10+00:00 (commit #ad75944)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Fixes for PHP 7 compatibility
-
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.