Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Fixed composer check-style #651

Merged
merged 1 commit into from
Nov 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ return Symfony\CS\Config\Config::create()
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in('src/')
->in('app/')
->exclude('cache')
->exclude('logs')
Copy link
Member

Choose a reason for hiding this comment

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

The Resources directory can be excluded too.

->exclude('Resources')
)
;
2 changes: 1 addition & 1 deletion app/AppCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014 Elcodi.com
* Copyright (c) 2014-2015 Elcodi.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
13 changes: 6 additions & 7 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014 Elcodi.com
* Copyright (c) 2014-2015 Elcodi.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -15,10 +15,10 @@
* @author Elcodi Team <tech@elcodi.com>
*/

use Mmoreram\SymfonyBundleDependencies\BundleDependenciesResolver;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
use Mmoreram\SymfonyBundleDependencies\BundleDependenciesResolver;
use Symfony\Component\HttpKernel\Kernel;

/**
* Class AppKernel
Expand All @@ -36,7 +36,7 @@ class AppKernel extends Kernel
*/
public function registerBundles()
{
$bundles = array(
$bundles = [

/**
* Symfony dependencies
Expand Down Expand Up @@ -159,10 +159,9 @@ public function registerBundles()
new Elcodi\Plugin\FreePaymentBundle\ElcodiFreePaymentBundle(),
new Elcodi\Plugin\StripeBundle\ElcodiStripeBundle(),
new Elcodi\Plugin\CustomShippingBundle\ElcodiCustomShippingBundle(),
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
];

if (in_array($this->getEnvironment(), ['dev', 'test'])) {
$bundles[] = new Elcodi\Bundle\FixturesBoosterBundle\ElcodiFixturesBoosterBundle();
$bundles[] = new Elcodi\Bridge\BehatBridgeBundle\BehatBridgeBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
Expand Down
15 changes: 15 additions & 0 deletions app/DoctrineMigrations/Version20151119001829.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<?php

/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014-2015 Elcodi.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@mmoreram.com>
* @author Aldo Chiecchia <zimage@tiscali.it>
* @author Elcodi Team <tech@elcodi.com>
*/

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
Expand Down
6 changes: 3 additions & 3 deletions app/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014 Elcodi.com
* Copyright (c) 2014-2015 Elcodi.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -21,8 +21,8 @@
/**
* @var ClassLoader $loader
*/
$loader = require __DIR__.'/../vendor/autoload.php';
$loader = require __DIR__ . '/../vendor/autoload.php';

AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
AnnotationRegistry::registerLoader([$loader, 'loadClass']);

return $loader;
2 changes: 1 addition & 1 deletion app/config/common/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ services:
class: Elcodi\Component\Currency\Wrapper\DefaultCurrencyWrapper
arguments:
- @elcodi.repository.currency
- @elcodi.store_default_currency_iso
- @elcodi.store_default_currency_iso
2 changes: 1 addition & 1 deletion app/config/common/sitemap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ elcodi_sitemap:
main:
languages: elcodi.languages_iso_array
builders:
- main
- main
1 change: 0 additions & 1 deletion app/config/heroku.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* @author Elcodi Team <tech@elcodi.com>
*/

// if the app isn't on Heroku, don't do anything
if (!($stack = getenv('STACK')) || !($stack == 'cedar' || $stack == 'cedar-14')) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion app/config/routing/routing_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ admin_login_check:
path: /login_check

admin_logout:
path: /logout
path: /logout
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@
},
"scripts": {
"check-style": [
"php-cs-fixer fix --config-file=.php_cs",
"php-formatter f:u:s src"
"bin/php-cs-fixer fix --config-file=.php_cs",
"bin/php-formatter f:u:s src",
"bin/php-formatter f:u:s app",
"bin/php-formatter f:h:f src",
"bin/php-formatter f:h:f app"
],
"compile": [
"app/console -n doctrine:migrations:status",
Expand Down