@@ -13,11 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | namespace DebugKit\View\Helper; |
| 15 | 15 | |
| 16 | -use Cake\Cache\Cache; |
|
| 17 | -use Cake\Datasource\ConnectionManager; |
|
| 18 | -use Cake\Event\Event; |
|
| 19 | 16 | use Cake\View\Helper; |
| 20 | -use DebugKit\DebugKitDebugger; |
|
| 21 | 17 | |
| 22 | 18 | /** |
| 23 | 19 | * Provides Base methods for content specific debug toolbar helpers. |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * that was configured for the configuration. |
| 105 | 105 | * |
| 106 | 106 | * @param string $driver The driver name as configured for the CakePHP app. |
| 107 | - * @return \Phinx\Config\Config |
|
| 107 | + * @return string |
|
| 108 | 108 | * @throws \InvalidArgumentexception when it was not possible to infer the information |
| 109 | 109 | * out of the provided database configuration |
| 110 | 110 | */ |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Composer\Composer; |
| 6 | 6 | use Composer\Config; |
| 7 | 7 | use Composer\Package\Package; |
| 8 | -use Composer\Package\RootPackage; |
|
| 9 | 8 | use Composer\Repository\RepositoryManager; |
| 10 | 9 | |
| 11 | 10 | class PluginInstallerTest extends \PHPUnit_Framework_TestCase |
@@ -341,6 +341,10 @@ |
||
| 341 | 341 | return $file; |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | + /** |
|
| 345 | + * @param string $class |
|
| 346 | + * @param string $ext |
|
| 347 | + */ |
|
| 344 | 348 | private function findFileWithExtension($class, $ext) |
| 345 | 349 | { |
| 346 | 350 | // PSR-4 lookup |
@@ -215,6 +215,10 @@ |
||
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | + /** |
|
| 219 | + * @param string $dir |
|
| 220 | + * @param string $baseinstalldir |
|
| 221 | + */ |
|
| 218 | 222 | public function buildSubPackage($dir, $baseinstalldir, $info) |
| 219 | 223 | { |
| 220 | 224 | $package = str_replace('/', '_', $baseinstalldir); |
@@ -94,6 +94,9 @@ |
||
| 94 | 94 | $this->base = $str; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | + /** |
|
| 98 | + * @return string |
|
| 99 | + */ |
|
| 97 | 100 | public function getBase() |
| 98 | 101 | { |
| 99 | 102 | return $this->base; |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * Trace the decorators associated with the batch |
| 54 | 54 | * |
| 55 | - * @return array |
|
| 55 | + * @return AbstractBatchDecorator[] |
|
| 56 | 56 | */ |
| 57 | 57 | public function getDecorators() |
| 58 | 58 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * Automatically flush the batch when the size of the queue reaches a certain threshold. Adds {@see FlushingBatch}. |
| 49 | 49 | * |
| 50 | - * @param $threshold Number of items to allow in the queue before a flush |
|
| 50 | + * @param integer $threshold Number of items to allow in the queue before a flush |
|
| 51 | 51 | * |
| 52 | 52 | * @return BatchBuilder |
| 53 | 53 | */ |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Notify a callable each time a batch flush completes. Enables the {@see NotifyingBatch} decorator. |
| 88 | 88 | * |
| 89 | - * @param mixed $callable Callable function to notify |
|
| 89 | + * @param \Closure $callable Callable function to notify |
|
| 90 | 90 | * |
| 91 | 91 | * @return BatchBuilder |
| 92 | 92 | * @throws InvalidArgumentException if the argument is not callable |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * |
| 27 | 27 | * @param array $config Configuration values to apply. |
| 28 | 28 | * @param array $defaults Default parameters |
| 29 | - * @param array $required Required parameter names |
|
| 29 | + * @param string[] $required Required parameter names |
|
| 30 | 30 | * |
| 31 | 31 | * @return self |
| 32 | 32 | * @throws InvalidArgumentException if a parameter is missing |