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 = 4-8 lines in 3 locations

component/admin/vendor/joomla/github/src/Package/Issues/Comments.php 1 location

@@ 81-88 (lines=8) @@
78
			);
79
		}
80
81
		if (false == in_array($direction, array('asc', 'desc')))
82
		{
83
			throw new \UnexpectedValueException(
84
				sprintf(
85
					'%1$s - direction field must be "asc" or "desc"', __METHOD__
86
				)
87
			);
88
		}
89
90
		$path .= '?sort=' . $sort;
91
		$path .= '&direction=' . $direction;

component/admin/vendor/joomla/github/src/Package/Repositories.php 2 locations

@@ 67-70 (lines=4) @@
64
		// Sort direction default: when using full_name: asc, otherwise desc.
65
		$direction = ($direction) ? : (('full_name' == $sort) ? 'asc' : 'desc');
66
67
		if (false == in_array($direction, array('asc', 'desc')))
68
		{
69
			throw new \RuntimeException('Invalid sort order');
70
		}
71
72
		// Build the request path.
73
		$path = '/user/repos'
@@ 114-117 (lines=4) @@
111
		// Sort direction default: when using full_name: asc, otherwise desc.
112
		$direction = ($direction) ? : (('full_name' == $sort) ? 'asc' : 'desc');
113
114
		if (false == in_array($direction, array('asc', 'desc')))
115
		{
116
			throw new \RuntimeException('Invalid sort order');
117
		}
118
119
		// Build the request path.
120
		$path = '/users/' . $user . '/repos'