diff --git a/.idea/PhpMvc-DotEnv.iml b/.idea/PhpMvc-DotEnv.iml index b4aeeb9..3d0afa3 100644 --- a/.idea/PhpMvc-DotEnv.iml +++ b/.idea/PhpMvc-DotEnv.iml @@ -2,8 +2,8 @@ - - + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0e2114f..59c77e6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,13 +2,15 @@ - + - + + + + + + Dusan\\DotEnv\\ + Dusan\DotEnv\ + Dusan\DotEnv + + + BrosSquad\\DotEnv\\ + BrosSquad\DotEnv\ + BrosSquad\DotEnv + + @@ -80,10 +105,10 @@ @@ -252,7 +277,7 @@ 1559597724028 - + @@ -289,13 +314,13 @@ - - + @@ -400,26 +425,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -429,17 +434,17 @@ - + - - + + - + @@ -448,16 +453,32 @@ - - + + + + + + + + + + + + - - - - + + + + + + + + + + \ No newline at end of file diff --git a/.phpunit.result.cache b/.phpunit.result.cache index 7908f7c..194ed6d 100644 --- a/.phpunit.result.cache +++ b/.phpunit.result.cache @@ -1 +1 @@ -C:37:"PHPUnit\Runner\DefaultTestResultCache":616:{a:2:{s:7:"defects";a:4:{s:49:"Dusan\DotEnv\Tests\EnvParserTest::test_env_parser";i:3;s:53:"Dusan\DotEnv\Tests\EnvParserTest::test_env_with_error";i:4;s:76:"Dusan\DotEnv\Tests\EnvParserTest::test_env_with_space_error_in_variable_name";i:4;s:52:"Dusan\DotEnv\Tests\EnvParserTest::test_interpolation";i:3;}s:5:"times";a:4:{s:49:"Dusan\DotEnv\Tests\EnvParserTest::test_env_parser";d:0.026;s:53:"Dusan\DotEnv\Tests\EnvParserTest::test_env_with_error";d:0.003;s:76:"Dusan\DotEnv\Tests\EnvParserTest::test_env_with_space_error_in_variable_name";d:0.002;s:52:"Dusan\DotEnv\Tests\EnvParserTest::test_interpolation";d:0.003;}}} \ No newline at end of file +C:37:"PHPUnit\Runner\DefaultTestResultCache":616:{a:2:{s:7:"defects";a:4:{s:49:"BrosSquad\DotEnv\Tests\EnvParserTest::test_env_parser";i:3;s:53:"BrosSquad\DotEnv\Tests\EnvParserTest::test_env_with_error";i:4;s:76:"BrosSquad\DotEnv\Tests\EnvParserTest::test_env_with_space_error_in_variable_name";i:4;s:52:"BrosSquad\DotEnv\Tests\EnvParserTest::test_interpolation";i:3;}s:5:"times";a:4:{s:49:"BrosSquad\DotEnv\Tests\EnvParserTest::test_env_parser";d:0.026;s:53:"BrosSquad\DotEnv\Tests\EnvParserTest::test_env_with_error";d:0.003;s:76:"BrosSquad\DotEnv\Tests\EnvParserTest::test_env_with_space_error_in_variable_name";d:0.002;s:52:"BrosSquad\DotEnv\Tests\EnvParserTest::test_interpolation";d:0.003;}}} diff --git a/composer.json b/composer.json index 2950ac8..1245ffc 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "src/functions.php" ], "psr-4": { - "Dusan\\DotEnv\\": "src/" + "BrosSquad\\DotEnv\\": "src/" } }, "autoload-dev": { @@ -20,7 +20,7 @@ "src/functions.php" ], "psr-4": { - "Dusan\\DotEnv\\Tests\\": "tests/" + "BrosSquad\\DotEnv\\Tests\\": "tests/" } }, "type": "library", diff --git a/src/EnvParser.php b/src/EnvParser.php index a30ff68..6a63922 100644 --- a/src/EnvParser.php +++ b/src/EnvParser.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Dusan\DotEnv; +namespace BrosSquad\DotEnv; -use Dusan\DotEnv\Exceptions\DotEnvSyntaxError; -use Dusan\DotEnv\Exceptions\EnvNotParsed; -use Dusan\DotEnv\Exceptions\EnvVariableNotFound; +use BrosSquad\DotEnv\Exceptions\DotEnvSyntaxError; +use BrosSquad\DotEnv\Exceptions\EnvNotParsed; +use BrosSquad\DotEnv\Exceptions\EnvVariableNotFound; use Dusan\PhpMvc\File\File; use Exception; @@ -91,7 +91,7 @@ public function parse(bool $raw = false): void * @param int $column * * @return string - * @throws \Dusan\DotEnv\Exceptions\DotEnvSyntaxError + * @throws \BrosSquad\DotEnv\Exceptions\DotEnvSyntaxError */ private function extractName(string $startingChar, int & $column): string { @@ -130,7 +130,7 @@ private function extractName(string $startingChar, int & $column): string * @param int $column * * @return string - * @throws \Dusan\DotEnv\Exceptions\EnvVariableNotFound + * @throws \BrosSquad\DotEnv\Exceptions\EnvVariableNotFound */ private function extractValue(array $envs, bool $raw, int & $column): string { @@ -180,7 +180,7 @@ private function extractValue(array $envs, bool $raw, int & $column): string * @param array $envs * * @return mixed - * @throws \Dusan\DotEnv\Exceptions\EnvVariableNotFound + * @throws \BrosSquad\DotEnv\Exceptions\EnvVariableNotFound */ private function interpolation(array $envs) { @@ -198,7 +198,7 @@ private function interpolation(array $envs) * Loads ENVs into $_ENV Super global variable * * @return void - * @throws \Dusan\DotEnv\Exceptions\EnvNotParsed + * @throws \BrosSquad\DotEnv\Exceptions\EnvNotParsed */ public function loadIntoENV(): void { @@ -216,7 +216,7 @@ public function loadIntoENV(): void * * @inheritDoc * @return void - * @throws \Dusan\DotEnv\Exceptions\EnvNotParsed + * @throws \BrosSquad\DotEnv\Exceptions\EnvNotParsed */ public function loadUsingPutEnv(): void { diff --git a/src/EnvParserInterface.php b/src/EnvParserInterface.php index 4267e4a..1e4f9d2 100644 --- a/src/EnvParserInterface.php +++ b/src/EnvParserInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dusan\DotEnv; +namespace BrosSquad\DotEnv; interface EnvParserInterface diff --git a/src/Exceptions/DotEnvSyntaxError.php b/src/Exceptions/DotEnvSyntaxError.php index 21001d6..9ea7511 100644 --- a/src/Exceptions/DotEnvSyntaxError.php +++ b/src/Exceptions/DotEnvSyntaxError.php @@ -1,7 +1,7 @@