From b4da68cf7b054fd31fa2304920a8ee99f169ebc9 Mon Sep 17 00:00:00 2001 From: jubianchi Date: Fri, 5 Aug 2016 20:51:29 +0200 Subject: [PATCH] Fix CS --- .php_cs | 1 + Makefile | 2 +- README.md | 3 ++- bin/dcv | 7 ++++--- spec/fetch-networks.php | 12 ++++++------ 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.php_cs b/.php_cs index ebaf9b8..29fd36a 100644 --- a/.php_cs +++ b/.php_cs @@ -7,5 +7,6 @@ $finder = Symfony\CS\Finder\DefaultFinder::create() ; return Symfony\CS\Config\Config::create() + ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) ->finder($finder) ; diff --git a/Makefile b/Makefile index 3cb3a18..6ae710c 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ unit: vendor cs: $(PHP) bin/php-cs-fixer fix --dry-run -fix-cs +fix-cs: $(PHP) bin/php-cs-fixer fix clean: diff --git a/README.md b/README.md index 57ddb24..124f774 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # `docker-compose-viz` -[![Build Status](https://travis-ci.org/pmsipilot/docker-compose-viz.svg?branch=master)](https://travis-ci.org/pmsipilot/docker-compose-viz) +[![Build Status](https://travis-ci.org/pmsipilot/docker-compose-viz.svg?branch=master)](https://travis-ci.org/pmsipilot/docker-compose-viz) [![StyleCI](https://styleci.io/repos/65026022/shield)](https://styleci.io/repos/65026022) + ## How to use diff --git a/bin/dcv b/bin/dcv index cb5d7ec..21e20f0 100644 --- a/bin/dcv +++ b/bin/dcv @@ -1,6 +1,7 @@ #!/usr/bin/env php diff --git a/spec/fetch-networks.php b/spec/fetch-networks.php index 6cac43b..485135e 100644 --- a/spec/fetch-networks.php +++ b/spec/fetch-networks.php @@ -2,19 +2,19 @@ use function PMSIpilot\DockerComposeViz\fetchNetworks; -require_once __DIR__ . '/../vendor/autoload.php'; +require_once __DIR__.'/../vendor/autoload.php'; -describe('Fetching networks', function() { - describe('from a version 1 configuration', function() { - it('should always return an empty array', function() { +describe('Fetching networks', function () { + describe('from a version 1 configuration', function () { + it('should always return an empty array', function () { $configuration = ['networks' => ['image' => 'bar']]; expect(fetchNetworks($configuration))->toBe([]); }); }); - describe('from a version 2 configuration', function() { - it('should fetch networks from the dedicated section', function() { + describe('from a version 2 configuration', function () { + it('should fetch networks from the dedicated section', function () { $configuration = ['version' => 2, 'networks' => ['foo' => [], 'bar' => []]]; expect(fetchNetworks($configuration))->toBe($configuration['networks']);