Skip to content

Commit 3d5fdfd

Browse files
committed
Fix coding styles in PHP files from app/ and web/ directories
1 parent 4ca7b86 commit 3d5fdfd

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

.php_cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
$finder = Symfony\CS\Finder::create()
55
->ignoreDotFiles(true)
66
->ignoreVCS(true)
7-
->exclude('app')
7+
->exclude('app/Resources')
8+
->exclude('app/config')
9+
->exclude('app/data')
810
->exclude('var')
911
->exclude('vendor')
10-
->exclude('web')
12+
->exclude('web/bundles')
13+
->exclude('web/css')
14+
->exclude('web/fonts')
15+
->exclude('web/js')
1116
->in(__DIR__)
1217
;
1318

app/autoload.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
use Doctrine\Common\Annotations\AnnotationRegistry;
44
use Composer\Autoload\ClassLoader;
55

6-
/**
7-
* @var ClassLoader $loader
8-
*/
6+
/** @var ClassLoader $loader */
97
$loader = require __DIR__.'/../vendor/autoload.php';
108

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

web/app.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

33
// This is the front controller used when executing the application in the
4-
// production environment ('prod'). See
5-
//
4+
// production environment ('prod'). See:
65
// * http://symfony.com/doc/current/cookbook/configuration/front_controllers_and_kernel.html
76
// * http://symfony.com/doc/current/cookbook/configuration/environments.html
87

@@ -17,12 +16,12 @@
1716
// If your web server provides APC support for PHP applications, uncomment these
1817
// lines to use APC for class autoloading. This can improve application performance
1918
// very significantly. See http://symfony.com/doc/current/components/class_loader/cache_class_loader.html#apcclassloader
20-
//
19+
2120
// NOTE: The first argument of ApcClassLoader() is the prefix used to prevent
2221
// cache key conflicts. In a real Symfony application, make sure to change
2322
// it to a value that it's unique in the web server. A common practice is to use
2423
// the domain name associated to the Symfony application (e.g. 'example_com').
25-
//
24+
2625
// $apcLoader = new Symfony\Component\ClassLoader\ApcClassLoader(sha1(__FILE__), $loader);
2726
// $loader->unregister();
2827
// $apcLoader->register(true);

web/app_dev.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

33
// This is the front controller used when executing the application in the
4-
// development environment ('dev'). See
5-
//
4+
// development environment ('dev'). See:
65
// * http://symfony.com/doc/current/cookbook/configuration/front_controllers_and_kernel.html
76
// * http://symfony.com/doc/current/cookbook/configuration/environments.html
87

@@ -25,9 +24,7 @@
2524
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
2625
}
2726

28-
/**
29-
* @var Composer\Autoload\ClassLoader $loader
30-
*/
27+
/** @var Composer\Autoload\ClassLoader $loader */
3128
$loader = require __DIR__.'/../app/autoload.php';
3229
Debug::enable();
3330

0 commit comments

Comments
 (0)