Passed
Branch master (03e013)
by Anatoly
03:33 queued 19s
created
Category
config/definitions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
      *
8 8
      * @link https://github.com/Seldaek/monolog
9 9
      */
10
-    Psr\Log\LoggerInterface::class => function ($container) {
10
+    Psr\Log\LoggerInterface::class => function($container) {
11 11
         $handler = new Monolog\Handler\StreamHandler(__DIR__ . '/../app.log');
12 12
         $handler->setFormatter(new Monolog\Formatter\LineFormatter);
13 13
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @link https://github.com/sunrise-php/http-router-annotations-support
25 25
      * @link https://github.com/middlewares/utils/pull/11
26 26
      */
27
-    Sunrise\Http\Router\RouterInterface::class => function ($container) {
27
+    Sunrise\Http\Router\RouterInterface::class => function($container) {
28 28
         Middlewares\Utils\Factory::setResponseFactory(new Sunrise\Http\Factory\ResponseFactory);
29 29
         Middlewares\Utils\Factory::setServerRequestFactory(new Sunrise\Http\Factory\ServerRequestFactory);
30 30
         Middlewares\Utils\Factory::setStreamFactory(new Sunrise\Http\Factory\StreamFactory);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $router->addMiddleware(new Middlewares\JsonPayload);
38 38
 
39 39
         $loader = new Sunrise\Http\Router\AnnotationRouteLoader();
40
-        $routes = $loader->load(__DIR__ . '/../src/Http/Controller', [$container, 'get']);
40
+        $routes = $loader->load(__DIR__ . '/../src/Http/Controller', [ $container, 'get' ]);
41 41
         $router->addRoutes($routes);
42 42
 
43 43
         return $router;
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
      * @link https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/advanced-configuration.html
51 51
      * @link http://srcmvn.com/blog/2011/11/10/doctrine-dbal-query-logging-with-monolog-in-silex
52 52
      */
53
-    Doctrine\ORM\EntityManager::class => function ($container) {
53
+    Doctrine\ORM\EntityManager::class => function($container) {
54 54
         Doctrine\Common\Annotations\AnnotationRegistry::registerLoader('class_exists');
55 55
 
56
-        $debug = in_array($container->get('env'), ['local', 'development', 'test']);
56
+        $debug = in_array($container->get('env'), [ 'local', 'development', 'test' ]);
57 57
 
58 58
         $config = Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration(
59
-            [__DIR__ . '/../src/Entity'],
59
+            [ __DIR__ . '/../src/Entity' ],
60 60
             $debug,
61 61
             null,
62 62
             null,
Please login to merge, or discard this patch.