@@ -56,8 +56,6 @@ |
||
56 | 56 | * Return true if the ending quote of the string is escaped. |
57 | 57 | * |
58 | 58 | * @param object|array $anything object or array (PHP >= 7) that contains a callable |
59 | - * @param string|int $key|$method key or method name |
|
60 | - * @param bool $isMethod true if the second argument is a method |
|
61 | 59 | * |
62 | 60 | * @return string |
63 | 61 | */ |
@@ -73,7 +73,6 @@ |
||
73 | 73 | /** |
74 | 74 | * Get property from object. |
75 | 75 | * |
76 | - * @param object $object source object |
|
77 | 76 | * @param mixed $key key to retrive from the object or the array |
78 | 77 | * |
79 | 78 | * @return mixed |
@@ -179,7 +179,7 @@ |
||
179 | 179 | * |
180 | 180 | * @param array $value |
181 | 181 | * |
182 | - * @return string|mixed |
|
182 | + * @return string |
|
183 | 183 | */ |
184 | 184 | protected static function joinAny($value) |
185 | 185 | { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | abstract class KeywordsCompiler extends AttributesCompiler |
12 | 12 | { |
13 | 13 | /** |
14 | - * @param Nodes\CaseNode $node |
|
14 | + * @param CaseNode $node |
|
15 | 15 | */ |
16 | 16 | protected function visitCasenode(CaseNode $node) |
17 | 17 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @param Nodes\When $node |
|
48 | + * @param When $node |
|
49 | 49 | */ |
50 | 50 | protected function visitWhen(When $node) |
51 | 51 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * @param Nodes\Filter $node |
|
78 | + * @param Filter $node |
|
79 | 79 | * |
80 | 80 | * @throws \InvalidArgumentException |
81 | 81 | */ |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @param Nodes\Each $node |
|
97 | + * @param Each $node |
|
98 | 98 | */ |
99 | 99 | protected function visitEach(Each $node) |
100 | 100 | { |
@@ -138,6 +138,9 @@ discard block |
||
138 | 138 | } |
139 | 139 | } |
140 | 140 | |
141 | + /** |
|
142 | + * @param \Jade\Nodes\Block $block |
|
143 | + */ |
|
141 | 144 | protected function bufferCustomKeyword($data, $block) |
142 | 145 | { |
143 | 146 | if (isset($data['begin'])) { |
@@ -156,7 +159,7 @@ discard block |
||
156 | 159 | } |
157 | 160 | |
158 | 161 | /** |
159 | - * @param Nodes\CustomKeyword $node |
|
162 | + * @param CustomKeyword $node |
|
160 | 163 | */ |
161 | 164 | protected function visitCustomKeyword(CustomKeyword $node) |
162 | 165 | { |
@@ -15,6 +15,9 @@ discard block |
||
15 | 15 | } |
16 | 16 | } |
17 | 17 | |
18 | + /** |
|
19 | + * @param boolean $containsOnlyArrays |
|
20 | + */ |
|
18 | 21 | protected function parseMixinArguments(&$arguments, &$containsOnlyArrays, &$defaultAttributes) |
19 | 22 | { |
20 | 23 | $newArrayKey = null; |
@@ -72,6 +75,9 @@ discard block |
||
72 | 75 | return $this->parseMixinStringAttribute($data); |
73 | 76 | } |
74 | 77 | |
78 | + /** |
|
79 | + * @param string $defaultAttributes |
|
80 | + */ |
|
75 | 81 | protected function parseMixinAttributes($attributes, $defaultAttributes, $mixinAttributes) |
76 | 82 | { |
77 | 83 | if (!count($attributes)) { |
@@ -112,6 +118,9 @@ discard block |
||
112 | 118 | ); |
113 | 119 | } |
114 | 120 | |
121 | + /** |
|
122 | + * @param string $code |
|
123 | + */ |
|
115 | 124 | protected function renderClosureClosing($code, $arguments = array()) |
116 | 125 | { |
117 | 126 | if (!$this->restrictedScope) { |
@@ -139,7 +148,9 @@ discard block |
||
139 | 148 | } |
140 | 149 | |
141 | 150 | /** |
142 | - * @param Nodes\Mixin $mixin |
|
151 | + * @param Mixin $mixin |
|
152 | + * @param string $name |
|
153 | + * @param string $blockName |
|
143 | 154 | */ |
144 | 155 | protected function visitMixinCall(Mixin $mixin, $name, $blockName, $attributes) |
145 | 156 | { |
@@ -234,7 +245,8 @@ discard block |
||
234 | 245 | } |
235 | 246 | |
236 | 247 | /** |
237 | - * @param Nodes\Mixin $mixin |
|
248 | + * @param Mixin $mixin |
|
249 | + * @param string $name |
|
238 | 250 | */ |
239 | 251 | protected function visitMixinDeclaration(Mixin $mixin, $name) |
240 | 252 | { |
@@ -264,7 +276,7 @@ discard block |
||
264 | 276 | } |
265 | 277 | |
266 | 278 | /** |
267 | - * @param Nodes\Mixin $mixin |
|
279 | + * @param Mixin $mixin |
|
268 | 280 | */ |
269 | 281 | protected function visitMixin(Mixin $mixin) |
270 | 282 | { |
@@ -11,6 +11,9 @@ |
||
11 | 11 | protected $input; |
12 | 12 | protected $name; |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $input |
|
16 | + */ |
|
14 | 17 | public function __construct(CodeHandler $codeHandler, $input, $name) |
15 | 18 | { |
16 | 19 | $this->codeHandler = $codeHandler; |
@@ -7,7 +7,8 @@ discard block |
||
7 | 7 | abstract class TagVisitor extends Visitor |
8 | 8 | { |
9 | 9 | /** |
10 | - * @param Nodes\Tag $tag |
|
10 | + * @param Tag $tag |
|
11 | + * @param boolean $newLinePrettyPrint |
|
11 | 12 | */ |
12 | 13 | protected function visitTagAttributes(Tag $tag, $newLinePrettyPrint, $close = '>') |
13 | 14 | { |
@@ -25,7 +26,7 @@ discard block |
||
25 | 26 | } |
26 | 27 | |
27 | 28 | /** |
28 | - * @param Nodes\Tag $tag |
|
29 | + * @param Tag $tag |
|
29 | 30 | */ |
30 | 31 | protected function initTagName(Tag $tag) |
31 | 32 | { |
@@ -47,7 +48,7 @@ discard block |
||
47 | 48 | } |
48 | 49 | |
49 | 50 | /** |
50 | - * @param Nodes\Tag $tag |
|
51 | + * @param Tag $tag |
|
51 | 52 | */ |
52 | 53 | protected function visitTagContents(Tag $tag) |
53 | 54 | { |
@@ -64,7 +65,7 @@ discard block |
||
64 | 65 | } |
65 | 66 | |
66 | 67 | /** |
67 | - * @param Nodes\Tag $tag |
|
68 | + * @param Tag $tag |
|
68 | 69 | */ |
69 | 70 | protected function compileTag(Tag $tag) |
70 | 71 | { |
@@ -78,7 +79,7 @@ discard block |
||
78 | 79 | } |
79 | 80 | |
80 | 81 | /** |
81 | - * @param Nodes\Tag $tag |
|
82 | + * @param Tag $tag |
|
82 | 83 | */ |
83 | 84 | protected function visitTag(Tag $tag) |
84 | 85 | { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | abstract class Visitor extends KeywordsCompiler |
12 | 12 | { |
13 | 13 | /** |
14 | - * @param Nodes\Node $node |
|
14 | + * @param Node $node |
|
15 | 15 | * |
16 | 16 | * @return array |
17 | 17 | */ |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
26 | - * @param Nodes\Node $node |
|
26 | + * @param Node $node |
|
27 | 27 | * |
28 | 28 | * @return mixed |
29 | 29 | */ |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @param Nodes\Literal $node |
|
59 | + * @param Literal $node |
|
60 | 60 | */ |
61 | 61 | protected function visitLiteral(Literal $node) |
62 | 62 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | - * @param Nodes\Block $block |
|
68 | + * @param Block $block |
|
69 | 69 | */ |
70 | 70 | protected function visitBlock(Block $block) |
71 | 71 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * @param Nodes\Doctype $doctype |
|
78 | + * @param Doctype $doctype |
|
79 | 79 | * |
80 | 80 | * @throws \Exception |
81 | 81 | */ |
@@ -97,7 +97,6 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @param Nodes\Mixin $mixin |
|
101 | 100 | */ |
102 | 101 | protected function visitMixinBlock() |
103 | 102 | { |
@@ -119,7 +118,7 @@ discard block |
||
119 | 118 | } |
120 | 119 | |
121 | 120 | /** |
122 | - * @param Nodes\Comment $comment |
|
121 | + * @param Comment $comment |
|
123 | 122 | */ |
124 | 123 | protected function visitComment(Comment $comment) |
125 | 124 | { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * |
33 | 33 | * @param string $directory the directory to search in pug templates |
34 | 34 | * |
35 | - * @return array count of cached files and error count |
|
35 | + * @return integer[] count of cached files and error count |
|
36 | 36 | */ |
37 | 37 | public function cacheDirectory($directory) |
38 | 38 | { |