Completed
Push — master ( eef451...a9f19e )
by Dominik
03:00
created
src/SlimSingleContentTypeErrorHandlerProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
      */
13 13
     public function register(Container $container)
14 14
     {
15
-        $container['errorHandler.defaultProvider'] = function () use ($container) {
15
+        $container['errorHandler.defaultProvider'] = function() use ($container) {
16 16
             throw new \RuntimeException('Please configure your default provider for error handler!');
17 17
         };
18 18
 
19
-        $container['errorHandler'] = function () use ($container) {
19
+        $container['errorHandler'] = function() use ($container) {
20 20
             return new SlimSingleContentTypeErrorHandler($container['errorHandler.defaultProvider']);
21 21
         };
22 22
     }
Please login to merge, or discard this patch.
src/SlimMultiContentTypesErrorHandlerProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,23 +13,23 @@
 block discarded – undo
13 13
      */
14 14
     public function register(Container $container)
15 15
     {
16
-        $container['errorHandler.acceptNegation'] = function () use ($container) {
16
+        $container['errorHandler.acceptNegation'] = function() use ($container) {
17 17
             return new Negotiator();
18 18
         };
19 19
 
20
-        $container['errorHandler.contentTypeResolver'] = function () use ($container) {
20
+        $container['errorHandler.contentTypeResolver'] = function() use ($container) {
21 21
             return new ContentTypeResolver($container['errorHandler.acceptNegation']);
22 22
         };
23 23
 
24
-        $container['errorHandler.defaultProvider'] = function () use ($container) {
24
+        $container['errorHandler.defaultProvider'] = function() use ($container) {
25 25
             throw new \RuntimeException('Please configure your default provider for error handler!');
26 26
         };
27 27
 
28
-        $container['errorHandler.providers'] = function () use ($container) {
28
+        $container['errorHandler.providers'] = function() use ($container) {
29 29
             return [];
30 30
         };
31 31
 
32
-        $container['errorHandler'] = function () use ($container) {
32
+        $container['errorHandler'] = function() use ($container) {
33 33
             return new SlimMultiContentTypesErrorHandler(
34 34
                 $container['errorHandler.contentTypeResolver'],
35 35
                 $container['errorHandler.defaultProvider'],
Please login to merge, or discard this patch.