Completed
Push — master ( 5e6003...ff6361 )
by Matthew
03:07
created
src/container.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $container = new League\Container\Container;
4 4
 
5 5
 // Register the request object singleton to be used later in the request cyncle
6
-$container->singleton('Symfony\Component\HttpFoundation\Request', function () {
6
+$container->singleton('Symfony\Component\HttpFoundation\Request', function() {
7 7
     return Symfony\Component\HttpFoundation\Request::createFromGlobals();
8 8
 });
9 9
 
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,22 +18,22 @@
 block discarded – undo
18 18
 
19 19
 // Inflectors
20 20
 $container->inflector('Ps2alerts\Api\Contract\ConfigAwareInterface')
21
-          ->invokeMethod('setConfig', ['config']);
21
+            ->invokeMethod('setConfig', ['config']);
22 22
 $container->inflector('Ps2alerts\Api\Contract\DatabaseAwareInterface')
23
-          ->invokeMethod('setDatabaseDriver', ['Database'])
24
-          ->invokeMethod('setDatabaseDataDriver', ['Database\Data']);
23
+            ->invokeMethod('setDatabaseDriver', ['Database'])
24
+            ->invokeMethod('setDatabaseDataDriver', ['Database\Data']);
25 25
 $container->inflector('Ps2alerts\Api\Contract\LogAwareInterface')
26
-          ->invokeMethod('setLogDriver', ['Monolog\Logger']);
26
+            ->invokeMethod('setLogDriver', ['Monolog\Logger']);
27 27
 $container->inflector('Ps2alerts\Api\Contract\TemplateAwareInterface')
28
-          ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
28
+            ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
29 29
 $container->inflector('Ps2alerts\Api\Contract\RedisAwareInterface')
30
-          ->invokeMethod('setRedisDriver', ['redis']);
30
+            ->invokeMethod('setRedisDriver', ['redis']);
31 31
 $container->inflector('Ps2alerts\Api\Contract\UuidAwareInterface')
32
-          ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
32
+            ->invokeMethod('setUuidDriver', ['Ramsey\Uuid\Uuid']);
33 33
 
34 34
 
35 35
 // Container Inflector
36 36
 $container->inflector('League\Container\ContainerAwareInterface')
37
-          ->invokeMethod('setContainer', [$container]);
37
+            ->invokeMethod('setContainer', [$container]);
38 38
 
39 39
 return $container;
Please login to merge, or discard this patch.
src/ServiceProvider/ConfigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register()
20 20
     {
21
-        $this->getContainer()->singleton('config', function () {
21
+        $this->getContainer()->singleton('config', function() {
22 22
             return include __DIR__ . '/../../config/config.php';
23 23
         });
24 24
     }
Please login to merge, or discard this patch.
src/ServiceProvider/RedisServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-        $this->getContainer()->singleton('redis', function () {
26
+        $this->getContainer()->singleton('redis', function() {
27 27
             $redisConfig = $this->getContainer()->get('config')['redis'];
28 28
 
29 29
             $client = new Client([
Please login to merge, or discard this patch.
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.
src/Controller/Endpoint/Alerts/AlertCountsEndpointController.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * Construct
22 22
      *
23
-     * @param Ps2alerts\Api\Repository\AlertRepository   $repository
24
-     * @param Ps2alerts\Api\Transformer\AlertTransformer $transformer
25
-     * @param League\Fractal\Manager                     $fractal
23
+     * @param AlertRepository   $repository
24
+     * @param AlertTransformer $transformer
25
+     * @param Manager                     $fractal
26 26
      */
27 27
     public function __construct(
28 28
         AlertRepository  $repository,
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * Returns the victories of each faction and the totals
39 39
      *
40
-     * @param  Symfony\Component\HttpFoundation\Request  $request
41
-     * @param  Symfony\Component\HttpFoundation\Response $response
40
+     * @param  Request  $request
41
+     * @param  Response $response
42 42
      *
43
-     * @return array
43
+     * @return Response
44 44
      */
45 45
     public function getVictories(Request $request, Response $response)
46 46
     {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @param  \Symfony\Component\HttpFoundation\Request  $request
54 54
      * @param  \Symfony\Component\HttpFoundation\Response $response
55 55
      *
56
-     * @return array
56
+     * @return Response
57 57
      */
58 58
     public function getDominations(Request $request, Response $response)
59 59
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
         $servers      = $this->getConfigItem('servers');
77 77
         $zones        = $this->getConfigItem('zones');
78 78
 
79
-        if (! empty($serversQuery)) {
79
+        if (!empty($serversQuery)) {
80 80
             $check = explode(',', $serversQuery);
81 81
 
82 82
             // Run a check on the IDs provided to make sure they're valid and no naughty things are being passed
83 83
             foreach ($check as $id) {
84
-                if (! in_array($id, $servers)) {
84
+                if (!in_array($id, $servers)) {
85 85
                     return $this->errorWrongArgs($response, 'Invalid Server Arguments passed');
86 86
                 }
87 87
             }
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
             $servers = implode(',', $servers);
92 92
         }
93 93
 
94
-        if (! empty($zonesQuery)) {
94
+        if (!empty($zonesQuery)) {
95 95
             $check = explode(',', $zonesQuery);
96 96
 
97 97
             // Run a check on the IDs provided to make sure they're valid and no naughty things are being passed
98 98
             foreach ($check as $id) {
99
-                if (! in_array($id, $zones)) {
99
+                if (!in_array($id, $zones)) {
100 100
                     return $this->errorWrongArgs($response, 'Invalid Zone Arguments passed');
101 101
                 }
102 102
             }
Please login to merge, or discard this patch.
src/ServiceProvider/TemplateServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         ];
33 33
 
34 34
         // Register the singleton with the container
35
-        $this->getContainer()->singleton('Twig_Environment', function () use ($globals, $config) {
35
+        $this->getContainer()->singleton('Twig_Environment', function() use ($globals, $config) {
36 36
 
37 37
             $cache = false;
38 38
             $debug = true;
Please login to merge, or discard this patch.
src/ServiceProvider/DatabaseServiceProvider.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()->singleton('Database', function () {
22
+        $this->getContainer()->singleton('Database', function() {
23 23
             $config = $this->getContainer()->get('config')['database'];
24 24
 
25 25
             $pdo = new ExtendedPdo(
Please login to merge, or discard this patch.
src/ServiceProvider/DatabaseDataServiceProvider.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()->singleton('Database\Data', function () {
22
+        $this->getContainer()->singleton('Database\Data', function() {
23 23
             $config = $this->getContainer()->get('config')['database_data'];
24 24
 
25 25
             $pdo = new ExtendedPdo(
Please login to merge, or discard this patch.