@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param EntityId $entityId An entity ID from which the value was derived. |
38 | 38 | * @return self Indication that a value was derived from the entity with the given ID. |
39 | 39 | */ |
40 | - public static function ofEntityId( EntityId $entityId ) { |
|
40 | + public static function ofEntityId(EntityId $entityId) { |
|
41 | 41 | $ret = new self; |
42 | 42 | $ret->entityIds[] = $entityId; |
43 | 43 | return $ret; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @return self Indication that a value will only remain valid |
50 | 50 | * as long as the given time value is in the future, not in the past. |
51 | 51 | */ |
52 | - public static function ofFutureTime( TimeValue $timeValue ) { |
|
52 | + public static function ofFutureTime(TimeValue $timeValue) { |
|
53 | 53 | $ret = new self; |
54 | 54 | $ret->timeValue = $timeValue; |
55 | 55 | return $ret; |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | * @param self[] $metadatas |
60 | 60 | * @return self |
61 | 61 | */ |
62 | - public static function merge( array $metadatas ) { |
|
63 | - Assert::parameterElementType( self::class, $metadatas, '$metadatas' ); |
|
62 | + public static function merge(array $metadatas) { |
|
63 | + Assert::parameterElementType(self::class, $metadatas, '$metadatas'); |
|
64 | 64 | $ret = new self; |
65 | - foreach ( $metadatas as $metadata ) { |
|
66 | - $ret->entityIds = array_merge( $ret->entityIds, $metadata->entityIds ); |
|
67 | - $ret->timeValue = self::minTimeValue( $ret->timeValue, $metadata->timeValue ); |
|
65 | + foreach ($metadatas as $metadata) { |
|
66 | + $ret->entityIds = array_merge($ret->entityIds, $metadata->entityIds); |
|
67 | + $ret->timeValue = self::minTimeValue($ret->timeValue, $metadata->timeValue); |
|
68 | 68 | } |
69 | 69 | return $ret; |
70 | 70 | } |
@@ -74,14 +74,14 @@ discard block |
||
74 | 74 | * @param TimeValue|null $t2 |
75 | 75 | * @return TimeValue|null |
76 | 76 | */ |
77 | - private static function minTimeValue( TimeValue $t1 = null, TimeValue $t2 = null ) { |
|
78 | - if ( $t1 === null ) { |
|
77 | + private static function minTimeValue(TimeValue $t1 = null, TimeValue $t2 = null) { |
|
78 | + if ($t1 === null) { |
|
79 | 79 | return $t2; |
80 | 80 | } |
81 | - if ( $t2 === null ) { |
|
81 | + if ($t2 === null) { |
|
82 | 82 | return $t1; |
83 | 83 | } |
84 | - return ( new TimeValueComparer() )->getMinimum( $t1, $t2 ); |
|
84 | + return (new TimeValueComparer())->getMinimum($t1, $t2); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |