Skip to content

Commit

Permalink
csfixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed May 11, 2017
1 parent bea8462 commit b38c0f5
Show file tree
Hide file tree
Showing 22 changed files with 39 additions and 35 deletions.
23 changes: 13 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# hidev internals
.hidev/composer.json
.hidev/composer.lock
.hidev/config-local.yml
.hidev/vendor
/.hidev/composer.json
/.hidev/composer.lock
/.hidev/runtime
/.hidev/vendor

# local config
/.env
/hidev-local.yml

# IDE & OS files
.*.swp
Expand All @@ -14,21 +18,20 @@
Thumbs.db
nbproject

# vendor dirs
vendor

# composer lock files
composer.lock
# composer internals
/composer.lock
/vendor

# php-cs-fixer cache
.php_cs.cache

# phpunit generated files
coverage.clover

# PHARs
# Binaries
chkipper.phar
composer.phar
ocular.phar
php-cs-fixer.phar
phpunit-skelgen.phar
phpunit.phar
1 change: 1 addition & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ return PhpCsFixer\Config::create()
],
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'phpdoc_no_alias_tag' => ['replacements' => ['type' => 'var']],
'blank_line_before_return' => false,
'phpdoc_align' => false,
'phpdoc_scalar' => false,
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ php:
- 7
- 7.1
- hhvm
sudo: false
dist: trusty
matrix:
allow_failures:
Expand All @@ -18,10 +17,11 @@ before_install:
- 'composer --version'
- 'wget http://hiqdev.com/hidev/hidev.phar -O hidev.phar && chmod a+x hidev.phar'
- './hidev.phar --version'
- './hidev.phar travis/before_install'
- './hidev.phar travis/before-install'
sudo: false
install:
- './hidev.phar travis/install'
script:
- './hidev.phar travis/script'
after_script:
- './hidev.phar travis/after_script'
- './hidev.phar travis/after-script'
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/hiqdev/composer-config-plugin.svg)](https://scrutinizer-ci.com/g/hiqdev/composer-config-plugin/)
[![Dependency Status](https://www.versioneye.com/php/hiqdev:composer-config-plugin/dev-master/badge.svg)](https://www.versioneye.com/php/hiqdev:composer-config-plugin/dev-master)

This [Composer](https://getcomposer.org/) plugin provides assembling
This [Composer] plugin provides assembling
of configurations distributed with composer packages.
This allows to put configuration needed to use package right inside of
the package thus implementing plugin system: package becomes a plugin
Expand All @@ -34,9 +34,11 @@ How it works?
directory together with information needed to rebuild configs on demand
- then assembled configs can be loaded into application with `require`

[composer]: https://getcomposer.org/

## Installation

Add to required section of your `composer.json`:
Add to require section of your `composer.json`:

```json
"hiqdev/composer-config-plugin": "*"
Expand Down
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/Helper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/ReaderFactory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
4 changes: 1 addition & 3 deletions src/Resolver.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down Expand Up @@ -34,7 +34,6 @@ public function __construct(array $files)
foreach (array_keys($this->files) as $name) {
$this->followDeps($name);
}

}

public function get()
Expand Down Expand Up @@ -96,5 +95,4 @@ protected function isDep($path)
{
return strncmp($path, '$', 1) === 0 ? substr($path, 1) : false;
}

}
2 changes: 1 addition & 1 deletion src/exceptions/CircularDependencyException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/exceptions/Exception.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/exceptions/FailedReadException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/exceptions/FailedWriteException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/exceptions/UnsupportedFileTypeException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/readers/AbstractReader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/readers/EnvReader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/readers/JsonReader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/readers/PhpReader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/readers/YamlReader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion tests/_bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/PluginTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Composer plugin for config assembling
* Composer plugin for config assembling.
*
* @link https://github.com/hiqdev/composer-config-plugin
* @package composer-config-plugin
Expand Down

0 comments on commit b38c0f5

Please sign in to comment.