@@ -60,8 +60,8 @@ |
||
60 | 60 | class RawTag extends AbstractBlock |
61 | 61 | { |
62 | 62 | /** |
63 | - * {@inheritdoc} |
|
64 | - */ |
|
63 | + * {@inheritdoc} |
|
64 | + */ |
|
65 | 65 | public function parse(array &$tokens): void |
66 | 66 | { |
67 | 67 | $lexer = new Lexer( |
@@ -59,8 +59,8 @@ |
||
59 | 59 | class CommentTag extends AbstractBlock |
60 | 60 | { |
61 | 61 | /** |
62 | - * {@inheritdoc} |
|
63 | - */ |
|
62 | + * {@inheritdoc} |
|
63 | + */ |
|
64 | 64 | public function render(Context $context): string |
65 | 65 | { |
66 | 66 | return ''; |
@@ -56,13 +56,13 @@ |
||
56 | 56 | * @package Platine\Template\Parser |
57 | 57 | * |
58 | 58 | */ |
59 | - /** |
|
60 | - * A drop is a class which allows you to export DOM like things to template. |
|
61 | - * Methods of drops are callable. |
|
62 | - * The main use for drops is the implement lazy loaded objects. |
|
63 | - * If you would like to make data available to the web designers which you don't |
|
64 | - * want loaded unless needed then a drop is a great way to do that. |
|
65 | - */ |
|
59 | + /** |
|
60 | + * A drop is a class which allows you to export DOM like things to template. |
|
61 | + * Methods of drops are callable. |
|
62 | + * The main use for drops is the implement lazy loaded objects. |
|
63 | + * If you would like to make data available to the web designers which you don't |
|
64 | + * want loaded unless needed then a drop is a great way to do that. |
|
65 | + */ |
|
66 | 66 | abstract class Drop implements Stringable |
67 | 67 | { |
68 | 68 | /** |
@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * {@inheritdoc} |
70 | - */ |
|
70 | + */ |
|
71 | 71 | public function read(string $name): string |
72 | 72 | { |
73 | 73 | if (array_key_exists($name, $this->data) === false) { |
@@ -56,8 +56,8 @@ |
||
56 | 56 | class IfnotTag extends IfTag |
57 | 57 | { |
58 | 58 | /** |
59 | - * {@inheritdoc} |
|
60 | - */ |
|
59 | + * {@inheritdoc} |
|
60 | + */ |
|
61 | 61 | protected function negateCondition(mixed $value): mixed |
62 | 62 | { |
63 | 63 | return !$value; |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * {@inheritdoc} |
|
77 | - */ |
|
76 | + * {@inheritdoc} |
|
77 | + */ |
|
78 | 78 | public function read(string $key, bool $unserialize = true): mixed |
79 | 79 | { |
80 | 80 | $success = false; |
@@ -84,16 +84,16 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * {@inheritdoc} |
|
88 | - */ |
|
87 | + * {@inheritdoc} |
|
88 | + */ |
|
89 | 89 | public function exists(string $key): bool |
90 | 90 | { |
91 | 91 | return apcu_exists($this->prefix . $key) === true; |
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
95 | - * {@inheritdoc} |
|
96 | - */ |
|
95 | + * {@inheritdoc} |
|
96 | + */ |
|
97 | 97 | public function write(string $key, mixed $value, bool $serialize = true): bool |
98 | 98 | { |
99 | 99 | return apcu_store($this->prefix . $key, $value, $this->expire); |
@@ -101,8 +101,8 @@ discard block |
||
101 | 101 | |
102 | 102 | |
103 | 103 | /** |
104 | - * {@inheritdoc} |
|
105 | - */ |
|
104 | + * {@inheritdoc} |
|
105 | + */ |
|
106 | 106 | public function flush(bool $expired = false): bool |
107 | 107 | { |
108 | 108 | return apcu_clear_cache(); |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | protected array $data = []; |
63 | 63 | |
64 | 64 | /** |
65 | - * {@inheritdoc} |
|
66 | - */ |
|
65 | + * {@inheritdoc} |
|
66 | + */ |
|
67 | 67 | public function read(string $key, bool $unserialize = false): mixed |
68 | 68 | { |
69 | 69 | if ($this->exists($key) === false) { |
@@ -74,16 +74,16 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * {@inheritdoc} |
|
78 | - */ |
|
77 | + * {@inheritdoc} |
|
78 | + */ |
|
79 | 79 | public function exists(string $key): bool |
80 | 80 | { |
81 | 81 | return isset($this->data[$key]); |
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
85 | - * {@inheritdoc} |
|
86 | - */ |
|
85 | + * {@inheritdoc} |
|
86 | + */ |
|
87 | 87 | public function write(string $key, mixed $value, bool $serialize = false): bool |
88 | 88 | { |
89 | 89 | $this->data[$key] = $value; |
@@ -93,8 +93,8 @@ discard block |
||
93 | 93 | |
94 | 94 | |
95 | 95 | /** |
96 | - * {@inheritdoc} |
|
97 | - */ |
|
96 | + * {@inheritdoc} |
|
97 | + */ |
|
98 | 98 | public function flush(bool $expired = false): bool |
99 | 99 | { |
100 | 100 | $this->data = []; |
@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
90 | - * {@inheritdoc} |
|
91 | - */ |
|
90 | + * {@inheritdoc} |
|
91 | + */ |
|
92 | 92 | public function read(string $key, bool $unserialize = true): mixed |
93 | 93 | { |
94 | 94 | if ($this->exists($key) === false) { |
@@ -105,8 +105,8 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
108 | - * {@inheritdoc} |
|
109 | - */ |
|
108 | + * {@inheritdoc} |
|
109 | + */ |
|
110 | 110 | public function exists(string $key): bool |
111 | 111 | { |
112 | 112 | $file = $this->getFilePath($key); |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
122 | - * {@inheritdoc} |
|
123 | - */ |
|
122 | + * {@inheritdoc} |
|
123 | + */ |
|
124 | 124 | public function write(string $key, mixed $value, bool $serialize = true): bool |
125 | 125 | { |
126 | 126 | $file = $this->getFilePath($key); |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | |
138 | 138 | |
139 | 139 | /** |
140 | - * {@inheritdoc} |
|
141 | - */ |
|
140 | + * {@inheritdoc} |
|
141 | + */ |
|
142 | 142 | public function flush(bool $expired = false): bool |
143 | 143 | { |
144 | 144 | $list = glob(sprintf('%s%s*', $this->path, $this->prefix)); |
@@ -56,24 +56,24 @@ discard block |
||
56 | 56 | class NullCache extends AbstractCache |
57 | 57 | { |
58 | 58 | /** |
59 | - * {@inheritdoc} |
|
60 | - */ |
|
59 | + * {@inheritdoc} |
|
60 | + */ |
|
61 | 61 | public function read(string $key, bool $unserialize = false): mixed |
62 | 62 | { |
63 | 63 | return false; |
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * {@inheritdoc} |
|
68 | - */ |
|
67 | + * {@inheritdoc} |
|
68 | + */ |
|
69 | 69 | public function exists(string $key): bool |
70 | 70 | { |
71 | 71 | return false; |
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
75 | - * {@inheritdoc} |
|
76 | - */ |
|
75 | + * {@inheritdoc} |
|
76 | + */ |
|
77 | 77 | public function write(string $key, mixed $value, bool $serialize = false): bool |
78 | 78 | { |
79 | 79 | return true; |
@@ -81,8 +81,8 @@ discard block |
||
81 | 81 | |
82 | 82 | |
83 | 83 | /** |
84 | - * {@inheritdoc} |
|
85 | - */ |
|
84 | + * {@inheritdoc} |
|
85 | + */ |
|
86 | 86 | public function flush(bool $expired = false): bool |
87 | 87 | { |
88 | 88 | return true; |