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
636636 return $ isEmptyCallback ($ this ->modelData );
637637 }
638638
639- return FormUtil::isEmpty ($ this ->modelData ) ||
639+ return FormUtil::isEmpty ($ this ->modelData )
640640 // arrays, countables
641- (is_countable ($ this ->modelData ) && 0 === \count ($ this ->modelData )) ||
641+ || (is_countable ($ this ->modelData ) && 0 === \count ($ this ->modelData ))
642642 // 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 ));
644644 }
645645
646646 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
8080 */
8181 public function __construct (int $ confidence )
8282 {
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 ) {
8585 throw new InvalidArgumentException ('The confidence should be one of the constants defined in Guess. ' );
8686 }
8787
You can’t perform that action at this time.
0 commit comments