Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
"suggest": {
"ext-pdo_sqlite": "DebugKit needs to store panel data in a database. SQLite is simple and easy to use."
},
"prefer-stable": true,
"minimum-stability": "dev"
"scripts": {
"cs-check": [
"phpcs --colors --parallel=16 -p src/ tests/"
],
"cs-fix": [
"phpcbf --colors --parallel=16 -p src/ tests/"
],
"test": [
"phpunit"
]
},
"prefer-stable": true
}
23 changes: 11 additions & 12 deletions src/Cache/Engine/DebugEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*
*/
namespace DebugKit\Cache\Engine;

Expand Down Expand Up @@ -143,7 +142,7 @@ protected function log(string $operation, float $duration, ?string $key = null):
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function set($key, $value, $ttl = null): bool
{
Expand All @@ -158,7 +157,7 @@ public function set($key, $value, $ttl = null): bool
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function setMultiple($data, $ttl = null): bool
{
Expand All @@ -173,7 +172,7 @@ public function setMultiple($data, $ttl = null): bool
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function get($key, $default = null)
{
Expand All @@ -192,7 +191,7 @@ public function get($key, $default = null)
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function getMultiple($keys, $default = null): iterable
{
Expand All @@ -207,7 +206,7 @@ public function getMultiple($keys, $default = null): iterable
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function increment(string $key, int $offset = 1)
{
Expand All @@ -222,7 +221,7 @@ public function increment(string $key, int $offset = 1)
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function decrement(string $key, int $offset = 1)
{
Expand All @@ -237,7 +236,7 @@ public function decrement(string $key, int $offset = 1)
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function delete($key): bool
{
Expand All @@ -252,7 +251,7 @@ public function delete($key): bool
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function deleteMultiple($data): bool
{
Expand All @@ -267,7 +266,7 @@ public function deleteMultiple($data): bool
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function clear(): bool
{
Expand All @@ -282,7 +281,7 @@ public function clear(): bool
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function groups(): array
{
Expand Down Expand Up @@ -316,7 +315,7 @@ public function setConfig($key, $value = null, $merge = true)
}

/**
* {@inheritDoc}
* @inheritDoc
*/
public function clearGroup(string $group): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ComposerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class ComposerController extends DebugKitController
{
/**
* {@inheritDoc}
* @inheritDoc
*/
public function initialize(): void
{
Expand Down
1 change: 0 additions & 1 deletion src/DebugInclude.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

/**
* Contains methods for Providing list of files.
*
*/
class DebugInclude
{
Expand Down
1 change: 0 additions & 1 deletion src/DebugMemory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

/**
* Contains methods for Profiling memory usage.
*
*/
class DebugMemory
{
Expand Down
1 change: 0 additions & 1 deletion src/DebugTimer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

/**
* Contains methods for Profiling and creating timers.
*
*/
class DebugTimer
{
Expand Down
1 change: 0 additions & 1 deletion src/Log/Engine/DebugKitLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

/**
* A CakeLog listener which saves having to munge files or other configured loggers.
*
*/
class DebugKitLog extends BaseLog
{
Expand Down
1 change: 0 additions & 1 deletion src/Mailer/SentMailResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

/**
* Represents the result of an already sent email
*
*/
class SentMailResult extends AbstractResult
{
Expand Down
1 change: 0 additions & 1 deletion src/Panel/CachePanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*
*/
namespace DebugKit\Panel;

Expand Down
1 change: 0 additions & 1 deletion src/Panel/DeprecationsPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

/**
* Provides a list of deprecated methods for the current request
*
*/
class DeprecationsPanel extends DebugPanel
{
Expand Down
2 changes: 0 additions & 2 deletions src/Panel/EnvironmentPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*
*/
namespace DebugKit\Panel;

Expand All @@ -21,7 +20,6 @@

/**
* Provides information about your PHP and CakePHP environment to assist with debugging.
*
*/
class EnvironmentPanel extends DebugPanel
{
Expand Down
1 change: 0 additions & 1 deletion src/Panel/HistoryPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

/**
* Provides debug information on previous requests.
*
*/
class HistoryPanel extends DebugPanel
{
Expand Down
1 change: 0 additions & 1 deletion src/Panel/IncludePanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

/**
* Provides a list of included files for the current request
*
*/
class IncludePanel extends DebugPanel
{
Expand Down
1 change: 0 additions & 1 deletion src/Panel/LogPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

/**
* Log Panel - Reads log entries made this request.
*
*/
class LogPanel extends DebugPanel
{
Expand Down
1 change: 0 additions & 1 deletion src/Panel/PackagesPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

/**
* Packages Panel - Reads all installed packages in the project.
*
*/
class PackagesPanel extends DebugPanel
{
Expand Down
1 change: 0 additions & 1 deletion src/Panel/RequestPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

/**
* Provides debug information on the Current request params.
*
*/
class RequestPanel extends DebugPanel
{
Expand Down
1 change: 0 additions & 1 deletion src/Panel/RoutesPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*
*/
namespace DebugKit\Panel;

Expand Down
1 change: 0 additions & 1 deletion src/Panel/SqlLogPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

/**
* Provides debug information on the SQL logs and provides links to an ajax explain interface.
*
*/
class SqlLogPanel extends DebugPanel
{
Expand Down
3 changes: 0 additions & 3 deletions src/Panel/VariablesPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@

/**
* Provides debug information on the View variables.
*
*/
class VariablesPanel extends DebugPanel
{
/**
* Extracts nested validation errors
*
* @param \Cake\Datasource\EntityInterface $entity Entity to extract
*
* @return array
*/
protected function _getErrors(EntityInterface $entity)
Expand Down Expand Up @@ -68,7 +66,6 @@ protected function _getErrors(EntityInterface $entity)
*
* @param callable $walker The walker to apply on the debug info array.
* @param object $item The item whose debug info to retrieve.
*
* @return array|string
*/
protected function _walkDebugInfo(callable $walker, $item)
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/DebugIncludeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

/**
* Class DebugInclude test
*
*/
class DebugIncludeTest extends TestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/DebugMemoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

/**
* Class DebugMemoryTest
*
*/
class DebugMemoryTest extends TestCase
{
Expand Down
5 changes: 2 additions & 3 deletions tests/TestCase/Panel/DeprecationsPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

/**
* Class DeprecationsPanelTest
*
*/
class DeprecationsPanelTest extends TestCase
{
Expand Down Expand Up @@ -67,12 +66,12 @@ public function testShutdown()
$error = $data['plugins']['DebugKit'][0];
$this->assertStringContainsString('Something going away', $error['message']);
$this->assertEquals('DebugKit/tests/TestCase/Panel/DeprecationsPanelTest.php', $error['niceFile']);
$this->assertEquals(47, $error['line']);
$this->assertEquals(46, $error['line']);

$error = $data['plugins']['DebugKit'][2];
$this->assertStringContainsString('Raw error', $error['message']);
$this->assertEquals('DebugKit/tests/TestCase/Panel/DeprecationsPanelTest.php', $error['niceFile']);
$this->assertEquals(49, $error['line']);
$this->assertEquals(48, $error['line']);
}

public function testSummary()
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Panel/EnvironmentPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

/**
* Class EnvironmentPanelTest
*
*/
class EnvironmentPanelTest extends TestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Panel/IncludePanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

/**
* Class IncludePanelTest
*
*/
class IncludePanelTest extends TestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Panel/LogPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

/**
* Class LogPanelTest
*
*/
class LogPanelTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Panel/PackagesPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

/**
* Class PackagesPanelTest
*
*/
class PackagesPanelTest extends TestCase
{
Expand All @@ -42,6 +41,7 @@ public function setUp(): void

/**
* Packages view variables provider
*
* @return array
*/
public function packagesProvider()
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Panel/RoutesPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

/**
* Class RoutesPanelTest
*
*/
class RoutesPanelTest extends TestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Panel/VariablesPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

/**
* Class VariablesPanelTest
*
*/
class VariablesPanelTest extends TestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/test_app/Form/TestForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* Class TestForm
*
* @package DebugKit\TestApp\Form
*/
class TestForm extends Form
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

/**
* Class PluginTestPanel
*
*/

class PluginTestPanel extends DebugPanel
Expand Down