Completed
Push — master ( 46d11e...5de925 )
by Vojtěch
02:38
created

WedosAccessHandler::deny()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 37
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 37
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SixtyEightPublishers\Application\RemoteAccessManager\Handler;
6
7
class WedosAccessHandler extends DefaultAccessHandler implements IAccessHandler
8
{
9
	public function deny()
10
	{
11
		echo <<< WEDOS
12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
13
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
14
<head>
15
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
16
	<meta http-equiv="Content-Language" content="cs" />
17
	<title>Webhosting je aktivní</title>
18
	<meta name="robots" content="noindex,follow" />
19
	<link rel="stylesheet" type="text/css" href="http://hosting.wedos.com/css/default-pages.css" />
20
</head>
21
<body class="web_default">
22
23
	<div id="page">
24
25
		<div id="header">
26
			<img src="http://hosting.wedos.com/images/default-pages/logo.png" alt="WEDOS Internet, a.s." />
27
		</div>
28
29
		<div id="content">
30
			<img src="http://hosting.wedos.com/images/default-pages/tick.png" alt="OK" />
31
			<h1>Webhosting je aktivní</h1>
32
			<p>Webhosting pro tuto doménu je aktivní. Přes FTP nahrajte potřebné soubory a poté tento soubor <b>index.html</b> smažte.</p>
33
			<p>Další informace a návody hledejte ve <strong><a href="http://kb.wedos.com/">znalostní bázi WEDOS</a></strong>.</p>
34
		</div>
35
36
		<div id="footer">
37
			<p><strong><a href="http://hosting.wedos.com/">Hosting WEDOS</a></strong> - <a href="http://hosting.wedos.com/cs/domeny.html">registrace domén</a>, <a href="http://hosting.wedos.com/cs/webhosting.html">webhosting</a>, <a href="http://hosting.wedos.com/cs/dedikovane-servery.html">serverhosting</a></p>
38
		</div>
39
40
	</div>
41
</body>
42
</html>
43
WEDOS;
44
		exit();
0 ignored issues
show
Coding Style Compatibility introduced by
The method deny() contains an exit expression.

An exit expression should only be used in rare cases. For example, if you write a short command line script.

In most cases however, using an exit expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.

Loading history...
45
	}
46
}
47