Skip to content

Commit 39230fe

Browse files
committed
style: break long line
1 parent 87b5237 commit 39230fe

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

system/Validation/Rules.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,13 @@ public function required_with($str = null, ?string $fields = null, array $data =
298298
* @param string|null $otherFields The param fields of required_without[].
299299
* @param string|null $field This rule param fields aren't present, this field is required.
300300
*/
301-
public function required_without($str = null, ?string $otherFields = null, array $data = [], ?string $error = null, ?string $field = null): bool
302-
{
301+
public function required_without(
302+
$str = null,
303+
?string $otherFields = null,
304+
array $data = [],
305+
?string $error = null,
306+
?string $field = null
307+
): bool {
303308
if ($otherFields === null || empty($data)) {
304309
throw new InvalidArgumentException('You must supply the parameters: otherFields, data.');
305310
}

system/Validation/StrictRules/Rules.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,13 @@ public function required_with($str = null, ?string $fields = null, array $data =
358358
* @param string|null $otherFields The param fields of required_without[].
359359
* @param string|null $field This rule param fields aren't present, this field is required.
360360
*/
361-
public function required_without($str = null, ?string $otherFields = null, array $data = [], ?string $error = null, ?string $field = null): bool
362-
{
361+
public function required_without(
362+
$str = null,
363+
?string $otherFields = null,
364+
array $data = [],
365+
?string $error = null,
366+
?string $field = null
367+
): bool {
363368
return $this->nonStrictRules->required_without($str, $otherFields, $data, $error, $field);
364369
}
365370
}

0 commit comments

Comments
 (0)