Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

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.
Passed
Branch master (5c2c02)
by Sebastian
03:02
created

plugins/search/tx_dlf_search_suggest.js   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 37
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
c 0
b 0
f 0
nc 1
dl 0
loc 37
rs 10
wmc 4
mnd 0
bc 4
fnc 4
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
B tx_dlf_search_suggest.js ➔ $ 0 28 1
1
/**
2
 * (c) Kitodo. Key to digital objects e.V. <[email protected]>
3
 *
4
 * This file is part of the Kitodo and TYPO3 projects.
5
 *
6
 * @license GNU General Public License version 3 or later.
7
 * For the full copyright and license information, please read the
8
 * LICENSE.txt file that was distributed with this source code.
9
 */
10
11
$("#tx-dlf-search-query").attr({
12
	'autocomplete': "off",
13
	'role': "textbox",
14
	'aria-autocomplete': "list",
15
	'aria-haspopup': "true"
16
});
17
18
$(
19
	function() {
20
		// jQuery autocomplete integration
21
		$("#tx-dlf-search-query").autocomplete({
22
			source: function(request, response) {
23
				return $.post(
24
					"/",
25
					{
26
						eID: "tx_dlf_search_suggest",
27
						q: encodeURIComponent(request.term.toLowerCase()),
28
						encrypted: $("input[name='tx_dlf[encrypted]']").val(),
29
						hashed: $("input[name='tx_dlf[hashed]']").val()
30
					},
31
					function(data) {
32
						var result = [];
33
						var option = "";
34
						$("arr[name='suggestion'] str", data).each(function(i) {
0 ignored issues
show
Unused Code introduced by
The parameter i is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
35
							option = $(this).text();
36
							option = option.replace(/(\?|!|:)/g, "\\\$1");
37
							result.push(option);
38
						});
39
						return response(result);
40
					},
41
					"xml");
42
			},
43
			minLength: 3,
44
			appendTo: "#tx-dlf-search-suggest"
45
		});
46
	}
47
);
48