diff --git a/.codecov.yml b/.codecov.yml
deleted file mode 100644
index db24720..0000000
--- a/.codecov.yml
+++ /dev/null
@@ -1 +0,0 @@
-comment: off
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
deleted file mode 100644
index 4bb8a8b..0000000
--- a/.github/workflows/coverage.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-name: coverage
-on:
- push:
- branches:
- - main
- - coverage
-
-jobs:
- scrutinizer:
- runs-on: ubuntu-latest
-
- name: Coverage
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v2
-
- - name: Setup PHP
- uses: shivammathur/setup-php@v2
- with:
- php-version: 7.4
- extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, bcmath
- coverage: xdebug
-
- - name: Composer self update
- run: composer self-update
-
- - name: Install dependencies
- run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction
-
- - name: Execute tests
- run: |
- mkdir -p build/logs
- sudo vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
-
- - name: Export
- run: |
- wget https://scrutinizer-ci.com/ocular.phar
- sudo php ocular.phar code-coverage:upload --format=php-clover coverage.clover
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml
index c59afd7..e47a356 100644
--- a/.github/workflows/phpunit.yml
+++ b/.github/workflows/phpunit.yml
@@ -8,8 +8,7 @@ jobs:
strategy:
fail-fast: true
matrix:
- php: [ "7.2", "7.3", "7.4", "8.0" ]
- support: [ "2.0", "3.0", "4.0" ]
+ php: [ "7.3", "7.4", "8.0" ]
name: PHP ${{ matrix.php }}, Support ${{ matrix.support }}
@@ -24,13 +23,8 @@ jobs:
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, bcmath
coverage: none
- - name: Composer self update
- run: composer self-update
-
- name: Install dependencies
- run: |
- composer require andrey-helldar/support:^${{ matrix.support }}
- composer update --prefer-stable --prefer-dist --no-progress --no-interaction
+ run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction
- name: Execute tests
run: sudo vendor/bin/phpunit
diff --git a/.gitignore b/.gitignore
index 6eece06..1cbef81 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
.idea/
+build/
vendor/
tests/files/source.php.*.php
diff --git a/README.md b/README.md
index cfbc9e0..6e78f75 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,14 @@
# Pretty Array
-Simple conversion of an array to a pretty view.
-
-
-
-
-
-
+[![Stable Version][badge_stable]][link_packagist]
+[![Unstable Version][badge_unstable]][link_packagist]
+[![Total Downloads][badge_downloads]][link_packagist]
+[![Github Workflow Status][badge_build]][link_build]
+[![License][badge_license]][link_license]
-
-
-
-
-
+> Simple conversion of an array to a pretty view.
## Installation
@@ -22,19 +16,26 @@ Simple conversion of an array to a pretty view.
To get the latest version of `Pretty Array` package, simply require the project using [Composer](https://getcomposer.org):
```
-composer require andrey-helldar/pretty-array --dev
+composer require dragon-code/pretty-array
```
-Instead, you may of course manually update your `require-dev` block and run `composer update` if you so choose:
+Instead, you may of course manually update your `require` block and run `composer update` if you so choose:
```json
{
- "require-dev": {
- "andrey-helldar/pretty-array": "^2.2"
+ "require": {
+ "dragon-code/pretty-array": "^3.0"
}
}
```
+### Upgrade from `andrey-helldar/pretty-array`
+
+1. Replace `"andrey-helldar/pretty-array": "^2.0"` with `"dragon-code/pretty-array": "^3.0"` in the `composer.json` file;
+2. Replace `Helldar\PrettyArray\Contracts\Caseable` with `DragonCode\Contracts\Pretty\Arr\Caseable`;
+3. Replace `Helldar\PrettyArray` namespace prefix with `DragonCode\PrettyArray`;
+4. Call the `composer update` console command.
+
## Introduction
> Q: Why did you create this package when there is a cooler [symfony/var-exporter](https://github.com/symfony/var-exporter)?
@@ -70,14 +71,15 @@ $array = [
> Q: Why do you think this is bad?
This package has a framework-independent base. However, it was originally developed as an assistant for
-package [lang-translations](https://github.com/andrey-helldar/lang-translations).
+the [Laravel Lang: HTTP Statuses](https://github.com/Laravel-Lang/http-statuses)
+package.
-This package allows you to publish language translations for the Laravel framework.
+This package allows you to publish language translations of the HTTP Status Codes for the Laravel and Lumen frameworks.
-A feature of the framework is that IDEs that help with development do not know how to read the numeric keys of arrays of translation files, so it was necessary to translate them
-into a text equivalent.
+A feature of the framework is that IDEs that help with development do not know how to read the numeric keys of arrays of translation files, so it was necessary to translate
+theminto a text equivalent.
-This behavior includes [errors.php](https://github.com/andrey-helldar/lang-translations/blob/master/src/lang/en/errors.php) file:
+This behavior includes [http-statuses.php](https://github.com/Laravel-Lang/http-statuses/blob/main/source/http-statuses.php) file:
```php
setKeyAsString();
@@ -224,7 +226,7 @@ Result:
### Saving numeric keys with alignment
```php
-use Helldar\PrettyArray\Services\Formatter;
+use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setEqualsAlign();
@@ -257,7 +259,7 @@ Result:
### Saving string keys with alignment
```php
-use Helldar\PrettyArray\Services\Formatter;
+use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setKeyAsString();
@@ -291,7 +293,7 @@ Result:
### Saving simple array
```php
-use Helldar\PrettyArray\Services\Formatter;
+use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setSimple();
@@ -324,8 +326,8 @@ Result:
### Change key case
```php
-use Helldar\PrettyArray\Contracts\Caseable;
-use Helldar\PrettyArray\Services\Formatter;
+use DragonCode\Contracts\Pretty\Arr\Caseable;
+use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
$service->setCase(Caseable::PASCAL_CASE);
@@ -357,11 +359,11 @@ Result:
The following options are available:
-* camelCase (`Helldar\PrettyArray\Contracts\Caseable::CAMEL_CASE`);
-* kebab-case (`Helldar\PrettyArray\Contracts\Caseable::KEBAB_CASE`);
-* PascalCase (`Helldar\PrettyArray\Contracts\Caseable::PASCAL_CASE`);
-* snake_case (`Helldar\PrettyArray\Contracts\Caseable::SNAKE_CASE`);
-* no case (`Helldar\PrettyArray\Contracts\Caseable::NO_CASE`). By default;
+* camelCase (`DragonCode\Contracts\Pretty\Arr\Caseable::CAMEL_CASE`);
+* kebab-case (`DragonCode\Contracts\Pretty\Arr\Caseable::KEBAB_CASE`);
+* PascalCase (`DragonCode\Contracts\Pretty\Arr\Caseable::PASCAL_CASE`);
+* snake_case (`DragonCode\Contracts\Pretty\Arr\Caseable::SNAKE_CASE`);
+* no case (`DragonCode\Contracts\Pretty\Arr\Caseable::NO_CASE`). By default;
`NO_CASE` means that key register processing will not be performed.
@@ -369,8 +371,8 @@ The following options are available:
### Storing file
```php
-use Helldar\PrettyArray\Services\File;
-use Helldar\PrettyArray\Services\Formatter;
+use DragonCode\PrettyArray\Services\File;
+use DragonCode\PrettyArray\Services\Formatter;
$service = Formatter::make();
@@ -409,8 +411,18 @@ return [
This package is licensed under the [MIT License](LICENSE).
-## For Enterprise
+[badge_build]: https://img.shields.io/github/workflow/status/TheDragonCode/pretty-array/phpunit?style=flat-square
+
+[badge_downloads]: https://img.shields.io/packagist/dt/dragon-code/pretty-array.svg?style=flat-square
+
+[badge_license]: https://img.shields.io/packagist/l/dragon-code/pretty-array.svg?style=flat-square
+
+[badge_stable]: https://img.shields.io/github/v/release/TheDragonCode/pretty-array?label=stable&style=flat-square
+
+[badge_unstable]: https://img.shields.io/badge/unstable-dev--main-orange?style=flat-square
+
+[link_build]: https://github.com/TheDragonCode/pretty-array/actions
-Available as part of the Tidelift Subscription.
+[link_license]: LICENSE
-The maintainers of `andrey-helldar/pretty-array` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more](https://tidelift.com/subscription/pkg/packagist-andrey-helldar-pretty-array?utm_source=packagist-andrey-helldar-pretty-array&utm_medium=referral&utm_campaign=enterprise&utm_term=repo).
+[link_packagist]: https://packagist.org/packages/dragon-code/pretty-array
diff --git a/SECURITY.md b/SECURITY.md
deleted file mode 100644
index 7ad007f..0000000
--- a/SECURITY.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Security Policy
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security).
-
-Tidelift will coordinate the fix and disclosure.
diff --git a/composer.json b/composer.json
index 8a08079..a03e9c2 100644
--- a/composer.json
+++ b/composer.json
@@ -1,12 +1,12 @@
{
- "name": "andrey-helldar/pretty-array",
- "description": "Simple conversion of an array to a pretty view.",
+ "name": "dragon-code/pretty-array",
+ "description": "Simple conversion of an array to a pretty view",
"type": "library",
"license": "MIT",
- "keywords": ["pretty array", "pretty", "array"],
+ "keywords": ["pretty array", "pretty", "array", "dragon code", "dragon", "andrey helldar"],
"support": {
- "issues": "https://github.com/andrey-helldar/pretty-array/issues",
- "source": "https://github.com/andrey-helldar/pretty-array"
+ "issues": "https://github.com/TheDragonCode/pretty-array/issues",
+ "source": "https://github.com/TheDragonCode/pretty-array"
},
"authors": [
{
@@ -15,20 +15,24 @@
}
],
"require": {
- "php": "^7.2.5|^8.0",
+ "php": "^7.3|^8.0",
"ext-dom": "*",
"ext-mbstring": "*",
- "andrey-helldar/support": "^2.0|^3.0|^4.0"
+ "dragon-code/contracts": "^2.6",
+ "dragon-code/support": "^5.0"
},
"require-dev": {
- "phpunit/phpunit": "^8.0|^9.0"
+ "phpunit/phpunit": "^9.0"
+ },
+ "conflict": {
+ "andrey-helldar/pretty-array": "*"
},
"suggest": {
"symfony/thanks": "Give thanks (in the form of a GitHub) to your fellow PHP package maintainers"
},
"autoload": {
"psr-4": {
- "Helldar\\PrettyArray\\": "src"
+ "DragonCode\\PrettyArray\\": "src"
}
},
"autoload-dev": {
diff --git a/phpunit.xml b/phpunit.xml
index ab9ad17..8e7fe04 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,4 +1,20 @@
+
+
+
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
-use Helldar\PrettyArray\Exceptions\UnknownCaseTypeException;
-use Helldar\Support\Facades\Helpers\Str;
+namespace DragonCode\PrettyArray\Concerns;
+
+use DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException;
+use DragonCode\Support\Facades\Helpers\Str;
trait HasCases
{
@@ -12,7 +27,7 @@ trait HasCases
/**
* @param int $type
*
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function setCase(int $type = self::NO_CASE): void
{
diff --git a/src/Concerns/HasCastable.php b/src/Concerns/HasCastable.php
index 77b88b7..aa3cca5 100644
--- a/src/Concerns/HasCastable.php
+++ b/src/Concerns/HasCastable.php
@@ -1,20 +1,28 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
-use function addslashes;
-use function is_array;
-use function is_bool;
-use function is_null;
-use function is_numeric;
-use function is_object;
+namespace DragonCode\PrettyArray\Concerns;
trait HasCastable
{
/**
* Castable value.
*
- * @param mixed $value
+ * @param mixed $value
*
* @return mixed
*/
diff --git a/src/Contracts/Caseable.php b/src/Contracts/Caseable.php
deleted file mode 100644
index f5ab10c..0000000
--- a/src/Contracts/Caseable.php
+++ /dev/null
@@ -1,18 +0,0 @@
-
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
+namespace DragonCode\PrettyArray\Exceptions;
use Exception;
diff --git a/src/Exceptions/UnknownCaseTypeException.php b/src/Exceptions/UnknownCaseTypeException.php
index 4950e92..75331b5 100644
--- a/src/Exceptions/UnknownCaseTypeException.php
+++ b/src/Exceptions/UnknownCaseTypeException.php
@@ -1,6 +1,21 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
+namespace DragonCode\PrettyArray\Exceptions;
class UnknownCaseTypeException extends \Exception
{
diff --git a/src/Services/File.php b/src/Services/File.php
index 05f3cb9..745087e 100644
--- a/src/Services/File.php
+++ b/src/Services/File.php
@@ -1,15 +1,30 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
+namespace DragonCode\PrettyArray\Services;
-use Helldar\PrettyArray\Exceptions\FileDoesntExistsException;
-use Helldar\Support\Concerns\Makeable;
-use Helldar\Support\Facades\Helpers\Filesystem\File as FileSupport;
-use Helldar\Support\Facades\Tools\Stub;
-use Helldar\Support\Tools\Stub as StubTool;
+use DragonCode\PrettyArray\Exceptions\FileDoesntExistsException;
+use DragonCode\Support\Concerns\Makeable;
+use DragonCode\Support\Facades\Helpers\Filesystem\File as FileSupport;
+use DragonCode\Support\Facades\Tools\Stub;
+use DragonCode\Support\Tools\Stub as StubTool;
/**
- * @method static \Helldar\PrettyArray\Services\File make(string $content = null)
+ * @method static \DragonCode\PrettyArray\Services\File make(string $content = null)
*/
class File
{
@@ -25,7 +40,7 @@ public function __construct(string $content = null)
/**
* @param string $filename
*
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
*
* @return mixed
*/
diff --git a/src/Services/Formatter.php b/src/Services/Formatter.php
index 9a4f55b..7d962bd 100644
--- a/src/Services/Formatter.php
+++ b/src/Services/Formatter.php
@@ -1,14 +1,29 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
+namespace DragonCode\PrettyArray\Services;
+
+use DragonCode\Contracts\Pretty\Arr\Caseable;
+use DragonCode\PrettyArray\Concerns\HasCases;
+use DragonCode\PrettyArray\Concerns\HasCastable;
+use DragonCode\Support\Concerns\Makeable;
+use DragonCode\Support\Facades\Helpers\Arr;
+
+class Formatter implements Caseable
{
use HasCases;
use HasCastable;
diff --git a/tests/FormatterAlignRawTest.php b/tests/FormatterAlignRawTest.php
index 06f85fd..58c2497 100644
--- a/tests/FormatterAlignRawTest.php
+++ b/tests/FormatterAlignRawTest.php
@@ -1,5 +1,20 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
namespace Tests;
class FormatterAlignRawTest extends TestCase
diff --git a/tests/FormatterRawTest.php b/tests/FormatterRawTest.php
index 52757e7..0541c05 100644
--- a/tests/FormatterRawTest.php
+++ b/tests/FormatterRawTest.php
@@ -1,5 +1,20 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
namespace Tests;
class FormatterRawTest extends TestCase
diff --git a/tests/FormatterSimpleTest.php b/tests/FormatterSimpleTest.php
index 6096d92..4a4be6e 100644
--- a/tests/FormatterSimpleTest.php
+++ b/tests/FormatterSimpleTest.php
@@ -1,5 +1,20 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
namespace Tests;
class FormatterSimpleTest extends TestCase
diff --git a/tests/FormatterStoringCustomStubText.php b/tests/FormatterStoringCustomStubText.php
index b2431df..3a3e44d 100644
--- a/tests/FormatterStoringCustomStubText.php
+++ b/tests/FormatterStoringCustomStubText.php
@@ -1,8 +1,23 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
namespace Tests;
-use Helldar\PrettyArray\Services\File;
+use DragonCode\PrettyArray\Services\File;
class FormatterStoringCustomStubText extends TestCase
{
diff --git a/tests/FormatterStoringText.php b/tests/FormatterStoringText.php
index 5b8d6ea..3dc461a 100644
--- a/tests/FormatterStoringText.php
+++ b/tests/FormatterStoringText.php
@@ -1,8 +1,23 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
namespace Tests;
-use Helldar\PrettyArray\Services\File;
+use DragonCode\PrettyArray\Services\File;
class FormatterStoringText extends TestCase
{
diff --git a/tests/FormatterSwitchCasesTest.php b/tests/FormatterSwitchCasesTest.php
index 444758d..f3282e0 100644
--- a/tests/FormatterSwitchCasesTest.php
+++ b/tests/FormatterSwitchCasesTest.php
@@ -1,14 +1,29 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
namespace Tests;
-use Helldar\PrettyArray\Contracts\Caseable;
+use DragonCode\Contracts\Pretty\Arr\Caseable;
class FormatterSwitchCasesTest extends TestCase
{
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testCamelAsString()
{
@@ -26,8 +41,8 @@ public function testCamelAsString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testCamelNotString()
{
@@ -44,8 +59,8 @@ public function testCamelNotString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testCamelAlignAsString()
{
@@ -64,8 +79,8 @@ public function testCamelAlignAsString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testCamelAlignNotString()
{
@@ -83,8 +98,8 @@ public function testCamelAlignNotString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testKebabAsString()
{
@@ -102,8 +117,8 @@ public function testKebabAsString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testKebabNotString()
{
@@ -120,8 +135,8 @@ public function testKebabNotString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testKebabAlignAsString()
{
@@ -140,8 +155,8 @@ public function testKebabAlignAsString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testKebabAlignNotString()
{
@@ -159,8 +174,8 @@ public function testKebabAlignNotString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testPascalAsString()
{
@@ -178,8 +193,8 @@ public function testPascalAsString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testPascalNotString()
{
@@ -196,8 +211,8 @@ public function testPascalNotString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testPascalAlignAsString()
{
@@ -216,8 +231,8 @@ public function testPascalAlignAsString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testPascalAlignNotString()
{
@@ -235,8 +250,8 @@ public function testPascalAlignNotString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testSnakeAsString()
{
@@ -254,8 +269,8 @@ public function testSnakeAsString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testSnakeNotString()
{
@@ -272,8 +287,8 @@ public function testSnakeNotString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testSnakeAlignAsString()
{
@@ -292,8 +307,8 @@ public function testSnakeAlignAsString()
}
/**
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
- * @throws \Helldar\PrettyArray\Exceptions\UnknownCaseTypeException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\UnknownCaseTypeException
*/
public function testSnakeAlignNotString()
{
diff --git a/tests/TestCase.php b/tests/TestCase.php
index 2a594d8..0785142 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -1,9 +1,24 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
namespace Tests;
-use Helldar\PrettyArray\Services\File;
-use Helldar\PrettyArray\Services\Formatter;
+use DragonCode\PrettyArray\Services\File;
+use DragonCode\PrettyArray\Services\Formatter;
use PHPUnit\Framework\TestCase as TestCaseFramework;
abstract class TestCase extends TestCaseFramework
@@ -28,7 +43,7 @@ protected function getFile(string $filename): string
/**
* @param string $filename
*
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
*
* @return array
*/
@@ -42,7 +57,7 @@ protected function requireFile(string $filename): array
/**
* @param string $filename
*
- * @throws \Helldar\PrettyArray\Exceptions\FileDoesntExistsException
+ * @throws \DragonCode\PrettyArray\Exceptions\FileDoesntExistsException
*
* @return array
*/
diff --git a/tests/stubs/source-simple.php b/tests/stubs/source-simple.php
index 8d938ae..02d5f3a 100644
--- a/tests/stubs/source-simple.php
+++ b/tests/stubs/source-simple.php
@@ -1,5 +1,20 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
return array (
1 => 'foo',
'foo' => 'bar',
diff --git a/tests/stubs/source.php b/tests/stubs/source.php
index 5195f02..8c3538d 100644
--- a/tests/stubs/source.php
+++ b/tests/stubs/source.php
@@ -1,5 +1,20 @@
+ *
+ * @copyright 2021 Andrey Helldar
+ *
+ * @license MIT
+ *
+ * @see https://github.com/TheDragonCode/pretty-array
+ */
+
return array (
'foo' => 1,
'bar' => 2,