@@ -29,8 +29,8 @@ |
||
29 | 29 | { |
30 | 30 | $this->tokenParser = new SwitchTokenParser(); |
31 | 31 | $this->twigParser = $this->getMockBuilder('Twig_Parser') |
32 | - ->disableOriginalConstructor() |
|
33 | - ->getMock(); |
|
32 | + ->disableOriginalConstructor() |
|
33 | + ->getMock(); |
|
34 | 34 | $this->tokenParser->setParser($this->twigParser); |
35 | 35 | } |
36 | 36 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $i = 1; |
58 | 58 | foreach ($filters as $w_key => $w_value) { |
59 | 59 | $qb->andWhere($qb->expr()->eq('tbl.' . $w_key, '?' . $i)) |
60 | - ->setParameter($i, $w_value); |
|
60 | + ->setParameter($i, $w_value); |
|
61 | 61 | $i++; |
62 | 62 | } |
63 | 63 | } |
@@ -36,12 +36,12 @@ |
||
36 | 36 | |
37 | 37 | if ($parentId > 0) { |
38 | 38 | $qb->andWhere('c.parent = :parentid') |
39 | - ->setParameter('parentid', $parentId); |
|
39 | + ->setParameter('parentid', $parentId); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | if ($excludedId > 0) { |
43 | 43 | $qb->andWhere('c.id != :id') |
44 | - ->setParameter('id', $excludedId); |
|
44 | + ->setParameter('id', $excludedId); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | $query = $qb->getQuery(); |
@@ -49,7 +49,6 @@ |
||
49 | 49 | * Example: |
50 | 50 | * {{ route.defaults|zikularoutesmodule_arrayToString }} |
51 | 51 | * |
52 | - * @param array $array The input array. |
|
53 | 52 | * |
54 | 53 | * @return string Output string for display. |
55 | 54 | */ |
@@ -262,6 +262,9 @@ |
||
262 | 262 | return $this->mailerApi->sendMessage($message, null, null, $textBody, $html); |
263 | 263 | } |
264 | 264 | |
265 | + /** |
|
266 | + * @param string $notificationType |
|
267 | + */ |
|
265 | 268 | private function generateEmailSubject($notificationType, array $templateArgs = []) |
266 | 269 | { |
267 | 270 | $siteName = $this->variableApi->getSystemVar('sitename'); |
@@ -75,7 +75,7 @@ |
||
75 | 75 | /** |
76 | 76 | * set the user item |
77 | 77 | * |
78 | - * @param User $user the user item |
|
78 | + * @param integer $user the user item |
|
79 | 79 | */ |
80 | 80 | public function setUser($user) |
81 | 81 | { |
@@ -208,7 +208,7 @@ |
||
208 | 208 | if (typeof exports !== "undefined" && typeof module !== "undefined") { |
209 | 209 | module.exports = components; |
210 | 210 | } |
211 | -EOT; |
|
211 | +eot; |
|
212 | 212 | |
213 | 213 | return $output; |
214 | 214 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | case 0: |
64 | 64 | echo "case 0"; |
65 | 65 | } |
66 | -EOF |
|
66 | +eof |
|
67 | 67 | ]; |
68 | 68 | |
69 | 69 | // #2 switch with two cases, second with break |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | echo "case 1"; |
90 | 90 | break; |
91 | 91 | } |
92 | -EOF |
|
92 | +eof |
|
93 | 93 | ]; |
94 | 94 | |
95 | 95 | // #3 switch with two cases (second with break) and default |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | default: |
118 | 118 | echo "default case"; |
119 | 119 | } |
120 | -EOF |
|
120 | +eof |
|
121 | 121 | ]; |
122 | 122 | |
123 | 123 | // #4 switch with two cases (first without body, second with break) and default |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | default: |
145 | 145 | echo "default case"; |
146 | 146 | } |
147 | -EOF |
|
147 | +eof |
|
148 | 148 | ]; |
149 | 149 | |
150 | 150 | return $tests; |
@@ -118,7 +118,7 @@ |
||
118 | 118 | } |
119 | 119 | } |
120 | 120 | } |
121 | -EOF |
|
121 | +eof |
|
122 | 122 | ; |
123 | 123 | |
124 | 124 | return json_decode($json, true); |