Completed
Push — master ( 8085db...7ce8e8 )
by Klaus
05:34
created
Category
src/Provider/MonologServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla\Provider;
5 5
 
@@ -16,12 +16,12 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function register(Container $app)
18 18
     {
19
-        $app['logger'] = function () use ($app) {
19
+        $app['logger'] = function() use ($app) {
20 20
             return $app['monolog'];
21 21
         };
22 22
 
23 23
         $app['monolog.logger.class'] = 'Monolog\\Logger';
24
-        $app['monolog'] = function ($app) {
24
+        $app['monolog'] = function($app) {
25 25
             $log = new $app['monolog.logger.class']($app['monolog.name']);
26 26
             $log->pushHandler($app['monolog.handler']);
27 27
 
@@ -32,18 +32,18 @@  discard block
 block discarded – undo
32 32
             return $log;
33 33
         };
34 34
 
35
-        $app['monolog.formatter'] = function () {
35
+        $app['monolog.formatter'] = function() {
36 36
             return new LineFormatter();
37 37
         };
38 38
 
39
-        $app['monolog.handler'] = function () use ($app) {
39
+        $app['monolog.handler'] = function() use ($app) {
40 40
             $handler = new StreamHandler($app['monolog.logfile'], $app['monolog.level'], $app['monolog.bubble'], $app['monolog.permission']);
41 41
             $handler->setFormatter($app['monolog.formatter']);
42 42
 
43 43
             return $handler;
44 44
         };
45 45
 
46
-        $app['monolog.level'] = function () {
46
+        $app['monolog.level'] = function() {
47 47
             return Logger::DEBUG;
48 48
         };
49 49
 
Please login to merge, or discard this patch.
src/ApplicationEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla;
5 5
 
Please login to merge, or discard this patch.
src/Application.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla;
5 5
 
@@ -34,40 +34,40 @@  discard block
 block discarded – undo
34 34
         $this['debug'] = false;
35 35
         $this['config'] = [];
36 36
 
37
-        $this['event.dispatcher'] = function () {
37
+        $this['event.dispatcher'] = function() {
38 38
             return new EventDispatcher();
39 39
         };
40 40
 
41
-        $this['application.json_body_listener'] = function () {
41
+        $this['application.json_body_listener'] = function() {
42 42
             return new JsonBodyListener();
43 43
         };
44 44
 
45
-        $this['controller.resolver'] = function () {
45
+        $this['controller.resolver'] = function() {
46 46
             return new ServiceControllerResolver($this);
47 47
         };
48 48
 
49
-        $this['route.dispatcher'] = function () {
49
+        $this['route.dispatcher'] = function() {
50 50
             $dispatcher = new Dispatcher($this->getRouteCache());
51 51
             $dispatcher->setControllerResolver($this['controller.resolver']);
52 52
 
53 53
             return $dispatcher;
54 54
         };
55 55
 
56
-        $this['route.parser'] = function () {
56
+        $this['route.parser'] = function() {
57 57
             return new RouteParser();
58 58
         };
59 59
 
60
-        $this['route.data_generator'] = function () {
60
+        $this['route.data_generator'] = function() {
61 61
             return new DataGenerator();
62 62
         };
63 63
 
64
-        $this['route.collector'] = function () {
64
+        $this['route.collector'] = function() {
65 65
             return new RouteCollector($this['route.parser'], $this['route.data_generator']);
66 66
         };
67 67
 
68 68
         parent::__construct($values);
69 69
 
70
-        $this->extend('event.dispatcher', function (EventDispatcher $eventDispatcher) {
70
+        $this->extend('event.dispatcher', function(EventDispatcher $eventDispatcher) {
71 71
             $eventDispatcher->addListener(ApplicationEvents::REQUEST, [$this['application.json_body_listener'], 'onRequest']);
72 72
 
73 73
             return $eventDispatcher;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     public function getRouteCache(): array
78 78
     {
79
-        $routeCache = $this['config']['route_cache'] ?? false;
79
+        $routeCache = $this['config']['route_cache'] ? ? false;
80 80
 
81 81
         if (!$this['debug'] && $routeCache && file_exists($routeCache)) {
82 82
             return require $routeCache;
Please login to merge, or discard this patch.
src/Event/ApplicationEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla;
5 5
 
Please login to merge, or discard this patch.
src/Event/ExceptionEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla;
5 5
 
Please login to merge, or discard this patch.
src/Event/PostResponseEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla;
5 5
 
Please login to merge, or discard this patch.
src/Event/RequestEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla;
5 5
 
Please login to merge, or discard this patch.
src/Event/ResponseEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla;
5 5
 
Please login to merge, or discard this patch.
src/Listener/JsonBodyListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Linio\Tortilla;
5 5
 
Please login to merge, or discard this patch.