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

Commit

Permalink
Merge pull request #651 from elcodi/feature/some-style-fixes
Browse files Browse the repository at this point in the history
Fixed composer check-style
  • Loading branch information
mmoreram committed Nov 30, 2015
2 parents 96c0d9c + 4a93364 commit d1348a4
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 17 deletions.
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')
->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

0 comments on commit d1348a4

Please sign in to comment.