@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param string $search Search string to look for. |
112 | 112 | * @param string $replace Replacement value for the first found occurrence. |
113 | 113 | * @param string $subject The string you want to look up to replace the first element. |
114 | - * @return mixed Replaced string |
|
114 | + * @return string Replaced string |
|
115 | 115 | */ |
116 | 116 | public static function replaceFirst($search, $replace, $subject) |
117 | 117 | { |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * @param string $content The content to minify. |
165 | 165 | * @param array $options Optional arguments to provide for minification: |
166 | 166 | * - comments: boolean, where html comments should be removed or not. defaults to false |
167 | - * @return mixed Returns the minified content. |
|
167 | + * @return string Returns the minified content. |
|
168 | 168 | * @since 1.0.7 |
169 | 169 | */ |
170 | 170 | public static function minify($content, array $options = []) |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * ``` |
54 | 54 | * |
55 | 55 | * @param array $data The input data to cover given sensitive key values. `['username' => 'foo', 'password' => 'bar']`. |
56 | - * @param array $key The keys which can contain sensitive data inside the $data array. `['password', 'pwd', 'pass']` if no keys provided the {{luya\helpers\ArrayHelper::$sensitiveDefaultKeys}} is used. |
|
56 | + * @param array $keys The keys which can contain sensitive data inside the $data array. `['password', 'pwd', 'pass']` if no keys provided the {{luya\helpers\ArrayHelper::$sensitiveDefaultKeys}} is used. |
|
57 | 57 | * @since 1.0.6 |
58 | 58 | */ |
59 | 59 | public static function coverSensitiveValues(array $data, array $keys = []) |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | /** |
170 | 170 | * The time admission will commence. |
171 | 171 | * |
172 | - * @param DateTime $doorTime |
|
172 | + * @param DateTimeValue $doorTime |
|
173 | 173 | * @return static |
174 | 174 | */ |
175 | 175 | public function setDoorTime(DateTimeValue $doorTime) |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format. |
193 | 193 | * |
194 | - * @param Duration $duration |
|
194 | + * @param DurationValue $duration |
|
195 | 195 | * @return static |
196 | 196 | */ |
197 | 197 | public function setDuration(DurationValue $duration) |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | /** |
214 | 214 | * The end date and time of the item (in ISO 8601 date format). |
215 | 215 | * |
216 | - * @param Date|DateTime $endDate |
|
216 | + * @param DateTimeValue $endDate |
|
217 | 217 | * @return static |
218 | 218 | */ |
219 | 219 | public function setEndDate(DateTimeValue $endDate) |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | * Please use one of the language codes from the IETF BCP 47 standard. See also availableLanguage. |
262 | 262 | * Supersedes language. |
263 | 263 | * |
264 | - * @param Language|Text $inLanguage |
|
264 | + * @param LanguageValue $inLanguage |
|
265 | 265 | * @return static |
266 | 266 | */ |
267 | 267 | public function setInLanguage(LanguageValue $inLanguage) |
@@ -49,7 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Getter method for the e-mail. |
51 | 51 | * |
52 | - * @return string|boolean Returns the e-mail from the setter method, if mail is not valid false is returned. |
|
52 | + * @return string|false Returns the e-mail from the setter method, if mail is not valid false is returned. |
|
53 | 53 | */ |
54 | 54 | public function getEmail() |
55 | 55 | { |
@@ -116,6 +116,7 @@ |
||
116 | 116 | |
117 | 117 | /** |
118 | 118 | * Internal method to add a tag into the tags array. |
119 | + * @param string $identifier |
|
119 | 120 | */ |
120 | 121 | private function addTag($identifier, $tagObjectConfig) |
121 | 122 | { |
@@ -179,7 +179,7 @@ |
||
179 | 179 | * will auto alias encode by Yii::getAlias function. |
180 | 180 | * |
181 | 181 | * @param string $fileName The path to the file to get the content |
182 | - * @return string|boolean |
|
182 | + * @return string|false |
|
183 | 183 | */ |
184 | 184 | public static function getFileContent($fileName) |
185 | 185 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @param string $message The message you want to send to the error api server. |
69 | 69 | * @param string $file The you are currently send the message (use __FILE__) |
70 | - * @param string $line The line you want to submit (use __LINE__) |
|
70 | + * @param integer $line The line you want to submit (use __LINE__) |
|
71 | 71 | * @return bool|null |
72 | 72 | */ |
73 | 73 | public function transferMessage($message, $file = __FILE__, $line = __LINE__) |
@@ -105,6 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | /** |
107 | 107 | * @inheritdoc |
108 | + * @param \Exception $exception |
|
108 | 109 | */ |
109 | 110 | public function renderException($exception) |
110 | 111 | { |