Skip to content

Commit

Permalink
move the project to sugared-rim ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
schnittstabil committed Nov 8, 2016
1 parent fdcc1b3 commit 4d4bdb1
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sudo: false

install:
- composer selfupdate
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer global require --update-no-dev schnittstabil/sugared-phpmd:dev-master@dev schnittstabil/sugared-php_codesniffer:dev-master@dev; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer global require --update-no-dev schnittstabil/sugared-phpmd:dev-master@dev sugared-rim/php_codesniffer:dev-master@dev; fi
- composer install
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer global require --update-no-dev codeclimate/php-test-reporter satooshi/php-coveralls fabpot/php-cs-fixer; fi
- export PATH=$PATH:`composer global config bin-dir --absolute`
Expand Down
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "schnittstabil/sugared-php-cs-fixer",
"name": "sugared-rim/php-cs-fixer",
"type": "library",
"description": "PHP-CS-Fixer sweetened with ease",
"license": "MIT",
"keywords": ["sugared", "preconfigured", "php-cs-fixer", "standards", "cs", "lint"],
"keywords": ["sugared", "preconfigured", "php-cs-fixer", "standards", "cs", "lint", "sugared-rim"],
"authors": [
{
"name": "Michael Mayer",
"email": "michael@schnittstabil.de"
}
],
"autoload": {
"psr-4": { "Schnittstabil\\Sugared\\PhpCsFixer\\": "src" }
"psr-4": { "SugaredRim\\PhpCsFixer\\": "src" }
},
"autoload-dev": {
"psr-4": { "Schnittstabil\\Sugared\\PhpCsFixer\\": "tests" }
"psr-4": { "SugaredRim\\PhpCsFixer\\": "tests" }
},
"require": {
"php": ">=5.6.0",
Expand All @@ -24,15 +24,15 @@
"schnittstabil/get": "^2.0"
},
"require-dev": {
"schnittstabil/sugared-phpunit": "^1.0"
"sugared-rim/phpunit": "^2.0"
},
"extra": {
"schnittstabil/php-cs-fixer no-presets": {
"sugared-rim/php-cs-fixer no-presets": {
"presets": false
}
},
"bin": [
"sugared-php-cs-fixer"
"sugared-rim-php-cs-fixer"
],
"scripts": {
"clean": "rm -rf build/",
Expand All @@ -41,17 +41,17 @@
"phpmetrics --report-html build/phpmetrics/index.html src/"
],
"lint": [
"sugared-phpcs",
"sugared-rim-phpcs",
"sugared-phpmd",
"php-cs-fixer fix --dry-run --diff sugared-php-cs-fixer",
"php-cs-fixer fix --dry-run --diff sugared-rim-php-cs-fixer",
"php-cs-fixer fix --dry-run --diff src",
"php-cs-fixer fix --dry-run --diff tests"
],
"test": [
"composer lint",
"sugared-phpunit",
"./sugared-php-cs-fixer"
"sugared-rim-phpunit",
"./sugared-rim-php-cs-fixer --help",
"composer lint"
],
"travis": "sugared-phpunit"
"travis": "sugared-rim-phpunit"
}
}
18 changes: 9 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
## Sugared\PHP-CS-Fixer [![Build Status](https://travis-ci.org/schnittstabil/sugared-php-cs-fixer.svg?branch=master)](https://travis-ci.org/schnittstabil/sugared-php-cs-fixer) [![Coverage Status](https://coveralls.io/repos/schnittstabil/sugared-php-cs-fixer/badge.svg?branch=master&service=github)](https://coveralls.io/github/schnittstabil/sugared-php-cs-fixer?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/schnittstabil/sugared-php-cs-fixer/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/schnittstabil/sugared-php-cs-fixer/?branch=master) [![Code Climate](https://codeclimate.com/github/schnittstabil/sugared-php-cs-fixer/badges/gpa.svg)](https://codeclimate.com/github/schnittstabil/sugared-php-cs-fixer)
## SugaredRim\PHP-CS-Fixer [![Build Status](https://travis-ci.org/sugared-rim/php-cs-fixer.svg?branch=master)](https://travis-ci.org/sugared-rim/php-cs-fixer) [![Coverage Status](https://coveralls.io/repos/sugared-rim/php-cs-fixer/badge.svg?branch=master&service=github)](https://coveralls.io/github/sugared-rim/php-cs-fixer?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sugared-rim/php-cs-fixer/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sugared-rim/php-cs-fixer/?branch=master) [![Code Climate](https://codeclimate.com/github/sugared-rim/php-cs-fixer/badges/gpa.svg)](https://codeclimate.com/github/sugared-rim/php-cs-fixer)

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/e1dbc6dc-f3c1-455f-9eb3-69158943ba65/big.png)](https://insight.sensiolabs.com/projects/e1dbc6dc-f3c1-455f-9eb3-69158943ba65)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/905fb88b-2be4-42ba-b383-58b08ce68463/big.png)](https://insight.sensiolabs.com/projects/905fb88b-2be4-42ba-b383-58b08ce68463)

> PHP-CS-Fixer sweetened with ease :cherries:
Sugared\PHP-CS-Fixer takes an opinionated view of code style checking with [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), it is preconfigured to get you up and running as quickly as possible.
SugaredRim\PHP-CS-Fixer takes an opinionated view of code style checking with [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), it is preconfigured to get you up and running as quickly as possible.

### Install

```
$ composer require --dev schnittstabil/sugared-php-cs-fixer
$ composer require --dev sugared-rim/php-cs-fixer
```

### Usage

Instead of running `php-cs-fixer` with all its options, just run `sugared-php-cs-fixer` - that's it:
Instead of running `php-cs-fixer` with all its options, just run `sugared-rim-php-cs-fixer` - that's it:

```json
{
...
"require-dev": {
"schnittstabil/sugared-php-cs-fixer": ...
"sugared-rim/php-cs-fixer": ...
},
"scripts": {
"lint": "sugared-php-cs-fixer"
"lint": "sugared-rim-php-cs-fixer"
}
}
```
Expand All @@ -37,10 +37,10 @@ Some of the default settings:
{
...
"scripts": {
"lint": "sugared-php-cs-fixer"
"lint": "sugared-rim-php-cs-fixer"
},
"extra": {
"schnittstabil/sugared-php-cs-fixer": {
"sugared-rim/php-cs-fixer": {
"diff": true,
"dry-run": true,
"cache": true,
Expand Down
10 changes: 6 additions & 4 deletions src/Config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer;
namespace SugaredRim\PhpCsFixer;

use Symfony\CS\Config\Config as BaseConfig;

class Config extends BaseConfig
/**
* @property bool $diff
* @property bool $dry-run
*/
class Config extends \Symfony\CS\Config\Config
{
private $extended = array();

Expand Down
4 changes: 2 additions & 2 deletions src/ConfigFactory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer;
namespace SugaredRim\PhpCsFixer;

use Schnittstabil\Get\Get;
use Schnittstabil\ComposerExtra\ComposerExtra;
Expand All @@ -14,7 +14,7 @@ public function __construct()
{
$this->defaults = new \stdClass();
$this->defaults->presets = [
'Schnittstabil\\Sugared\\PhpCsFixer\\DefaultPreset::get',
'SugaredRim\\PhpCsFixer\\DefaultPreset::get',
];
}

Expand Down
4 changes: 2 additions & 2 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer\Console;
namespace SugaredRim\PhpCsFixer\Console;

use Symfony\Component\Console\Application as BaseApplication;
use Symfony\CS\Console\Command\ReadmeCommand;
use Schnittstabil\Sugared\PhpCsFixer\Console\Command\FixCommand;
use SugaredRim\PhpCsFixer\Console\Command\FixCommand;

class Application extends BaseApplication
{
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Command/FixCommand.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer\Console\Command;
namespace SugaredRim\PhpCsFixer\Console\Command;

use Schnittstabil\Get\Get;
use Schnittstabil\Sugared\PhpCsFixer\ConfigFactory;
use SugaredRim\PhpCsFixer\ConfigFactory;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/DefaultPreset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer;
namespace SugaredRim\PhpCsFixer;

class DefaultPreset
{
Expand Down
2 changes: 1 addition & 1 deletion sugared-php-cs-fixer → sugared-rim-php-cs-fixer
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

use Schnittstabil\Sugared\PhpCsFixer\Console\Application;
use SugaredRim\PhpCsFixer\Console\Application;

set_error_handler(function ($severity, $message, $file, $line) {
if ($severity & error_reporting()) {
Expand Down
4 changes: 2 additions & 2 deletions tests/ConfigFactoryTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer;
namespace SugaredRim\PhpCsFixer;

use Symfony\CS\Config\Config;
use Symfony\Component\Finder\Finder;
Expand All @@ -10,7 +10,7 @@ class ConfigFactoryTest extends \PHPUnit_Framework_TestCase
public function testInvokeShouldReturnConfigInstance()
{
$factory = new ConfigFactory();
$sut = $factory('schnittstabil/php-cs-fixer no-presets');
$sut = $factory('sugared-rim/php-cs-fixer no-presets');
$this->assertInstanceOf(Config::class, $sut);
$this->assertInstanceOf(Finder::class, $sut->getFinder());
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ConfigTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer;
namespace SugaredRim\PhpCsFixer;

class ConfigTest extends \PHPUnit_Framework_TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Console/ApplicationTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer\Console;
namespace SugaredRim\PhpCsFixer\Console;

use Symfony\Component\Console\Event\ConsoleCommandEvent;
use Symfony\Component\Console\Tester\ApplicationTester;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\Filesystem\Filesystem;
use Schnittstabil\Sugared\PhpCsFixer\Console\Command\FixCommand;
use SugaredRim\PhpCsFixer\Console\Command\FixCommand;

class ApplicationTest extends \PHPUnit_Framework_TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Command/FixCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Schnittstabil\Sugared\PhpCsFixer\Console\Command;
namespace SugaredRim\PhpCsFixer\Console\Command;

use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\BufferedOutput;
Expand Down

0 comments on commit 4d4bdb1

Please sign in to comment.