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.

Code Duplication    Length = 11-11 lines in 2 locations

component/admin/vendor/joomla/utilities/src/ArrayHelper.php 2 locations

@@ 166-176 (lines=11) @@
163
164
			foreach (get_object_vars($item) as $k => $v)
165
			{
166
				if (!$regex || preg_match($regex, $k))
167
				{
168
					if ($recurse)
169
					{
170
						$result[$k] = self::arrayFromObject($v, $recurse, $regex);
171
					}
172
					else
173
					{
174
						$result[$k] = $v;
175
					}
176
				}
177
			}
178
179
			return $result;
@@ 182-192 (lines=11) @@
179
			return $result;
180
		}
181
182
		if (is_array($item))
183
		{
184
			$result = array();
185
186
			foreach ($item as $k => $v)
187
			{
188
				$result[$k] = self::arrayFromObject($v, $recurse, $regex);
189
			}
190
191
			return $result;
192
		}
193
194
		return $item;
195
	}