Completed
Push — staging ( 5f9089...8e7d49 )
by Matthew
04:33
created
src/ServiceProvider/LogServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        $this->getContainer()->singleton('Monolog\Logger', function () {
23
+        $this->getContainer()->singleton('Monolog\Logger', function() {
24 24
             $log = new Logger('app');
25 25
             $log->pushHandler(
26 26
                 new StreamHandler(__DIR__ . '/../../logs/app.log', Logger::DEBUG)
Please login to merge, or discard this patch.
src/ServiceProvider/UuidServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function register()
21 21
     {
22
-        $this->getContainer()->add('Ramsey\Uuid\Uuid', function () {
22
+        $this->getContainer()->add('Ramsey\Uuid\Uuid', function() {
23 23
             $uuid = Uuid::Uuid4();
24 24
             return $uuid;
25 25
         });
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     $response->setStatusCode(404)->setContent(
29 29
         $container->get('Twig_Environment')->render('404.html')
30 30
     );
31
-} catch(\Exception $e) {
31
+} catch (\Exception $e) {
32 32
     $response->setStatusCode(500)->setContent(
33 33
         'An error occured! ' . $e->getMessage()
34 34
     );
Please login to merge, or discard this patch.
src/Repository/AbstractEndpointRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $key = $this->returnKeyType($keyType);
82 82
 
83 83
         $query->cols(['*'])
84
-              ->where("{$key} = {$id}");
84
+                ->where("{$key} = {$id}");
85 85
 
86 86
         return $this->fireStatementAndReturn($query, true);
87 87
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $key = $this->returnKeyType($keyType);
100 100
 
101 101
         $query->cols(['*'])
102
-              ->where("{$key} = {$id}");
102
+                ->where("{$key} = {$id}");
103 103
 
104 104
         return $this->fireStatementAndReturn($query);
105 105
     }
Please login to merge, or discard this patch.
src/Controller/Endpoint/AbstractEndpointController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
     {
273 273
         $queryString = $request->query->get('embed');
274 274
 
275
-        if (! empty($queryString)) {
275
+        if (!empty($queryString)) {
276 276
             $this->fractal->parseIncludes($request->query->get('embed'));
277 277
         }
278 278
     }
Please login to merge, or discard this patch.
src/container.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,21 +17,21 @@
 block discarded – undo
17 17
 
18 18
 // Inflectors
19 19
 $container->inflector('Ps2alerts\Api\Contract\ConfigAwareInterface')
20
-          ->invokeMethod('setConfig', ['config']);
20
+            ->invokeMethod('setConfig', ['config']);
21 21
 $container->inflector('Ps2alerts\Api\Contract\DatabaseAwareInterface')
22
-          ->invokeMethod('setDatabaseDriver', ['Aura\Sql']);
22
+            ->invokeMethod('setDatabaseDriver', ['Aura\Sql']);
23 23
 $container->inflector('Ps2alerts\Api\Contract\LogAwareInterface')
24
-          ->invokeMethod('setLogDriver', ['Monolog\Logger']);
24
+            ->invokeMethod('setLogDriver', ['Monolog\Logger']);
25 25
 $container->inflector('Ps2alerts\Api\Contract\TemplateAwareInterface')
26
-          ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
26
+            ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
27 27
 $container->inflector('Ps2alerts\Api\Contract\RedisAwareInterface')
28
-          ->invokeMethod('setRedisDriver', ['redis']);
28
+            ->invokeMethod('setRedisDriver', ['redis']);
29 29
 $container->inflector('Ps2alerts\Api\Contract\UuidAwareInterface')
30
-          ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
30
+            ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
31 31
 
32 32
 
33 33
 // Container Inflector
34 34
 $container->inflector('League\Container\ContainerAwareInterface')
35
-          ->invokeMethod('setContainer', [$container]);
35
+            ->invokeMethod('setContainer', [$container]);
36 36
 
37 37
 return $container;
Please login to merge, or discard this patch.