Completed
Push — master ( 45aada...26ef87 )
by Matthew
02:32
created
src/container.php 1 patch
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.
src/ServiceProvider/TemplateServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 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;
39 39
 
40 40
             if ($config['environment'] === "production" || $config['environment'] === "staging") {
41
-                $cache = __DIR__ .'/../../cache';
41
+                $cache = __DIR__ . '/../../cache';
42 42
                 $debug = false;
43 43
             }
44 44
 
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('Aura\Sql', function () {
22
+        $this->getContainer()->singleton('Aura\Sql', 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/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/Controller/EndpointBaseController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * Returns a single entry
15 15
      *
16
-     * @param  Symfony\Component\HttpFoundation\Request $request
16
+     * @param  Request $request
17 17
      * @param  array   $args
18 18
      *
19 19
      * @return \League\Route\Http\JsonResponse
Please login to merge, or discard this patch.
src/Controller/Statistics/OutfitTotalsMetricsEndpoint.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     /**
13 13
      * Construct
14 14
      *
15
-     * @param \Ps2alerts\Api\Loader\Metrics\OutfitTotalsMetricsLoader $loader
15
+     * @param OutfitTotalsMetricsLoader $loader
16 16
      */
17 17
     public function __construct(OutfitTotalsMetricsLoader $loader)
18 18
     {
Please login to merge, or discard this patch.
src/Loader/AbstractLoader.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,6 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Gets the Cache namespace key for Redis
74 74
      *
75
-     * @param string $string
76 75
      */
77 76
     public function getCacheNamespace()
78 77
     {
@@ -145,7 +144,7 @@  discard block
 block discarded – undo
145 144
      * Sets JSON encoded value within Redis with an expiry in seconds
146 145
      *
147 146
      * @param string  $key
148
-     * @param mixed   $value   Data to encode into JSON and store
147
+     * @param string   $value   Data to encode into JSON and store
149 148
      * @param integer $expires Cache expiry time in seconds
150 149
      */
151 150
     public function setExpireKey($key, $value, $expires)
Please login to merge, or discard this patch.
src/Loader/Statistics/AbstractStatisticsLoader.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
 {
10 10
     protected $flags;
11 11
 
12
+    /**
13
+     * @param string $flag
14
+     */
12 15
     public function setFlags($flag)
13 16
     {
14 17
         $this->flags = $flag;
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,22 +26,22 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function appendRedisKey($post, $redisKey)
28 28
     {
29
-        if (! empty($post['wheres'])) {
29
+        if (!empty($post['wheres'])) {
30 30
             $whereMD5 = md5($post['wheres']);
31 31
             $redisKey .= "/{$whereMD5}";
32 32
         }
33
-        if (! empty($post['orderBy'])) {
33
+        if (!empty($post['orderBy'])) {
34 34
             $orderMD5 = md5($post['orderBy']);
35 35
             $redisKey .= "/{$orderMD5}";
36 36
         }
37
-        if (! empty($post['limit'])) {
37
+        if (!empty($post['limit'])) {
38 38
             // Enforce a max limit
39 39
             if ($post['limit'] > 50) {
40 40
                 $post['limit'] = 50;
41 41
             }
42 42
         }
43 43
 
44
-        if (empty($post['limit']) || ! isset($post['limit'])) {
44
+        if (empty($post['limit']) || !isset($post['limit'])) {
45 45
             $post['limit'] = 10;
46 46
         }
47 47
 
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function processPostVars($post)
54 54
     {
55
-        if (! empty($post['wheres'])) {
55
+        if (!empty($post['wheres'])) {
56 56
             $return['wheres'] = json_decode($post['wheres'], true);
57 57
         }
58 58
 
59
-        if (! empty($post['orderBy'])) {
59
+        if (!empty($post['orderBy'])) {
60 60
             $return['orderBy'] = json_decode($post['orderBy'], true);
61 61
         }
62 62
 
63
-        if (empty($post['limit']) || ! isset($post['limit'])) {
63
+        if (empty($post['limit']) || !isset($post['limit'])) {
64 64
             $post['limit'] = 10;
65 65
         }
66 66
 
@@ -97,14 +97,14 @@  discard block
 block discarded – undo
97 97
             ]);
98 98
         }
99 99
 
100
-        if (! empty($post['orderBy'])) {
100
+        if (!empty($post['orderBy'])) {
101 101
             $queryObject->setOrderBy(array_keys($post['orderBy'])[0]);
102 102
             $queryObject->setOrderByDirection(array_values($post['orderBy'])[0]);
103 103
         }
104 104
 
105 105
         $queryObject->setLimit($post['limit']);
106 106
 
107
-        if (! empty($this->getFlags())) {
107
+        if (!empty($this->getFlags())) {
108 108
             // If there are some funky things we have to do, set them.
109 109
             $queryObject->setFlags($this->getFlags());
110 110
         }
Please login to merge, or discard this patch.