GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( bd1580...0ea8fb )
by Florian
09:56
created
Model/DocumentAdapter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 */
85 85
 	public function getFieldValue($fieldName) {
86 86
 		$value = $this->fields[$fieldName] ?? null;
87
-		if(\in_array($fieldName, self::$forceSingleValueFields) && \is_array($value)) {
87
+		if (\in_array($fieldName, self::$forceSingleValueFields) && \is_array($value)) {
88 88
 			return current($value);
89 89
 		}
90 90
 		return $value;
@@ -97,15 +97,15 @@  discard block
 block discarded – undo
97 97
 	 * @see \StingerSoft\EntitySearchBundle\Model\Document::addMultiValueField()
98 98
 	 */
99 99
 	public function addMultiValueField(string $fieldName, $value): void {
100
-		if(!array_key_exists($fieldName, $this->fields)) {
100
+		if (!array_key_exists($fieldName, $this->fields)) {
101 101
 			$this->fields[$fieldName] = array(
102 102
 				$value
103 103
 			);
104
-		} else if(!\is_array($this->fields[$fieldName])) {
104
+		} else if (!\is_array($this->fields[$fieldName])) {
105 105
 			$this->fields[$fieldName] = array(
106 106
 				$value, $this->fields[$fieldName]
107 107
 			);
108
-		} else if(!\in_array($value, $this->fields[$fieldName])) {
108
+		} else if (!\in_array($value, $this->fields[$fieldName])) {
109 109
 			$this->fields[$fieldName][] = $value;
110 110
 		}
111 111
 	}
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 */
129 129
 	public function setEntityClass(string $clazz): void {
130 130
 		$this->entityClass = $clazz;
131
-		if(!$this->entityType) {
131
+		if (!$this->entityType) {
132 132
 			$this->entityType = $clazz;
133 133
 		}
134 134
 	}
Please login to merge, or discard this patch.
Model/Result/FacetSetAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
 
34 34
 	public function addFacetValue(string $key, string $label, $value = null, int $increaseCounterBy = 1) : void {
35 35
 		$value = $value ?? $label;
36
-		if(!isset($this->facets[$key])) {
36
+		if (!isset($this->facets[$key])) {
37 37
 			$this->facets[$key] = array();
38 38
 		}
39
-		if(!isset($this->facets[$key][$label])) {
39
+		if (!isset($this->facets[$key][$label])) {
40 40
 			$this->facets[$key][$label] = array(
41 41
 				'value' => $value,
42 42
 				'count' => 0,
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 * @see \StingerSoft\EntitySearchBundle\Model\Result\FacetSet::getFacet()
53 53
 	 */
54 54
 	public function getFacet(string $key): ?array {
55
-		if(isset($this->facets[$key])) {
55
+		if (isset($this->facets[$key])) {
56 56
 			return $this->facets[$key];
57 57
 		}
58 58
 		return null;
Please login to merge, or discard this patch.