Completed
Push — master ( e860de...4972cf )
by
unknown
02:53
created
includes/CrossCheck/Result/CrossCheckResultList.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	 *
27 27
 	 * @throws InvalidArgumentException
28 28
 	 */
29
-	public function __construct( array $results = array() ) {
29
+	public function __construct(array $results = array()) {
30 30
 		Assert::parameterElementType(
31 31
 			'WikibaseQuality\ExternalValidation\CrossCheck\Result\CrossCheckResult',
32 32
 			$results,
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 *
42 42
 	 * @param CrossCheckResult $result
43 43
 	 */
44
-	public function add( CrossCheckResult $result ) {
44
+	public function add(CrossCheckResult $result) {
45 45
 		$this->results[] = $result;
46 46
 	}
47 47
 
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 	 *
51 51
 	 * @param self $resultList
52 52
 	 */
53
-	public function merge( self $resultList ) {
54
-		$this->results = array_merge( $this->results, $resultList->results );
53
+	public function merge(self $resultList) {
54
+		$this->results = array_merge($this->results, $resultList->results);
55 55
 	}
56 56
 
57 57
 	/**
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
 	public function getPropertyIds() {
63 63
 		$propertyIds = array();
64 64
 
65
-		foreach ( $this->results as $result ) {
65
+		foreach ($this->results as $result) {
66 66
 			$propertyId = $result->getPropertyId();
67
-			if ( !in_array( $propertyId, $propertyIds ) ) {
67
+			if (!in_array($propertyId, $propertyIds)) {
68 68
 				$propertyIds[] = $propertyId;
69 69
 			}
70 70
 		}
@@ -79,16 +79,16 @@  discard block
 block discarded – undo
79 79
 	 *
80 80
 	 * @return self
81 81
 	 */
82
-	public function getByPropertyId( PropertyId $propertyId ) {
82
+	public function getByPropertyId(PropertyId $propertyId) {
83 83
 		$results = array();
84 84
 
85
-		foreach ( $this->results as $result ) {
86
-			if ( $result->getPropertyId()->equals( $propertyId ) ) {
85
+		foreach ($this->results as $result) {
86
+			if ($result->getPropertyId()->equals($propertyId)) {
87 87
 				$results[] = $result;
88 88
 			}
89 89
 		}
90 90
 
91
-		return new self( $results );
91
+		return new self($results);
92 92
 	}
93 93
 
94 94
 	/**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 * @codeCoverageIgnore
108 108
 	 */
109 109
 	public function getIterator() {
110
-		return new ArrayIterator( $this->results );
110
+		return new ArrayIterator($this->results);
111 111
 	}
112 112
 
113 113
 	/**
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 	 * @return int
117 117
 	 */
118 118
 	public function count() {
119
-		return count( $this->results );
119
+		return count($this->results);
120 120
 	}
121 121
 
122 122
 }
Please login to merge, or discard this patch.