Completed
Branch develop (312db4)
by Matthew
02:36
created
src/Controller/Alerts/ResultsEndpointController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * List recent alerts in the last 48 hours
27 27
      *
28
-     * @return \League\Route\Http\JsonResponse
28
+     * @return Response\Ok
29 29
      */
30 30
     public function listRecent()
31 31
     {
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
@@ -15,27 +15,27 @@
 block discarded – undo
15 15
 
16 16
 // Inflectors
17 17
 $container->inflector('Ps2alerts\Api\Contract\ConfigAwareInterface')
18
-          ->invokeMethod('setConfig', ['config']);
18
+            ->invokeMethod('setConfig', ['config']);
19 19
 $container->inflector('Ps2alerts\Api\Contract\DatabaseAwareInterface')
20
-          ->invokeMethod('setDatabaseDriver', ['Aura\Sql']);
20
+            ->invokeMethod('setDatabaseDriver', ['Aura\Sql']);
21 21
 $container->inflector('Ps2alerts\Api\Contract\TemplateAwareInterface')
22
-          ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
22
+            ->invokeMethod('setTemplateDriver', ['Twig_Environment']);
23 23
 $container->inflector('Ps2alerts\Api\Contract\RedisAwareInterface')
24
-          ->invokeMethod('setRedisDriver', ['redis']);
24
+            ->invokeMethod('setRedisDriver', ['redis']);
25 25
 
26 26
 // Repositories
27 27
 $container->add('Ps2alerts\Api\Repository\ResultRepository');
28 28
 
29 29
 // Loaders
30 30
 $container->add('Ps2alerts\Api\Loader\ResultLoader')
31
-          ->withArgument('Ps2alerts\Api\Repository\ResultRepository');
31
+            ->withArgument('Ps2alerts\Api\Repository\ResultRepository');
32 32
 
33 33
 // Endpoint Injectors
34 34
 $container->add('Ps2alerts\Api\Controller\Alerts\ResultsEndpointController')
35
-          ->withArgument('Ps2alerts\Api\Loader\ResultLoader');
35
+            ->withArgument('Ps2alerts\Api\Loader\ResultLoader');
36 36
 
37 37
 // Container Inflector
38 38
 $container->inflector('League\Container\ContainerAwareInterface')
39
-          ->invokeMethod('setContainer', [$container]);
39
+            ->invokeMethod('setContainer', [$container]);
40 40
 
41 41
 return $container;
Please login to merge, or discard this patch.
src/Repository/AbstractEndpointRepository.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Builds a new query factory ready for use with the QueryObjects
45 45
      *
46
-     * @return \Aura\SqlQuery\QueryFactory
46
+     * @return \Aura\SqlQuery\AbstractQuery
47 47
      */
48 48
     public function newQuery()
49 49
     {
@@ -59,7 +59,6 @@  discard block
 block discarded – undo
59 59
      * Sets up the resulting query based off properties present in the supplied object.
60 60
      *
61 61
      * @see \Ps2alerts\Api\QueryObjects\QueryObject
62
-     * @param  array $wheres The array of where statements to look for.
63 62
      * @return array
64 63
      */
65 64
     public function read(QueryObject $queryObject)
@@ -93,7 +92,7 @@  discard block
 block discarded – undo
93 92
      * Sets up the PDO Object, then executes the query based on dimension.
94 93
      *
95 94
      * @param  string                      $statement   SQL statement that was prepared by read()
96
-     * @param  \Aura\SqlQuery\QueryFactory $queryObject Sent QueryObject to read dimension
95
+     * @param  QueryObject $queryObject Sent QueryObject to read dimension
97 96
      *
98 97
      * @return array The final data
99 98
      */
Please login to merge, or discard this patch.