@@ -63,7 +63,8 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | |
66 | - public static function getAll(PdoDatabase $database) { |
|
66 | + public static function getAll(PdoDatabase $database) |
|
67 | + { |
|
67 | 68 | $statement = $database->prepare("SELECT * FROM domain;"); |
68 | 69 | $statement->execute(); |
69 | 70 |
@@ -248,7 +248,7 @@ |
||
248 | 248 | /** @var RequestQueue|false $targetQueue */ |
249 | 249 | $targetQueue = RequestQueue::getById($ban->getTargetQueue(), $this->database); |
250 | 250 | |
251 | - if ($targetQueue === false ) { |
|
251 | + if ($targetQueue === false) { |
|
252 | 252 | $comment = new Comment(); |
253 | 253 | $comment->setDatabase($this->database); |
254 | 254 | $comment->setRequest($request->getId()); |
@@ -51,7 +51,8 @@ |
||
51 | 51 | |
52 | 52 | if ($this->barrierTest($route[1], $currentUser, $route[0])) { |
53 | 53 | $this->redirect('/' . $referrer); |
54 | - } else { |
|
54 | + } |
|
55 | + else { |
|
55 | 56 | $this->redirect('/'); |
56 | 57 | } |
57 | 58 | } |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | // FIXME: domains! |
97 | 97 | /** @var Domain $domain */ |
98 | 98 | $domain = Domain::getById(1, $this->database); |
99 | - $this->assign('tbldomain',$domain); |
|
99 | + $this->assign('tbldomain', $domain); |
|
100 | 100 | $endpoint = $domain->getWikiApiPath(); |
101 | - $this->assign('tblendpoint',$endpoint); |
|
101 | + $this->assign('tblendpoint', $endpoint); |
|
102 | 102 | $parameters = array( |
103 | 103 | 'action' => 'titleblacklist', |
104 | 104 | 'format' => 'php', |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $apiResult = $this->httpHelper->get($endpoint, $parameters); |
111 | 111 | |
112 | 112 | $data = unserialize($apiResult); |
113 | - $this->assign('tbldata',$data); |
|
113 | + $this->assign('tbldata', $data); |
|
114 | 114 | return $data['titleblacklist']; |
115 | 115 | } |
116 | 116 | } |
117 | 117 | \ No newline at end of file |
@@ -272,7 +272,7 @@ |
||
272 | 272 | { |
273 | 273 | try { |
274 | 274 | $blacklistData = $this->getBlacklistHelper()->isBlacklisted($request->getName()); |
275 | - } |
|
275 | + } |
|
276 | 276 | catch (Exception $ex) { |
277 | 277 | $blacklistData = $ex->getMessage(); |
278 | 278 | } |