Skip to content

Commit 6eada4e

Browse files
committed
Apply operator_linebreak PHP-CS-Fixer rule
1 parent c025ff2 commit 6eada4e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

Guess/Guess.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)