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 = 9-9 lines in 7 locations

test/Escaper/CEscaperTest.php 7 locations

@@ 43-51 (lines=9) @@
40
		$this->assertEquals($res, $exp, "setEncoding() produced missmatch");
41
	}
42
	
43
	public function testEscapeHTML()
44
	{
45
		$el = new \Scelus\Escaper\CEscaper();
46
		
47
		$argument = '></div><h1>myattack</h1>';
48
		$res = $el->escapeHTML($argument);
49
		$exp = '&gt;&lt;&#x2F;div&gt;&lt;h1&gt;myattack&lt;&#x2F;h1&gt;';
50
		$this->assertEquals($res, $exp, "escapeHTML() produced missmatch");
51
	}
52
	
53
	public function testEscapeHTMLattr()
54
	{
@@ 53-61 (lines=9) @@
50
		$this->assertEquals($res, $exp, "escapeHTML() produced missmatch");
51
	}
52
	
53
	public function testEscapeHTMLattr()
54
	{
55
		$el = new \Scelus\Escaper\CEscaper();
56
		
57
		$argument = '"><h1>Hello</table';
58
		$res = $el->escapeHTMLattr($argument);
59
		$exp = "&#x22;&#x3e;&#x3c;h1&#x3e;Hello&#x3c;&#x2f;table";
60
		$this->assertEquals($res, $exp, "escapeHTMLattr() produced missmatch");
61
	}
62
	
63
	public function testEscapeUrl()
64
	{
@@ 63-71 (lines=9) @@
60
		$this->assertEquals($res, $exp, "escapeHTMLattr() produced missmatch");
61
	}
62
	
63
	public function testEscapeUrl()
64
	{
65
		$el = new \Scelus\Escaper\CEscaper();
66
		
67
		$argument = '"><script>alert(1)</script><a href="#';
68
		$res = $el->escapeUrl($argument);
69
		$exp = "%22%3E%3Cscript%3Ealert%281%29%3C%2Fscript%3E%3Ca%20href%3D%22%23";
70
		$this->assertEquals($res, $exp, "escapeUrl() produced missmatch");
71
	}
72
	
73
	public function testEscapeCSS()
74
	{
@@ 73-81 (lines=9) @@
70
		$this->assertEquals($res, $exp, "escapeUrl() produced missmatch");
71
	}
72
	
73
	public function testEscapeCSS()
74
	{
75
		$el = new \Scelus\Escaper\CEscaper();
76
		
77
		$argument = '"><script>alert(1)</script><a href="#';
78
		$res = $el->escapeCSS($argument);
79
		$exp = '\22 \3e \3c script\3e alert\28 1\29 \3c \2f script\3e \3c a\20 href\3d \22 \23 ';
80
		$this->assertEquals($res, $exp, "escapeCSS() produced missmatch");
81
	}
82
	
83
	public function testEscapeJs()
84
	{
@@ 83-91 (lines=9) @@
80
		$this->assertEquals($res, $exp, "escapeCSS() produced missmatch");
81
	}
82
	
83
	public function testEscapeJs()
84
	{
85
		$el = new \Scelus\Escaper\CEscaper();
86
		
87
		$argument = "'; alert(100); var x='";
88
		$res = $el->escapeJs($argument);
89
		$exp = '\x27\x3b\x20alert\x28100\x29\x3b\x20var\x20x\x3d\x27';
90
		$this->assertEquals($res, $exp, "escapeJs() produced missmatch");
91
	}
92
	
93
		public function testEscapeXML()
94
	{
@@ 93-101 (lines=9) @@
90
		$this->assertEquals($res, $exp, "escapeJs() produced missmatch");
91
	}
92
	
93
		public function testEscapeXML()
94
	{
95
		$el = new \Scelus\Escaper\CEscaper();
96
		
97
		$argument = '></div><h1>myattack</h1>';
98
		$res = $el->escapeXml($argument);
99
		$exp = '&gt;&lt;&#x2F;div&gt;&lt;h1&gt;myattack&lt;&#x2F;h1&gt;';
100
		$this->assertEquals($res, $exp, "escapeHTML() produced missmatch");
101
	}
102
	
103
	public function testEscapeXmlattr()
104
	{
@@ 103-111 (lines=9) @@
100
		$this->assertEquals($res, $exp, "escapeHTML() produced missmatch");
101
	}
102
	
103
	public function testEscapeXmlattr()
104
	{
105
		$el = new \Scelus\Escaper\CEscaper();
106
		
107
		$argument = '"><h1>Hello</table';
108
		$res = $el->escapeXmlattr($argument);
109
		$exp = "&#x22;&#x3e;&#x3c;h1&#x3e;Hello&#x3c;&#x2f;table";
110
		$this->assertEquals($res, $exp, "escapeHTMLattr() produced missmatch");
111
	}
112
};