@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | 'cssBaseUrl' => 'css/', |
61 | 61 | 'jsBaseUrl' => 'js/', |
62 | 62 | 'paths' => [ |
63 | - 'plugins' => [ROOT . DS . 'plugins' . DS], |
|
64 | - 'templates' => [APP . 'Template' . DS], |
|
65 | - 'locales' => [APP . 'Locale' . DS], |
|
63 | + 'plugins' => [ROOT.DS.'plugins'.DS], |
|
64 | + 'templates' => [APP.'Template'.DS], |
|
65 | + 'locales' => [APP.'Locale'.DS], |
|
66 | 66 | ], |
67 | 67 | ], |
68 | 68 | |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | */ |
112 | 112 | '_cake_core_' => [ |
113 | 113 | 'className' => $cache['engine'], |
114 | - 'prefix' => $cache['prefix'] . 'cake_core_', |
|
115 | - 'path' => CACHE . 'persistent/', |
|
114 | + 'prefix' => $cache['prefix'].'cake_core_', |
|
115 | + 'path' => CACHE.'persistent/', |
|
116 | 116 | 'serialize' => true, |
117 | 117 | 'duration' => '+1 years', |
118 | 118 | 'url' => env('CACHE_CAKECORE_URL', null), |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | */ |
126 | 126 | '_cake_model_' => [ |
127 | 127 | 'className' => $cache['engine'], |
128 | - 'prefix' => $cache['prefix'] . 'cake_model_', |
|
129 | - 'path' => CACHE . 'models/', |
|
128 | + 'prefix' => $cache['prefix'].'cake_model_', |
|
129 | + 'path' => CACHE.'models/', |
|
130 | 130 | 'serialize' => true, |
131 | 131 | 'duration' => '+1 years', |
132 | 132 | 'url' => env('CACHE_CAKEMODEL_URL', null), |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | */ |
139 | 139 | '_cake_routes_' => [ |
140 | 140 | 'className' => $cache['engine'], |
141 | - 'prefix' => $cache['prefix'] . 'cake_model_', |
|
141 | + 'prefix' => $cache['prefix'].'cake_model_', |
|
142 | 142 | 'path' => CACHE, |
143 | 143 | 'serialize' => true, |
144 | 144 | 'duration' => '+1 years', |
@@ -8,6 +8,6 @@ |
||
8 | 8 | Router::scope( |
9 | 9 | '/api/v2/', |
10 | 10 | ['plugin' => 'Api'], |
11 | - function ($routes) { |
|
11 | + function($routes) { |
|
12 | 12 | } |
13 | 13 | ); |
@@ -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 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | use Cake\Core\Configure; |
15 | 15 | |
16 | 16 | // @bogus |
17 | -$getUri = function () { |
|
17 | +$getUri = function() { |
|
18 | 18 | if (!empty($_SERVER['PATH_INFO'])) { |
19 | 19 | $uri = $_SERVER['PATH_INFO']; |
20 | 20 | } elseif (isset($_SERVER['REQUEST_URI'])) { |
@@ -1,6 +1,6 @@ |
||
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 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | use Saito\Exception\SaitoForbiddenException; |
16 | 16 | use Saito\Test\IntegrationTestCase; |
17 | 17 | |
18 | - /* |
|
18 | + /* |
|
19 | 19 | class SearchesMockController extends SearchesController |
20 | 20 | { |
21 | 21 |
@@ -1,6 +1,6 @@ |
||
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 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | Router::plugin( |
7 | 7 | 'SaitoSearch', |
8 | 8 | ['path' => '/searches'], |
9 | - function (RouteBuilder $routes) { |
|
9 | + function(RouteBuilder $routes) { |
|
10 | 10 | $routes->connect('/:action', ['controller' => 'searches']); |
11 | 11 | } |
12 | 12 | ); |
@@ -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 |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function getOmittedWords() |
92 | 92 | { |
93 | - $filter = function ($word) { |
|
93 | + $filter = function($word) { |
|
94 | 94 | return mb_strlen($word) < $this->_length; |
95 | 95 | }; |
96 | 96 | $string = preg_replace('/(".*")/', '', $this->_string); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | if (mb_strpos($word, '-') === false) { |
150 | 150 | continue; |
151 | 151 | } |
152 | - $string = str_replace($word, '"' . $word . '"', $string); |
|
152 | + $string = str_replace($word, '"'.$word.'"', $string); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | return $string; |
@@ -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 |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $minWordLength = $connection |
94 | 94 | ->execute("SHOW VARIABLES LIKE 'ft_min_word_len'") |
95 | 95 | ->fetch()[1]; |
96 | - $options['searchTerm']->setMinWordLength((int)$minWordLength); |
|
96 | + $options['searchTerm']->setMinWordLength((int) $minWordLength); |
|
97 | 97 | |
98 | 98 | $query |
99 | 99 | ->where(['Entries.category_id IN' => $options['categories']]) |
@@ -37,14 +37,14 @@ discard block |
||
37 | 37 | $id = $options['conditions']['id']; |
38 | 38 | $lang = $options['conditions']['language']; |
39 | 39 | |
40 | - $findFiles = function ($id, $lang) { |
|
40 | + $findFiles = function($id, $lang) { |
|
41 | 41 | list($plugin, $id) = pluginSplit($id); |
42 | 42 | if ($plugin) { |
43 | 43 | $folderPath = Plugin::path($plugin); |
44 | 44 | } else { |
45 | - $folderPath = ROOT . DS; |
|
45 | + $folderPath = ROOT.DS; |
|
46 | 46 | } |
47 | - $folderPath .= 'docs' . DS . 'help' . DS . $lang; |
|
47 | + $folderPath .= 'docs'.DS.'help'.DS.$lang; |
|
48 | 48 | |
49 | 49 | $folder = new Folder($folderPath); |
50 | 50 | $files = $folder->find("$id(-.*?)?\.md"); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | return false; |
64 | 64 | } |
65 | 65 | $name = $files[0]; |
66 | - $file = new File($folderPath . DS . $name, false, 0444); |
|
66 | + $file = new File($folderPath.DS.$name, false, 0444); |
|
67 | 67 | $text = $file->read(); |
68 | 68 | $file->close(); |
69 | 69 | $data = [ |