@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function __construct($type = null, $data = []) |
14 | 14 | { |
15 | - $message = 'Request was blackholed. Type: ' . $type; |
|
15 | + $message = 'Request was blackholed. Type: '.$type; |
|
16 | 16 | $logger = new ExceptionLogger; |
17 | 17 | $logger->write($message, $data); |
18 | 18 | parent::__construct($message, 400); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $document = new \DOMDocument; |
91 | 91 | libxml_use_internal_errors(true); |
92 | - $document->loadHTML('<!DOCTYPE html>' . $html); |
|
92 | + $document->loadHTML('<!DOCTYPE html>'.$html); |
|
93 | 93 | $xpath = new \DOMXPath($document); |
94 | 94 | libxml_clear_errors(); |
95 | 95 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $Mock = $this->getMockForTableParent($table, $methods); |
137 | 137 | EventManager::instance()->on( |
138 | 138 | 'Controller.initialize', |
139 | - function (Event $event) use ($table, $Mock) { |
|
139 | + function(Event $event) use ($table, $Mock) { |
|
140 | 140 | $Controller = $event->getSubject(); |
141 | 141 | $Controller->{$table} = $Mock; |
142 | 142 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $this->configRequest([ |
161 | 161 | 'headers' => [ |
162 | 162 | 'Accept' => 'application/json', |
163 | - 'Authorization' => 'bearer ' . $jwtToken, |
|
163 | + 'Authorization' => 'bearer '.$jwtToken, |
|
164 | 164 | ] |
165 | 165 | ]); |
166 | 166 | } |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | { |
315 | 315 | $this->assertContainsTag( |
316 | 316 | $expected, |
317 | - (string)$this->_controller->response->getBody() |
|
317 | + (string) $this->_controller->response->getBody() |
|
318 | 318 | ); |
319 | 319 | } |
320 | 320 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -71,6 +71,6 @@ discard block |
||
71 | 71 | throw new \RuntimeException('TMP directory not available.', 1560524787); |
72 | 72 | } |
73 | 73 | |
74 | - return (new File(TMP . 'installer.state')); |
|
74 | + return (new File(TMP.'installer.state')); |
|
75 | 75 | } |
76 | 76 | } |
@@ -176,7 +176,7 @@ |
||
176 | 176 | */ |
177 | 177 | public function findAssocUsers(Query $query) |
178 | 178 | { |
179 | - $callback = function (Query $query) { |
|
179 | + $callback = function(Query $query) { |
|
180 | 180 | return $query->select(['id', 'username']); |
181 | 181 | }; |
182 | 182 | $query->contain(['BlockedBy' => $callback, 'Users' => $callback]); |
@@ -129,7 +129,7 @@ |
||
129 | 129 | public function getConfig($key = null, $default = null) |
130 | 130 | { |
131 | 131 | if (is_string($key)) { |
132 | - $setting = Configure::read('Saito.Settings.' . $key); |
|
132 | + $setting = Configure::read('Saito.Settings.'.$key); |
|
133 | 133 | if ($setting !== null) { |
134 | 134 | return $setting; |
135 | 135 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -242,6 +242,6 @@ discard block |
||
242 | 242 | { |
243 | 243 | InstallerState::set($action); |
244 | 244 | |
245 | - return $this->redirect('/install/' . $action); |
|
245 | + return $this->redirect('/install/'.$action); |
|
246 | 246 | } |
247 | 247 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Saito - The Threaded Web Forum |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | ]; |
62 | 62 | |
63 | 63 | foreach ($actions as $action) { |
64 | - $this->get('install/' . $action); |
|
64 | + $this->get('install/'.$action); |
|
65 | 65 | $this->assertRedirect('/'); |
66 | 66 | } |
67 | 67 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $this->createSettings(); |
103 | 103 | (new DbVersion(TableRegistry::get('Settings')))->set('4.10.0'); |
104 | 104 | |
105 | - $token = new File(CONFIG . 'installer'); |
|
105 | + $token = new File(CONFIG.'installer'); |
|
106 | 106 | $this->assertTrue($token->exists()); |
107 | 107 | |
108 | 108 | $this->get('install/connected'); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | private function createInstallerToken() |
114 | 114 | { |
115 | - (new File(CONFIG . 'installer'))->create(); |
|
115 | + (new File(CONFIG.'installer'))->create(); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | private function createSettings() |