@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | * |
483 | 483 | * @param string $content Content to render in a view, wrapped by the surrounding layout. |
484 | 484 | * @param string|null $layout Layout name |
485 | - * @return mixed Rendered output, or false on error |
|
485 | + * @return string Rendered output, or false on error |
|
486 | 486 | * @throws \Cake\Core\Exception\Exception if there is an error in the view. |
487 | 487 | * @triggers View.beforeLayout $this, [$layoutFileName] |
488 | 488 | * @triggers View.afterLayout $this, [$layoutFileName] |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | * Appending to a new block will create the block. |
585 | 585 | * |
586 | 586 | * @param string $name Name of the block |
587 | - * @param mixed $value The content for the block. |
|
587 | + * @param string $value The content for the block. |
|
588 | 588 | * @return void |
589 | 589 | * @see ViewBlock::concat() |
590 | 590 | */ |
@@ -996,7 +996,7 @@ discard block |
||
996 | 996 | * Finds an element filename, returns false on failure. |
997 | 997 | * |
998 | 998 | * @param string $name The name of the element to find. |
999 | - * @return mixed Either a string to the element filename or false when one can't be found. |
|
999 | + * @return string|false Either a string to the element filename or false when one can't be found. |
|
1000 | 1000 | */ |
1001 | 1001 | protected function _getElementFileName($name) |
1002 | 1002 | { |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Cake\Cache\Cache; |
15 | 15 | use Cake\Core\Configure; |
16 | 16 | use Cake\Datasource\ConnectionManager; |
17 | -use Cake\I18n\I18n; |
|
18 | 17 | use Cake\Log\Log; |
19 | 18 | |
20 | 19 | require_once 'vendor/autoload.php'; |
@@ -15,7 +15,6 @@ |
||
15 | 15 | |
16 | 16 | use Cake\Cache\CacheEngine; |
17 | 17 | use Cake\Cache\CacheRegistry; |
18 | -use Cake\Core\App; |
|
19 | 18 | use DebugKit\DebugTimer; |
20 | 19 | |
21 | 20 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * Constructor |
66 | 66 | * |
67 | - * @param Cake\Database\Log\QueryLogger $logger The logger to decorate and spy on. |
|
67 | + * @param QueryLogger|null $logger The logger to decorate and spy on. |
|
68 | 68 | * @param string $name The name of the connection being logged. |
69 | 69 | */ |
70 | 70 | public function __construct($logger, $name) |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * Get the stored logs. |
78 | 78 | * |
79 | - * @return array |
|
79 | + * @return string |
|
80 | 80 | */ |
81 | 81 | public function name() |
82 | 82 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * |
31 | 31 | * If the tables do not exist, they will be created on the current model's connection. |
32 | 32 | * |
33 | - * @param array $fixtures The fixture names to check and/or insert. |
|
33 | + * @param string[] $fixtures The fixture names to check and/or insert. |
|
34 | 34 | * @return void |
35 | 35 | * @throws \RuntimeException When fixtures are missing/unknown/fail. |
36 | 36 | */ |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Finder method to get recent requests as a simple array |
58 | 58 | * |
59 | - * @param Cake\ORM\Query $query The query |
|
59 | + * @param Query $query The query |
|
60 | 60 | * @param array $options The options |
61 | 61 | * @return Query The query. |
62 | 62 | */ |
@@ -14,7 +14,6 @@ |
||
14 | 14 | namespace DebugKit\Panel; |
15 | 15 | |
16 | 16 | use Cake\Cache\Cache; |
17 | -use Cake\Event\Event; |
|
18 | 17 | use DebugKit\Cache\Engine\DebugEngine; |
19 | 18 | use DebugKit\DebugPanel; |
20 | 19 |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * Check if a path is part of cake core |
100 | 100 | * |
101 | 101 | * @param string $file File to check |
102 | - * @return bool |
|
102 | + * @return string |
|
103 | 103 | */ |
104 | 104 | protected function _isCoreFile($file) |
105 | 105 | { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * Check if a path is from APP but not a plugin |
111 | 111 | * |
112 | 112 | * @param string $file File to check |
113 | - * @return bool |
|
113 | + * @return string |
|
114 | 114 | */ |
115 | 115 | protected function _isAppFile($file) |
116 | 116 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * Check if a path is from a plugin |
122 | 122 | * |
123 | 123 | * @param string $file File to check |
124 | - * @return bool |
|
124 | + * @return string |
|
125 | 125 | */ |
126 | 126 | protected function _isPluginFile($file) |
127 | 127 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * - app for app files |
142 | 142 | * - core for core files |
143 | 143 | * - PluginName for the name of a plugin |
144 | - * @return bool |
|
144 | + * @return string |
|
145 | 145 | */ |
146 | 146 | protected function _niceFileName($file, $type) |
147 | 147 | { |
@@ -12,9 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | namespace DebugKit\Panel; |
14 | 14 | |
15 | -use Cake\Controller\Controller; |
|
16 | 15 | use Cake\Datasource\ConnectionManager; |
17 | -use Cake\Event\Event; |
|
18 | 16 | use Cake\ORM\TableRegistry; |
19 | 17 | use DebugKit\Database\Log\DebugLog; |
20 | 18 | use DebugKit\DebugPanel; |