@@ -44,7 +44,7 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param $manager |
|
47 | + * @param $manager |
|
48 | 48 | * @return $this |
49 | 49 | */ |
50 | 50 | public function setManager($manager) |
@@ -130,7 +130,7 @@ |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
133 | - * @param $method |
|
133 | + * @param string $method |
|
134 | 134 | * @param array $params |
135 | 135 | * @param string $position |
136 | 136 | * @return $this |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | |
234 | 234 | if ($transactions) { |
235 | 235 | foreach ($transactions as $transaction) { |
236 | - $this->addOperation($prefix.'_addTrans', [ |
|
236 | + $this->addOperation($prefix . '_addTrans', [ |
|
237 | 237 | $transaction->orderId, |
238 | 238 | $transaction->affiliation, |
239 | 239 | $transaction->total, |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | |
247 | 247 | if ($transaction->items) { |
248 | 248 | foreach ($transaction->items as $item) { |
249 | - $this->addOperation($prefix.'_addItem', [ |
|
249 | + $this->addOperation($prefix . '_addItem', [ |
|
250 | 250 | $item->orderId, |
251 | 251 | $item->sku, |
252 | 252 | $item->name, |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @param $string |
23 | 23 | * @param $tree |
24 | 24 | * @param bool $selected |
25 | - * @return bool|string |
|
25 | + * @return string|false |
|
26 | 26 | */ |
27 | 27 | public function treeOptions($value, $string, $tree, $selected = false) |
28 | 28 | { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param $string |
38 | 38 | * @param array $array |
39 | 39 | * @param int $level |
40 | - * @return array |
|
40 | + * @return boolean |
|
41 | 41 | */ |
42 | 42 | public function optionTree( |
43 | 43 | $tree, |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * @param $options |
|
76 | + * @param string $options |
|
77 | 77 | * @param bool $value |
78 | 78 | * @param bool $string |
79 | 79 | * @param bool $selected |
80 | - * @return bool|string |
|
80 | + * @return string|false |
|
81 | 81 | */ |
82 | 82 | public function options( |
83 | 83 | $options, |
@@ -9,10 +9,10 @@ discard block |
||
9 | 9 | { |
10 | 10 | $return = ""; |
11 | 11 | |
12 | - $return .= '<option value="0"'.($selected !== "" && $selected == '0' ? ' selected="selected"' |
|
13 | - : '').'>'.translator()->translate("NO").'</option>'; |
|
14 | - $return .= '<option value="1"'.($selected == '1' ? ' selected="selected"' |
|
15 | - : '').'>'.translator()->translate("YES").'</option>'; |
|
12 | + $return .= '<option value="0"' . ($selected !== "" && $selected == '0' ? ' selected="selected"' |
|
13 | + : '') . '>' . translator()->translate("NO") . '</option>'; |
|
14 | + $return .= '<option value="1"' . ($selected == '1' ? ' selected="selected"' |
|
15 | + : '') . '>' . translator()->translate("YES") . '</option>'; |
|
16 | 16 | |
17 | 17 | return $return; |
18 | 18 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $return = ''; |
90 | 90 | foreach ($options as $key => $option) { |
91 | 91 | if (is_string($key) && is_array($option) && !isset($option[$value])) { |
92 | - $return .= '<optgroup label="'.$key.'">'; |
|
92 | + $return .= '<optgroup label="' . $key . '">'; |
|
93 | 93 | $return .= $this->options($option, $value, $string, |
94 | 94 | $selected); |
95 | 95 | $return .= '</optgroup>'; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $oDisabled = ($oDisabled === true) ? ' disabled="disabled" ' |
116 | 116 | : ''; |
117 | 117 | |
118 | - $return .= '<option value="'.$oValue.'"'.$oSelected.''.$oDisabled.'>'.$oString.'</option>'; |
|
118 | + $return .= '<option value="' . $oValue . '"' . $oSelected . '' . $oDisabled . '>' . $oString . '</option>'; |
|
119 | 119 | } |
120 | 120 | } |
121 | 121 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $oString = $option; |
150 | 150 | } |
151 | 151 | $oSelected = ($oValue == $selected) ? ' checked="checked" ' : ''; |
152 | - $return .= '<input type="radio" name="'.$name.'" value="'.$oValue.'" '.$oSelected.' >'.$oString.$separator; |
|
152 | + $return .= '<input type="radio" name="' . $name . '" value="' . $oValue . '" ' . $oSelected . ' >' . $oString . $separator; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | return $return; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | } |
186 | 186 | } |
187 | 187 | |
188 | - return " ".implode(" ", $return); |
|
188 | + return " " . implode(" ", $return); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | protected $tags = []; |
25 | 25 | |
26 | 26 | /** |
27 | - * @return array |
|
27 | + * @return AbstractTag[] |
|
28 | 28 | */ |
29 | 29 | public function getTags() |
30 | 30 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @param $path |
|
43 | + * @param string $path |
|
44 | 44 | * @return string |
45 | 45 | */ |
46 | 46 | public function generateUrl($path) |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param null $baseDir |
|
64 | + * @param string $baseDir |
|
65 | 65 | */ |
66 | 66 | public function setBaseDir($baseDir) |
67 | 67 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * @param AbstractTag $tag |
86 | - * @param null $name |
|
86 | + * @param string $name |
|
87 | 87 | * @return $this |
88 | 88 | */ |
89 | 89 | public function addTag($tag, $name = null) |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function generateUrl($path) |
47 | 47 | { |
48 | - return $this->getBaseDir().$path; |
|
48 | + return $this->getBaseDir() . $path; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -127,11 +127,11 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function addDefault($size) |
129 | 129 | { |
130 | - $fullSize = $size.'x'.$size; |
|
130 | + $fullSize = $size . 'x' . $size; |
|
131 | 131 | $tag = new LinkIcon(); |
132 | 132 | $tag->setSizes($fullSize) |
133 | - ->setHref($this->generateUrl('/favicon-'.$fullSize.'.png')); |
|
134 | - $this->addTag($tag, 'default-'.$fullSize); |
|
133 | + ->setHref($this->generateUrl('/favicon-' . $fullSize . '.png')); |
|
134 | + $this->addTag($tag, 'default-' . $fullSize); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | public function addAndroidIcon() |
@@ -73,7 +73,7 @@ |
||
73 | 73 | abstract protected function doTranslation($slug, $language = false); |
74 | 74 | |
75 | 75 | /** |
76 | - * @param $slug |
|
76 | + * @param boolean|string $slug |
|
77 | 77 | * @param bool $language |
78 | 78 | * @return bool |
79 | 79 | */ |
@@ -81,6 +81,6 @@ |
||
81 | 81 | { |
82 | 82 | $return = $this->doTranslation($slug, $language); |
83 | 83 | |
84 | - return (bool)$return; |
|
84 | + return (bool) $return; |
|
85 | 85 | } |
86 | 86 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * Adds a language to the dictionary |
34 | 34 | * |
35 | 35 | * @param string $language |
36 | - * @return I18n |
|
36 | + * @return Database |
|
37 | 37 | */ |
38 | 38 | public function addLanguage($language) |
39 | 39 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @param $emailTo |
119 | 119 | * @param $nameTo |
120 | 120 | * @param Message $message |
121 | - * @param $i |
|
121 | + * @param integer $i |
|
122 | 122 | * @return Personalization |
123 | 123 | */ |
124 | 124 | protected function generatePersonalization($emailTo, $nameTo, $message, $i) |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | |
218 | 218 | /** |
219 | - * @return array |
|
219 | + * @return string[] |
|
220 | 220 | */ |
221 | 221 | protected function getSupportedContentTypes() |
222 | 222 | { |
@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | return 1; |
55 | 55 | } else { |
56 | 56 | throw new Swift_TransportException( |
57 | - 'Error sending email Code ['.$response->statusCode().']. '. |
|
58 | - $response->body().$response->headers() |
|
57 | + 'Error sending email Code [' . $response->statusCode() . ']. ' . |
|
58 | + $response->body() . $response->headers() |
|
59 | 59 | ); |
60 | 60 | } |
61 | 61 | } |
@@ -135,8 +135,8 @@ discard block |
||
135 | 135 | if (is_array($value)) { |
136 | 136 | $value = $value[$i]; |
137 | 137 | } |
138 | - $value = (string)$value; |
|
139 | - $personalization->addSubstitution('{{'.$varKey.'}}', $value); |
|
138 | + $value = (string) $value; |
|
139 | + $personalization->addSubstitution('{{' . $varKey . '}}', $value); |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | return $personalization; |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | if ($key == 'category') { |
251 | 251 | $this->getMail()->addCategory($value); |
252 | 252 | } else { |
253 | - $this->getMail()->addCustomArg($key, (string)$value); |
|
253 | + $this->getMail()->addCustomArg($key, (string) $value); |
|
254 | 254 | } |
255 | 255 | } |
256 | 256 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @param null $value |
|
72 | + * @param string|false $value |
|
73 | 73 | */ |
74 | 74 | public function setValue($value) |
75 | 75 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @return bool|string |
|
86 | + * @return string|false |
|
87 | 87 | */ |
88 | 88 | public function getProcessedRequestValue() |
89 | 89 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
99 | - * @return bool|string |
|
99 | + * @return string|false |
|
100 | 100 | */ |
101 | 101 | public function getValueFromRequest() |
102 | 102 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
141 | - * @return null |
|
141 | + * @return null|string |
|
142 | 142 | */ |
143 | 143 | public function getName() |
144 | 144 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param $value |
|
165 | + * @param string|false $value |
|
166 | 166 | * @return bool |
167 | 167 | */ |
168 | 168 | public function isValidRequestValue($value) |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
174 | - * @param $value |
|
174 | + * @param string|false $value |
|
175 | 175 | * @return string |
176 | 176 | */ |
177 | 177 | public function cleanRequestValue($value) |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @param array $params |
96 | - * @return mixed|string |
|
96 | + * @return string |
|
97 | 97 | */ |
98 | 98 | public function assemble($params = []) |
99 | 99 | { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
138 | - * @param $map |
|
138 | + * @param boolean $map |
|
139 | 139 | */ |
140 | 140 | public function setMap($map) |
141 | 141 | { |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | |
218 | 218 | /** |
219 | - * @param $key |
|
219 | + * @param string $key |
|
220 | 220 | * @return mixed|null |
221 | 221 | */ |
222 | 222 | public function getParam($key) |