Completed
Push — master ( 45aada...26ef87 )
by Matthew
02:32
created
src/Loader/Statistics/OutfitTotalsMetricsLoader.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     /**
17 17
      * Construct
18 18
      *
19
-     * @param \Ps2alerts\Api\Repository\Metrics\OutfitTotalsRepository $repository
19
+     * @param OutfitTotalsRepository $repository
20 20
      */
21 21
     public function __construct(OutfitTotalsRepository $repository)
22 22
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use League\Route\Http\JsonResponse as Response;
6 6
 use Ps2alerts\Api\Controller\EndpointBaseController;
7
-use Ps2alerts\Api\QueryObjects\QueryObject;
8 7
 use Ps2alerts\Api\Loader\ResultLoader;
9 8
 use Symfony\Component\HttpFoundation\Request;
10 9
 
Please login to merge, or discard this patch.
src/Repository/AbstractEndpointRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $query->cols(['*']);
68 68
 
69 69
         // Workarounds :-/
70
-        if (! empty($queryObject->getFlags())) {
70
+        if (!empty($queryObject->getFlags())) {
71 71
             if ($queryObject->getFlags() === 'outfitIDs') {
72 72
                 // Prevent the VS, NC and TR "no outfit" workaround
73 73
                 $queryObject->addWhere([
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         }
80 80
 
81 81
         // Setup where statements
82
-        if (! empty($queryObject->getWheres())) {
82
+        if (!empty($queryObject->getWheres())) {
83 83
             foreach ($queryObject->getWheres() as $where) {
84 84
                 if ($where['col'] === 'primary') {
85 85
                     $col = $this->getPrimaryKey();
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         // Set up order statement
98
-        if (! empty($queryObject->getOrderBy())) {
98
+        if (!empty($queryObject->getOrderBy())) {
99 99
             $orderBy = $queryObject->getOrderBy();
100 100
             if ($orderBy === 'primary') {
101 101
                 $orderBy = $this->getPrimaryKey();
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             ]);
109 109
         }
110 110
 
111
-        if (! empty($queryObject->getLimit())) {
111
+        if (!empty($queryObject->getLimit())) {
112 112
             $query->limit($queryObject->getLimit());
113 113
         }
114 114
 
Please login to merge, or discard this patch.
src/Loader/ResultLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             'value' => date('U', strtotime('-48 hours'))
42 42
         ]);
43 43
 
44
-        if (! empty($args['serverID'])) {
44
+        if (!empty($args['serverID'])) {
45 45
             $redisKey .= ":{$args['serverID']}";
46 46
             $queryObject->addWhere([
47 47
                 'col'   => 'ResultServer',
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             ]);
50 50
         }
51 51
 
52
-        if (! empty($args['limit'])) {
52
+        if (!empty($args['limit'])) {
53 53
             if ($args['limit'] > 50) {
54 54
                 $args['limit'] = 50;
55 55
             }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             'value' => 1
82 82
         ]);
83 83
 
84
-        if (! empty($args['serverID'])) {
84
+        if (!empty($args['serverID'])) {
85 85
             $queryObject->addWhere([
86 86
                 'col'   => 'ResultServer',
87 87
                 'value' => $args['serverID']
Please login to merge, or discard this patch.