@@ -117,7 +117,7 @@ |
||
117 | 117 | * @param array $options Options given as an array |
118 | 118 | * @param bool $primary Whether this event was triggered as part of a primary |
119 | 119 | * find query or not |
120 | - * @return mixed |
|
120 | + * @return boolean |
|
121 | 121 | */ |
122 | 122 | public function beforeFind(Field $field, array $options, $primary) |
123 | 123 | { |
@@ -11,9 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | namespace System\Controller\Admin; |
13 | 13 | |
14 | -use Cake\ORM\Entity; |
|
15 | 14 | use Cake\Validation\Validator; |
16 | -use CMS\Core\Plugin; |
|
17 | 15 | use Locale\Utility\LocaleToolbox; |
18 | 16 | use System\Controller\AppController; |
19 | 17 |
@@ -87,7 +87,7 @@ |
||
87 | 87 | /** |
88 | 88 | * Removes "remember me" cookie. |
89 | 89 | * |
90 | - * @param array $event User information given as an array |
|
90 | + * @param Event $event User information given as an array |
|
91 | 91 | * @return void |
92 | 92 | */ |
93 | 93 | public function logout(Event $event, array $user) |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | * Scopes the given query using the given operator token. |
315 | 315 | * |
316 | 316 | * @param \Cake\ORM\Query $query The query to scope |
317 | - * @param \Search\Token $token Token describing an operator. e.g `-op_name:op_value` |
|
317 | + * @param TokenInterface $token Token describing an operator. e.g `-op_name:op_value` |
|
318 | 318 | * @return \Cake\ORM\Query Scoped query |
319 | 319 | */ |
320 | 320 | protected function _scopeOperator(Query $query, TokenInterface $token) |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | * Scopes the given query using the given words token. |
327 | 327 | * |
328 | 328 | * @param \Cake\ORM\Query $query The query to scope |
329 | - * @param \Search\TokenInterface $token Token describing a words sequence. e.g `this is a phrase` |
|
329 | + * @param TokenInterface $token Token describing a words sequence. e.g `this is a phrase` |
|
330 | 330 | * @return \Cake\ORM\Query Scoped query |
331 | 331 | */ |
332 | 332 | protected function _scopeWords(Query $query, TokenInterface $token) |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * Similar to "_scopeWords" but using MySQL's fulltext indexes. |
360 | 360 | * |
361 | 361 | * @param \Cake\ORM\Query $query The query to scope |
362 | - * @param \Search\TokenInterface $token Token describing a words sequence. e.g `this is a phrase` |
|
362 | + * @param TokenInterface $token Token describing a words sequence. e.g `this is a phrase` |
|
363 | 363 | * @return \Cake\ORM\Query Scoped query |
364 | 364 | */ |
365 | 365 | protected function _scopeWordsInFulltext(Query $query, TokenInterface $token) |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | /** |
390 | 390 | * Whether FullText index is available or not and should be used. |
391 | 391 | * |
392 | - * @return bool True if enabled and should be used, false otherwise |
|
392 | + * @return null|boolean True if enabled and should be used, false otherwise |
|
393 | 393 | */ |
394 | 394 | protected function _isFullTextEnabled() |
395 | 395 | { |
@@ -12,11 +12,7 @@ |
||
12 | 12 | namespace Search\Engine\Generic; |
13 | 13 | |
14 | 14 | use Cake\Cache\Cache; |
15 | -use Cake\Core\InstanceConfigTrait; |
|
16 | 15 | use Cake\Datasource\EntityInterface; |
17 | -use Cake\Error\FatalErrorException; |
|
18 | -use Cake\Event\Event; |
|
19 | -use Cake\Event\EventManager; |
|
20 | 16 | use Cake\ORM\Query; |
21 | 17 | use Cake\ORM\Table; |
22 | 18 | use Cake\ORM\TableRegistry; |