1 | <?php |
||
9 | class FileBuffer extends Contracts\ABuffer |
||
10 | { |
||
11 | /** |
||
12 | * File handle. |
||
13 | * |
||
14 | * @access private |
||
15 | * |
||
16 | * @var resource |
||
17 | */ |
||
18 | private $handle; |
||
19 | |||
20 | /** |
||
21 | * Constructing a file buffer reading HTSL content from file system. |
||
22 | * |
||
23 | * @access public |
||
24 | * |
||
25 | * @param Htsl $htsl Main Htsl object |
||
26 | * @param string $filePath |
||
27 | */ |
||
28 | public function __construct( Htsl$htsl, string$filePath ) |
||
42 | |||
43 | /** |
||
44 | * Destructor |
||
45 | * |
||
46 | * @access public |
||
47 | */ |
||
48 | public function __destruct() |
||
52 | |||
53 | /** |
||
54 | * Getting first line or next line. |
||
55 | * |
||
56 | * @access public |
||
57 | * |
||
58 | * @return \Htsl\ReadingBuffer\Line |
||
59 | */ |
||
60 | public function getLine():Line |
||
66 | |||
67 | /** |
||
68 | * Getting another file reference file of this buffer. |
||
69 | * |
||
70 | * @access public |
||
71 | * |
||
72 | * @param string $fileName |
||
73 | * |
||
74 | * @return \Htsl\ReadingBuffer\Contracts\ABuffer |
||
75 | */ |
||
76 | public function goSide( $fileName ):parent |
||
82 | } |
||
83 |
This check looks for improperly formatted assignments.
Every assignment must have exactly one space before and one space after the equals operator.
To illustrate:
will have no issues, while
will report issues in lines 1 and 2.