Completed
Push — master ( 40991e...ab483c )
by
unknown
02:52
created
src/ConstraintCheck/Context/MainSnakContextCursor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 		return $this->snakHash;
62 62
 	}
63 63
 
64
-	protected function &getMainArray( array &$container ) {
64
+	protected function &getMainArray(array &$container) {
65 65
 		$statementArray = &$this->getStatementArray(
66 66
 			$container,
67 67
 			$this->entityId,
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
 			$this->statementGuid
70 70
 		);
71 71
 
72
-		if ( !array_key_exists( 'mainsnak', $statementArray ) ) {
73
-			$statementArray['mainsnak'] = [ 'hash' => $this->snakHash ];
72
+		if (!array_key_exists('mainsnak', $statementArray)) {
73
+			$statementArray['mainsnak'] = ['hash' => $this->snakHash];
74 74
 		}
75 75
 		$mainsnakArray = &$statementArray['mainsnak'];
76 76
 
Please login to merge, or discard this patch.
src/ConstraintCheck/Context/ReferenceContextCursor.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		return $this->snakHash;
78 78
 	}
79 79
 
80
-	protected function &getMainArray( array &$container ) {
80
+	protected function &getMainArray(array &$container) {
81 81
 		$statementArray = &$this->getStatementArray(
82 82
 			$container,
83 83
 			$this->entityId,
@@ -85,37 +85,37 @@  discard block
 block discarded – undo
85 85
 			$this->statementGuid
86 86
 		);
87 87
 
88
-		if ( !array_key_exists( 'references', $statementArray ) ) {
88
+		if (!array_key_exists('references', $statementArray)) {
89 89
 			$statementArray['references'] = [];
90 90
 		}
91 91
 		$referencesArray = &$statementArray['references'];
92 92
 
93
-		foreach ( $referencesArray as &$potentialReferenceArray ) {
94
-			if ( $potentialReferenceArray['hash'] === $this->referenceHash ) {
93
+		foreach ($referencesArray as &$potentialReferenceArray) {
94
+			if ($potentialReferenceArray['hash'] === $this->referenceHash) {
95 95
 				$referenceArray = &$potentialReferenceArray;
96 96
 				break;
97 97
 			}
98 98
 		}
99
-		if ( !isset( $referenceArray ) ) {
100
-			$referenceArray = [ 'hash' => $this->referenceHash, 'snaks' => [] ];
99
+		if (!isset($referenceArray)) {
100
+			$referenceArray = ['hash' => $this->referenceHash, 'snaks' => []];
101 101
 			$referencesArray[] = &$referenceArray;
102 102
 		}
103 103
 
104 104
 		$snaksArray = &$referenceArray['snaks'];
105 105
 
106
-		if ( !array_key_exists( $this->snakPropertyId, $snaksArray ) ) {
106
+		if (!array_key_exists($this->snakPropertyId, $snaksArray)) {
107 107
 			$snaksArray[$this->snakPropertyId] = [];
108 108
 		}
109 109
 		$propertyArray = &$snaksArray[$this->snakPropertyId];
110 110
 
111
-		foreach ( $propertyArray as &$potentialSnakArray ) {
112
-			if ( $potentialSnakArray['hash'] === $this->snakHash ) {
111
+		foreach ($propertyArray as &$potentialSnakArray) {
112
+			if ($potentialSnakArray['hash'] === $this->snakHash) {
113 113
 				$snakArray = &$potentialSnakArray;
114 114
 				break;
115 115
 			}
116 116
 		}
117
-		if ( !isset( $snakArray ) ) {
118
-			$snakArray = [ 'hash' => $this->snakHash ];
117
+		if (!isset($snakArray)) {
118
+			$snakArray = ['hash' => $this->snakHash];
119 119
 			$propertyArray[] = &$snakArray;
120 120
 		}
121 121
 
Please login to merge, or discard this patch.
src/ConstraintCheck/Context/QualifierContextCursor.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		return $this->snakHash;
70 70
 	}
71 71
 
72
-	protected function &getMainArray( array &$container ) {
72
+	protected function &getMainArray(array &$container) {
73 73
 		$statementArray = &$this->getStatementArray(
74 74
 			$container,
75 75
 			$this->entityId,
@@ -77,24 +77,24 @@  discard block
 block discarded – undo
77 77
 			$this->statementGuid
78 78
 		);
79 79
 
80
-		if ( !array_key_exists( 'qualifiers', $statementArray ) ) {
80
+		if (!array_key_exists('qualifiers', $statementArray)) {
81 81
 			$statementArray['qualifiers'] = [];
82 82
 		}
83 83
 		$qualifiersArray = &$statementArray['qualifiers'];
84 84
 
85
-		if ( !array_key_exists( $this->snakPropertyId, $qualifiersArray ) ) {
85
+		if (!array_key_exists($this->snakPropertyId, $qualifiersArray)) {
86 86
 			$qualifiersArray[$this->snakPropertyId] = [];
87 87
 		}
88 88
 		$propertyArray = &$qualifiersArray[$this->snakPropertyId];
89 89
 
90
-		foreach ( $propertyArray as &$potentialQualifierArray ) {
91
-			if ( $potentialQualifierArray['hash'] === $this->snakHash ) {
90
+		foreach ($propertyArray as &$potentialQualifierArray) {
91
+			if ($potentialQualifierArray['hash'] === $this->snakHash) {
92 92
 				$qualifierArray = &$potentialQualifierArray;
93 93
 				break;
94 94
 			}
95 95
 		}
96
-		if ( !isset( $qualifierArray ) ) {
97
-			$qualifierArray = [ 'hash' => $this->snakHash ];
96
+		if (!isset($qualifierArray)) {
97
+			$qualifierArray = ['hash' => $this->snakHash];
98 98
 			$propertyArray[] = &$qualifierArray;
99 99
 		}
100 100
 
Please login to merge, or discard this patch.