File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -636,11 +636,11 @@ public function isEmpty(): bool
636
636
return $ isEmptyCallback ($ this ->modelData );
637
637
}
638
638
639
- return FormUtil::isEmpty ($ this ->modelData ) ||
639
+ return FormUtil::isEmpty ($ this ->modelData )
640
640
// arrays, countables
641
- (is_countable ($ this ->modelData ) && 0 === \count ($ this ->modelData )) ||
641
+ || (is_countable ($ this ->modelData ) && 0 === \count ($ this ->modelData ))
642
642
// traversables that are not countable
643
- ($ this ->modelData instanceof \Traversable && 0 === iterator_count ($ this ->modelData ));
643
+ || ($ this ->modelData instanceof \Traversable && 0 === iterator_count ($ this ->modelData ));
644
644
}
645
645
646
646
public function isValid (): bool
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ public static function getBestGuess(array $guesses): ?static
80
80
*/
81
81
public function __construct (int $ confidence )
82
82
{
83
- if (self ::VERY_HIGH_CONFIDENCE !== $ confidence && self ::HIGH_CONFIDENCE !== $ confidence &&
84
- self ::MEDIUM_CONFIDENCE !== $ confidence && self ::LOW_CONFIDENCE !== $ confidence ) {
83
+ if (self ::VERY_HIGH_CONFIDENCE !== $ confidence && self ::HIGH_CONFIDENCE !== $ confidence
84
+ && self ::MEDIUM_CONFIDENCE !== $ confidence && self ::LOW_CONFIDENCE !== $ confidence ) {
85
85
throw new InvalidArgumentException ('The confidence should be one of the constants defined in Guess. ' );
86
86
}
87
87
You can’t perform that action at this time.
0 commit comments