Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
Namespace Change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dusan Malusev committed Jul 12, 2019
1 parent b0dd6a6 commit e2b0de4
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 73 deletions.
4 changes: 2 additions & 2 deletions .idea/PhpMvc-DotEnv.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 71 additions & 50 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -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;}}}
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;}}}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"src/functions.php"
],
"psr-4": {
"Dusan\\DotEnv\\": "src/"
"BrosSquad\\DotEnv\\": "src/"
}
},
"autoload-dev": {
"files": [
"src/functions.php"
],
"psr-4": {
"Dusan\\DotEnv\\Tests\\": "tests/"
"BrosSquad\\DotEnv\\Tests\\": "tests/"
}
},
"type": "library",
Expand Down
18 changes: 9 additions & 9 deletions src/EnvParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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)
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/EnvParserInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Dusan\DotEnv;
namespace BrosSquad\DotEnv;


interface EnvParserInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/DotEnvSyntaxError.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace Dusan\DotEnv\Exceptions;
namespace BrosSquad\DotEnv\Exceptions;


use Exception;
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/EnvNotParsed.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace Dusan\DotEnv\Exceptions;
namespace BrosSquad\DotEnv\Exceptions;


use Exception;
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/EnvVariableNotFound.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace Dusan\DotEnv\Exceptions;
namespace BrosSquad\DotEnv\Exceptions;


use Exception;
Expand Down
4 changes: 2 additions & 2 deletions src/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace Dusan\DotEnv;
namespace BrosSquad\DotEnv;

/**
* ENV Tokens
* This interfaces holds the tokens used in lexical process
*
* @package Dusan\DotEnv
* @package BrosSquad\DotEnv
*/
interface Tokens
{
Expand Down
6 changes: 3 additions & 3 deletions tests/EnvTest/EnvParserTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace Dusan\DotEnv\Tests;
namespace BrosSquad\DotEnv\Tests;


use Dusan\DotEnv\Exceptions\DotEnvSyntaxError;
use Dusan\DotEnv\EnvParser;
use BrosSquad\DotEnv\Exceptions\DotEnvSyntaxError;
use BrosSquad\DotEnv\EnvParser;
use Exception;
use PHPUnit\Framework\TestCase;

Expand Down

0 comments on commit e2b0de4

Please sign in to comment.