Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Several Changes + Tests #20

Merged
merged 3 commits into from
Mar 25, 2019
Merged

Conversation

dbpolito
Copy link
Member

No description provided.

@dbpolito dbpolito requested a review from fabriciojs March 25, 2019 15:13
}

protected static function loadEnv($envFile): void
public function loadEnv($envFile, $overload = false): void
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of a bool flag that changes the method behaviour, let's have two different methods that perform each of the loads (safe / overload)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this way the calling of the method is clearer to what it is suppose to do

{
return static::getContextPath() . '/docker-compose.yml';
}

public static function getDefaultFwd()
public function getDefaultFwd()
{
return static::getDefaultPath() . '/.fwd';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

below we are using sprintf for concat strings... maybe worth expanding the pattern to the whole class at least

@fabriciojs fabriciojs merged commit 6e5139e into fireworkweb:php Mar 25, 2019
@dbpolito dbpolito deleted the several_changes branch March 25, 2019 17:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants