@@ -3,9 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use App\Controller\AppController; |
| 5 | 5 | use Cake\Cache\Cache; |
| 6 | -use Cake\Core\Configure; |
|
| 7 | -use Cake\Event\Event; |
|
| 8 | -use Cake\Network\Exception\NotFoundException; |
|
| 9 | 6 | |
| 10 | 7 | class SettingsController extends AppController |
| 11 | 8 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * Create a setting. |
| 42 | 42 | * |
| 43 | - * @return \Cake\Network\Response|void |
|
| 43 | + * @return \Cake\Http\Response|null |
|
| 44 | 44 | */ |
| 45 | 45 | public function create() |
| 46 | 46 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | /** |
| 64 | 64 | * Edit a setting. |
| 65 | 65 | * |
| 66 | - * @return \Cake\Network\Response|void |
|
| 66 | + * @return \Cake\Http\Response|null |
|
| 67 | 67 | */ |
| 68 | 68 | public function edit() |
| 69 | 69 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * Delete a setting. |
| 101 | 101 | * |
| 102 | - * @return \Cake\Network\Response|void |
|
| 102 | + * @return \Cake\Http\Response|null |
|
| 103 | 103 | */ |
| 104 | 104 | public function delete() |
| 105 | 105 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use App\Event\Logs; |
| 5 | 5 | use Cake\Core\Configure; |
| 6 | 6 | use Cake\Event\Event; |
| 7 | -use Endroid\QrCode\QrCode; |
|
| 8 | 7 | use RobThree\Auth\TwoFactorAuth; |
| 9 | 8 | |
| 10 | 9 | class TfaController extends AppController |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Display an intro to the Two-factor Authentication. |
| 23 | 23 | * |
| 24 | - * @return \Cake\Network\Response|void |
|
| 24 | + * @return \Cake\Http\Response|null |
|
| 25 | 25 | */ |
| 26 | 26 | public function intro() |
| 27 | 27 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * Configure the Two-factor Authentication. |
| 50 | 50 | * |
| 51 | - * @return \Cake\Network\Response|void |
|
| 51 | + * @return \Cake\Http\Response|null |
|
| 52 | 52 | */ |
| 53 | 53 | public function configure() |
| 54 | 54 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * Enable the Two-factor Authentication. |
| 108 | 108 | * |
| 109 | - * @return \Cake\Network\Response|void |
|
| 109 | + * @return \Cake\Http\Response|null |
|
| 110 | 110 | */ |
| 111 | 111 | public function enable() |
| 112 | 112 | { |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * Disable the Two-factor Authentication. |
| 184 | 184 | * |
| 185 | - * @return \Cake\Network\Response |
|
| 185 | + * @return \Cake\Http\Response|null |
|
| 186 | 186 | */ |
| 187 | 187 | public function disable() |
| 188 | 188 | { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | /** |
| 240 | 240 | * Display the recovery code and the status of the code. |
| 241 | 241 | * |
| 242 | - * @return \Cake\Network\Response|void |
|
| 242 | + * @return \Cake\Http\Response|null |
|
| 243 | 243 | */ |
| 244 | 244 | public function recoveryCode() |
| 245 | 245 | { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | /** |
| 275 | 275 | * Generate a new recovery code. |
| 276 | 276 | * |
| 277 | - * @return \Cake\Network\Response |
|
| 277 | + * @return \Cake\Http\Response|null |
|
| 278 | 278 | */ |
| 279 | 279 | public function generateRecoveryCode() |
| 280 | 280 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use Cake\Cache\Cache; |
| 5 | 5 | use Cake\Console\ConsoleOptionParser; |
| 6 | 6 | use Cake\Console\Shell; |
| 7 | -use Cake\Utility\Inflector; |
|
| 8 | 7 | |
| 9 | 8 | class MaintenanceShell extends Shell |
| 10 | 9 | { |
@@ -4,14 +4,11 @@ |
||
| 4 | 4 | use App\Event\Notifications; |
| 5 | 5 | use App\Model\Entity\BlogArticlesComment; |
| 6 | 6 | use App\Model\Entity\User; |
| 7 | -use Cake\Controller\ComponentRegistry; |
|
| 8 | 7 | use Cake\Controller\Controller; |
| 9 | 8 | use Cake\Event\Event; |
| 10 | 9 | use Cake\Event\EventListenerInterface; |
| 11 | 10 | use Cake\Event\EventManager; |
| 12 | 11 | use Cake\I18n\Time; |
| 13 | -use Cake\Network\Request; |
|
| 14 | -use Cake\Network\Response; |
|
| 15 | 12 | use Cake\ORM\TableRegistry; |
| 16 | 13 | |
| 17 | 14 | class Badges implements EventListenerInterface |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * |
| 32 | 32 | * @param \Cake\Event\Event $event The event that was fired. |
| 33 | 33 | * |
| 34 | - * @return array|false |
|
| 34 | + * @return string|false |
|
| 35 | 35 | */ |
| 36 | 36 | public function newArticleStats(Event $event) |
| 37 | 37 | { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @param \Cake\Event\Event $event The event that was fired. |
| 54 | 54 | * |
| 55 | - * @return array|false |
|
| 55 | + * @return string|false |
|
| 56 | 56 | */ |
| 57 | 57 | public function newArticleCommentStats(Event $event) |
| 58 | 58 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * @param \Cake\Event\Event $event The event that was fired. |
| 75 | 75 | * |
| 76 | - * @return array|false |
|
| 76 | + * @return string|false |
|
| 77 | 77 | */ |
| 78 | 78 | public function newArticleLikeStats(Event $event) |
| 79 | 79 | { |
@@ -268,7 +268,7 @@ |
||
| 268 | 268 | * |
| 269 | 269 | * @param string $dir The application's root directory. |
| 270 | 270 | * @param \Composer\IO\IOInterface $io IO interface to write to console. |
| 271 | - * @return void |
|
| 271 | + * @return null|string |
|
| 272 | 272 | */ |
| 273 | 273 | public static function setSecuritySaltAndKey($dir, $io) |
| 274 | 274 | { |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Cake\Cache\Cache; |
| 7 | 7 | use Cake\Core\Configure; |
| 8 | 8 | use Cake\Event\Event; |
| 9 | -use Cake\I18n\Number; |
|
| 10 | 9 | use Mexitek\PHPColors\Color; |
| 11 | 10 | use Widop\GoogleAnalytics\Client; |
| 12 | 11 | use Widop\GoogleAnalytics\Query; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /** |
| 54 | 54 | * Add an article. |
| 55 | 55 | * |
| 56 | - * @return \Cake\Network\Response|void |
|
| 56 | + * @return \Cake\Http\Response|null |
|
| 57 | 57 | */ |
| 58 | 58 | public function add() |
| 59 | 59 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** |
| 86 | 86 | * Edit an Article. |
| 87 | 87 | * |
| 88 | - * @return \Cake\Network\Response|void |
|
| 88 | + * @return \Cake\Http\Response|null |
|
| 89 | 89 | */ |
| 90 | 90 | public function edit() |
| 91 | 91 | { |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * Delete an Article and all his comments and likes. |
| 133 | 133 | * |
| 134 | - * @return \Cake\Network\Response |
|
| 134 | + * @return \Cake\Http\Response|null |
|
| 135 | 135 | */ |
| 136 | 136 | public function delete() |
| 137 | 137 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Add an attachment to an article. |
| 47 | 47 | * |
| 48 | - * @return \Cake\Network\Response|void |
|
| 48 | + * @return \Cake\Http\Response|null |
|
| 49 | 49 | */ |
| 50 | 50 | public function add() |
| 51 | 51 | { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | /** |
| 103 | 103 | * Edit an attachment. |
| 104 | 104 | * |
| 105 | - * @return \Cake\Network\Response|void |
|
| 105 | + * @return \Cake\Http\Response|null |
|
| 106 | 106 | */ |
| 107 | 107 | public function edit() |
| 108 | 108 | { |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | /** |
| 175 | 175 | * Delete an Attachment. |
| 176 | 176 | * |
| 177 | - * @return \Cake\Network\Response |
|
| 177 | + * @return \Cake\Http\Response|null |
|
| 178 | 178 | */ |
| 179 | 179 | public function delete() |
| 180 | 180 | { |