From 53a0960b1ebb93932bc80ff46fecc38a08fb044c Mon Sep 17 00:00:00 2001 From: fabacino Date: Thu, 14 May 2020 15:57:00 +0200 Subject: [PATCH 1/2] Change namespace --- composer.json | 4 ++-- src/Debug.php | 4 ++-- src/Logger.php | 2 +- src/debug-functions.php | 2 +- tests/DbgTest.php | 2 +- tests/DbgThrowTest.php | 4 ++-- tests/DbglogTest.php | 6 +++--- tests/DbgrTest.php | 4 ++-- tests/LoggerTest.php | 4 ++-- tests/TestDebug.php | 4 ++-- tests/TestHelper.php | 4 ++-- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/composer.json b/composer.json index 849c549..2e63da3 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ }, "autoload": { "psr-4": { - "Fabacino\\Debug\\": "src" + "Fbn\\Debug\\": "src" }, "files": [ "src/debug-functions.php" @@ -31,7 +31,7 @@ }, "autoload-dev": { "psr-4": { - "Fabacino\\Debug\\Test\\": "tests" + "Fbn\\Debug\\Test\\": "tests" } } } diff --git a/src/Debug.php b/src/Debug.php index 1805925..9ba383b 100644 --- a/src/Debug.php +++ b/src/Debug.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug; +namespace Fbn\Debug; -use Fabacino\Debug\Logger; +use Fbn\Debug\Logger; use Psr\Log\LoggerInterface; /** diff --git a/src/Logger.php b/src/Logger.php index 0abb104..708bb9b 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug; +namespace Fbn\Debug; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; diff --git a/src/debug-functions.php b/src/debug-functions.php index 13c22a7..a0864a8 100644 --- a/src/debug-functions.php +++ b/src/debug-functions.php @@ -13,7 +13,7 @@ * Debug functions. */ -use Fabacino\Debug\Debug; +use Fbn\Debug\Debug; /** * Initialize singleton instance. diff --git a/tests/DbgTest.php b/tests/DbgTest.php index 0519c32..c2dedfd 100644 --- a/tests/DbgTest.php +++ b/tests/DbgTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug\Test; +namespace Fbn\Debug\Test; /** * Tests for function `dbg`. diff --git a/tests/DbgThrowTest.php b/tests/DbgThrowTest.php index a77d5b1..d14c1f4 100644 --- a/tests/DbgThrowTest.php +++ b/tests/DbgThrowTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug\Test; +namespace Fbn\Debug\Test; -use Fabacino\Debug\Debug; +use Fbn\Debug\Debug; /** * Tests for function `dbgthrow`. diff --git a/tests/DbglogTest.php b/tests/DbglogTest.php index e2a83a8..1c497f7 100644 --- a/tests/DbglogTest.php +++ b/tests/DbglogTest.php @@ -9,10 +9,10 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug\Test; +namespace Fbn\Debug\Test; -use Fabacino\Debug\Debug; -use Fabacino\Debug\Logger; +use Fbn\Debug\Debug; +use Fbn\Debug\Logger; /** * Tests for function `dbglog`. diff --git a/tests/DbgrTest.php b/tests/DbgrTest.php index fa98f19..8f96959 100644 --- a/tests/DbgrTest.php +++ b/tests/DbgrTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug\Test; +namespace Fbn\Debug\Test; -use Fabacino\Debug\Debug; +use Fbn\Debug\Debug; /** * Tests for function `dbgr`. diff --git a/tests/LoggerTest.php b/tests/LoggerTest.php index bee6043..44e2890 100644 --- a/tests/LoggerTest.php +++ b/tests/LoggerTest.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug\Test; +namespace Fbn\Debug\Test; -use Fabacino\Debug\Logger; +use Fbn\Debug\Logger; use Psr\Log\LogLevel; /** diff --git a/tests/TestDebug.php b/tests/TestDebug.php index 7fb87e5..e7c48d5 100644 --- a/tests/TestDebug.php +++ b/tests/TestDebug.php @@ -9,12 +9,12 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug\Test; +namespace Fbn\Debug\Test; /** * Debug class for testing. */ -class TestDebug extends \Fabacino\Debug\Debug +class TestDebug extends \Fbn\Debug\Debug { /** * Check whether we are in a CLI environment. diff --git a/tests/TestHelper.php b/tests/TestHelper.php index 6ce6ef5..851a505 100644 --- a/tests/TestHelper.php +++ b/tests/TestHelper.php @@ -9,9 +9,9 @@ * file that was distributed with this source code. */ -namespace Fabacino\Debug\Test; +namespace Fbn\Debug\Test; -use Fabacino\Debug\Logger; +use Fbn\Debug\Logger; /** * Some helpger functions for tests. From 7f90048f8ffee050d74afab18c23ceecd32a11e1 Mon Sep 17 00:00:00 2001 From: fabacino Date: Thu, 14 May 2020 16:00:20 +0200 Subject: [PATCH 2/2] Change package name --- composer.json | 2 +- composer.lock | 2 +- src/Debug.php | 2 +- src/Logger.php | 2 +- src/debug-functions.php | 2 +- tests/DbgTest.php | 2 +- tests/DbgThrowTest.php | 2 +- tests/DbglogTest.php | 2 +- tests/DbgrTest.php | 2 +- tests/LoggerTest.php | 2 +- tests/TestDebug.php | 2 +- tests/TestHelper.php | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 2e63da3..8b847ec 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "fabacino/php-debug-functions", + "name": "fabacino/debug-functions", "description": "Debug functions for PHP", "type": "library", "license": "MIT", diff --git a/composer.lock b/composer.lock index c81a3cf..ea4e217 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bd8ad0977df449c4e5305e50d3fa5395", + "content-hash": "7bc3db49f666ad7c5cae72087a563863", "packages": [ { "name": "psr/log", diff --git a/src/Debug.php b/src/Debug.php index 9ba383b..2337c29 100644 --- a/src/Debug.php +++ b/src/Debug.php @@ -1,7 +1,7 @@ * diff --git a/src/Logger.php b/src/Logger.php index 708bb9b..0689217 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -1,7 +1,7 @@ * diff --git a/src/debug-functions.php b/src/debug-functions.php index a0864a8..770639b 100644 --- a/src/debug-functions.php +++ b/src/debug-functions.php @@ -1,7 +1,7 @@ * diff --git a/tests/DbgTest.php b/tests/DbgTest.php index c2dedfd..a0062ad 100644 --- a/tests/DbgTest.php +++ b/tests/DbgTest.php @@ -1,7 +1,7 @@ * diff --git a/tests/DbgThrowTest.php b/tests/DbgThrowTest.php index d14c1f4..33d52b1 100644 --- a/tests/DbgThrowTest.php +++ b/tests/DbgThrowTest.php @@ -1,7 +1,7 @@ * diff --git a/tests/DbglogTest.php b/tests/DbglogTest.php index 1c497f7..cbb3697 100644 --- a/tests/DbglogTest.php +++ b/tests/DbglogTest.php @@ -1,7 +1,7 @@ * diff --git a/tests/DbgrTest.php b/tests/DbgrTest.php index 8f96959..2520ec0 100644 --- a/tests/DbgrTest.php +++ b/tests/DbgrTest.php @@ -1,7 +1,7 @@ * diff --git a/tests/LoggerTest.php b/tests/LoggerTest.php index 44e2890..e078774 100644 --- a/tests/LoggerTest.php +++ b/tests/LoggerTest.php @@ -1,7 +1,7 @@ * diff --git a/tests/TestDebug.php b/tests/TestDebug.php index e7c48d5..fd2f606 100644 --- a/tests/TestDebug.php +++ b/tests/TestDebug.php @@ -1,7 +1,7 @@ * diff --git a/tests/TestHelper.php b/tests/TestHelper.php index 851a505..8629e81 100644 --- a/tests/TestHelper.php +++ b/tests/TestHelper.php @@ -1,7 +1,7 @@ *