Completed
Push — master ( 976d85...fce33c )
by
unknown
03:20
created
src/ConstraintCheck/Cache/DependencyMetadata.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.