Skip to content

Commit e2c08c4

Browse files
authored
Merge pull request #6 from inhere/inhere-patch-1
remove some comments
2 parents 7524c8e + d59cb6e commit e2c08c4

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/Utils/ErrorMessageTrait.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/**
1212
* trait ErrorMessageTrait
13+
* @author inhere
1314
* @package Inhere\Validate\Utils
1415
*/
1516
trait ErrorMessageTrait
@@ -304,7 +305,6 @@ public function firstError($onlyMsg = true)
304305

305306
/**
306307
* 得到最后一个错误信息
307-
* @author inhere
308308
* @param bool $onlyMsg
309309
* @return array|string
310310
*/
@@ -383,8 +383,6 @@ public function setMessages(array $messages): self
383383

384384
/**
385385
* 各个验证器的提示消息
386-
* @author inhere
387-
* @date 2015-09-27
388386
* @param string|\Closure $validator 验证器
389387
* @param string $field
390388
* @param array $args

src/Utils/UserAndContextValidatorsTrait.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ public function required(string $field, $value = null): bool
155155
}
156156

157157
/**
158-
* 如果指定的另一个字段( anotherField )值等于任何一个 value 时,此字段为 必填
159-
* @from laravel
158+
* 如果指定的另一个字段( anotherField )值等于任何一个 value 时,此字段为 必填 (refer laravel)
160159
* @param string $field
161160
* @param mixed $fieldVal
162161
* @param string $anotherField
@@ -182,7 +181,7 @@ public function requiredIf(string $field, $fieldVal, string $anotherField, $valu
182181
}
183182

184183
/**
185-
* 如果指定的另一个字段( anotherField )值等于任何一个 value 时,此字段为 不必填
184+
* 如果指定的另一个字段( anotherField )值等于任何一个 value 时,此字段为 不必填(refer laravel)
186185
* @param string $field
187186
* @param mixed $fieldVal
188187
* @param string $anotherField
@@ -203,7 +202,7 @@ public function requiredUnless(string $field, $fieldVal, string $anotherField, $
203202
}
204203

205204
/**
206-
* 如果指定的其他字段中的 任意一个 有值且不为空,则此字段为 必填
205+
* 如果指定的其他字段中的 任意一个 有值且不为空,则此字段为 必填(refer laravel)
207206
* @param string $field
208207
* @param mixed $fieldVal
209208
* @param array|string $fields
@@ -221,7 +220,7 @@ public function requiredWith(string $field, $fieldVal, $fields)
221220
}
222221

223222
/**
224-
* 如果指定的 所有字段 都有值且不为空,则此字段为 必填
223+
* 如果指定的 所有字段 都有值且不为空,则此字段为 必填(refer laravel)
225224
* @param string $field
226225
* @param mixed $fieldVal
227226
* @param array|string $fields
@@ -242,7 +241,7 @@ public function requiredWithAll(string $field, $fieldVal, $fields)
242241
}
243242

244243
/**
245-
* 如果缺少 任意一个 指定的字段值,则此字段为 必填
244+
* 如果缺少 任意一个 指定的字段值,则此字段为 必填(refer laravel)
246245
* @param string $field
247246
* @param mixed $fieldVal
248247
* @param array|string $fields
@@ -263,7 +262,7 @@ public function requiredWithout(string $field, $fieldVal, $fields)
263262
}
264263

265264
/**
266-
* 如果所有指定的字段 都没有 值,则此字段为 必填
265+
* 如果所有指定的字段 都没有 值,则此字段为 必填(refer laravel)
267266
* @from laravel
268267
* @param string $field
269268
* @param mixed $fieldVal

0 commit comments

Comments
 (0)