diff --git a/composer.json b/composer.json index d4d8e28..7040af1 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "atk4/schema": "*", "codacy/coverage": "dev-master", "friendsofphp/php-cs-fixer": "dev-master@dev", - "monolog/monolog": "^2.0@dev", + "monolog/monolog": "3.0.0", "phpmd/phpmd": "2.8.2", "phpmetrics/phpmetrics": "dev-master@dev", "phpstan/phpstan": "0.12.14", diff --git a/demos/example-ajax.php b/demos/example-ajax.php index 611f702..7b794cc 100644 --- a/demos/example-ajax.php +++ b/demos/example-ajax.php @@ -3,7 +3,6 @@ require_once 'bootstrap.php'; use atk4\ui\App; -use ATK4PHPDebugBar\DebugBar; class User extends \atk4\data\Model { diff --git a/demos/example-logger.php b/demos/example-logger.php index 32e5dc9..07a939a 100644 --- a/demos/example-logger.php +++ b/demos/example-logger.php @@ -3,7 +3,6 @@ require_once 'bootstrap.php'; use atk4\ui\App; -use ATK4PHPDebugBar\DebugBar; use Monolog\Handler\StreamHandler; use Monolog\Logger; diff --git a/demos/example-persistence.php b/demos/example-persistence.php index f27e59b..cea6d2f 100644 --- a/demos/example-persistence.php +++ b/demos/example-persistence.php @@ -3,7 +3,6 @@ require_once 'bootstrap.php'; use atk4\ui\App; -use ATK4PHPDebugBar\DebugBar; class User extends \atk4\data\Model { diff --git a/src/DebugBar.php b/src/DebugBar.php index 3f2f56e..a6d4891 100644 --- a/src/DebugBar.php +++ b/src/DebugBar.php @@ -119,7 +119,7 @@ public function init(): void } /** - * @param DataCollectorInterface $dataCollector + * @param DataCollectorInterface $dataCollector * * @throws DebugBarException */ @@ -226,10 +226,10 @@ public function getDebugBar(): \DebugBar\DebugBar } /** - * @param string $name + * @param string $name + * @return DataCollectorInterface * * @throws DebugBarException - * @return DataCollectorInterface */ public function getCollector(string $name): DataCollectorInterface { @@ -237,8 +237,7 @@ public function getCollector(string $name): DataCollectorInterface } /** - * @param string $name - * + * @param string $name * @return bool */ public function hasCollector(string $name): bool @@ -247,8 +246,7 @@ public function hasCollector(string $name): bool } /** - * @param string $url - * + * @param string $url * @return $this */ public function setAssetsResourcesUrl(string $url) @@ -259,8 +257,7 @@ public function setAssetsResourcesUrl(string $url) } /** - * @param string $path - * + * @param string $path * @return $this */ public function setAssetsResourcesPath(string $path) @@ -294,7 +291,7 @@ public function addATK4LoggerCollector(): void } /** - * @param Persistence\SQL|null $persistence + * @param Persistence\SQL|null $persistence * * @throws DebugBarException */ diff --git a/tests/DebugBarTest.php b/tests/DebugBarTest.php index ebd60a5..13af12f 100644 --- a/tests/DebugBarTest.php +++ b/tests/DebugBarTest.php @@ -42,6 +42,7 @@ public function testGetDebugBar_AppDynamicMethods() /** * Only for increase coverage, cover 1 line of code. + * * @runInSeparateProcess */ public function testSendMessagesViaHeaders()