Skip to content

Commit

Permalink
Lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph3nol committed Aug 16, 2017
1 parent 0809889 commit f8f38bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Total Downloads](https://img.shields.io/packagist/dt/ph3nol/docker-arch.svg)](https://packagist.org/packages/ph3nol/docker-arch)
[![Build Status](https://secure.travis-ci.org/Ph3nol/Docker-Arch.png)](http://travis-ci.org/Ph3nol/Docker-Arch)

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/4f6f80c4-281a-4903-bf4c-1eb264995dbd/big.png)](https://insight.sensiolabs.com/projects/4f6f80c4-281a-4903-bf4c-1eb264995dbd)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/acb7b2ff-0aa1-47bf-a0a9-7b944c36b7c4/big.png)](https://insight.sensiolabs.com/projects/acb7b2ff-0aa1-47bf-a0a9-7b944c36b7c4)

## Local installation

Expand Down
13 changes: 1 addition & 12 deletions src/Application/Architect.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ class Architect implements ArchitectInterface
*/
protected $templatedFileGenerator;

/**
* @var string
*/
private $buildIdentifier;

/**
* @var string
*/
Expand All @@ -46,11 +41,6 @@ class Architect implements ArchitectInterface
*/
private $persister;

/**
* @var ProjectInterface
*/
private $project;

/**
* @var Filesystem
*/
Expand All @@ -66,7 +56,6 @@ public function __construct(TemplatedFileGeneratorInterface $templatedFileGenera
define('PROJECT_SRC_DIR', PROJECT_ROOT_DIR.'/src');

$this->templatedFileGenerator = $templatedFileGenerator;
$this->buildIdentifier = uniqid();
$this->fs = new Filesystem();
}

Expand Down Expand Up @@ -145,6 +134,6 @@ private function initProject($projectPath): ?ProjectInterface
$this->persister = Persister::init($this->projectPath);
}

return $this->project = (new ProjectRepository($this->persister))->getProject();
return (new ProjectRepository($this->persister))->getProject();
}
}
5 changes: 1 addition & 4 deletions src/Application/DockerContainer/RedisDockerContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ class RedisDockerContainer extends DockerContainer
*/
public function init(): void
{
$this
->setFrom(sprintf('redis:%s-alpine', $this->getService()->getOptions()['version']));

$service = $this->getService();
$this->setFrom(sprintf('redis:%s-alpine', $this->getService()->getOptions()['version']));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Ph3\DockerArch\Infrastructure\Common\Persistence\DataTransformer;

use Ph3\DockerArch\Domain\DockerContainer\Model\DockerContainer;
use Ph3\DockerArch\Domain\DockerContainer\Model\DockerContainerInterface;

/**
Expand Down

0 comments on commit f8f38bb

Please sign in to comment.