@@ -10,8 +10,6 @@ |
||
10 | 10 | * @license http://opensource.org/licenses/gpl-3.0.html GPL-3.0 License |
11 | 11 | */ |
12 | 12 | |
13 | -use CMS\Event\EventDispatcher; |
|
14 | - |
|
15 | 13 | if (!function_exists('fieldsInfo')) { |
16 | 14 | /** |
17 | 15 | * Gets a collection of information of every registered field in the system, or |
@@ -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) |
@@ -87,7 +87,7 @@ |
||
87 | 87 | /** |
88 | 88 | * Validates the given POST information. |
89 | 89 | * |
90 | - * @param \Cake\Network\Request $request Current request object, commonly used |
|
90 | + * @param \Cake\Http\ServerRequest $request Current request object, commonly used |
|
91 | 91 | * to extract POST or Session information. |
92 | 92 | * @return bool True if valid, false otherwise |
93 | 93 | */ |
@@ -11,8 +11,6 @@ |
||
11 | 11 | */ |
12 | 12 | namespace Captcha\Adapter; |
13 | 13 | |
14 | -use Cake\Core\Configure; |
|
15 | -use Cake\Core\Plugin; |
|
16 | 14 | use Cake\Network\Request; |
17 | 15 | use Cake\View\View; |
18 | 16 | use Captcha\Adapter\BaseAdapter; |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Cake\Event\Event; |
15 | 15 | use Cake\Event\EventListenerInterface; |
16 | -use CMS\View\ViewModeRegistry; |
|
17 | 16 | use Content\Model\Entity\Content; |
18 | 17 | |
19 | 18 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Returns the given plugin's file within webroot directory. |
45 | 45 | * |
46 | - * @return void |
|
46 | + * @return \Cake\Network\Response|null |
|
47 | 47 | */ |
48 | 48 | public function pluginFile() |
49 | 49 | { |
@@ -66,7 +66,7 @@ |
||
66 | 66 | * $this->Breadcrumb->push('/admin/some/url'); |
67 | 67 | * ``` |
68 | 68 | * |
69 | - * @param array|string|null $crumbs Single crumb or an array of multiple crumbs |
|
69 | + * @param string|null $crumbs Single crumb or an array of multiple crumbs |
|
70 | 70 | * to push at once. Or null for guess from current URL |
71 | 71 | * @param mixed $url If both $crumbs and $url are string values they will be |
72 | 72 | * used as `title` and `URL` respectively |