Completed
Push — dev-master ( 1749ad...289114 )
by Vijay
128:26 queued 93:32
created
app/lib/FFCMS/CLI/Index.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * run cli.php '/index/running' in two different terminals
31 31
      * @param \Base $f3
32 32
      * @param array $params
33
-     * @return void
33
+     * @return false|null
34 34
      */
35 35
     public function running(\Base $f3, array $params)
36 36
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace FFCMS\CLI;
4 4
 
5
-use FFMVC\Helpers;
6
-
7 5
 /**
8 6
  * Index CLI Class.
9 7
  *
Please login to merge, or discard this patch.
app/lib/FFCMS/Controllers/API/API.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -162,8 +162,6 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * initialize with array of params, 'db' and 'logger' can be injected
164 164
      *
165
-     * @param \Log $logger
166
-     * @param \DB\SQL $db
167 165
      */
168 166
     public function __construct(\Base $f3, array $params)
169 167
     {
@@ -364,7 +362,7 @@  discard block
 block discarded – undo
364 362
      *
365 363
      * @param array $params optional params
366 364
      *
367
-     * @return boolean true/false on valid access credentials
365
+     * @return null|boolean true/false on valid access credentials
368 366
      */
369 367
     protected function validateAccess(array $params = [])
370 368
     {
Please login to merge, or discard this patch.
app/lib/FFCMS/Controllers/API/APIMapper.php 2 patches
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,8 +60,6 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * initialize with array of params, 'db' and 'logger' can be injected
62 62
      *
63
-     * @param \Log $logger
64
-     * @param \DB\SQL $db
65 63
      */
66 64
     public function __construct(\Base $f3, array $params = [])
67 65
     {
@@ -116,8 +114,6 @@  discard block
 block discarded – undo
116 114
     /**
117 115
      * Get the associated mapper for the table
118 116
      *
119
-     * @param \Base $f3
120
-     * @param array $params
121 117
      * @return void
122 118
      */
123 119
     public function &getMapper()
@@ -176,7 +172,7 @@  discard block
 block discarded – undo
176 172
      * Check permissions and load the mapper with the object in the URL param @id
177 173
      * if the user is an admin
178 174
      *
179
-     * @param object $f3
175
+     * @param \Base $f3
180 176
      * @param param $params
181 177
      * @param string $idField the field used for the unique id to load by
182 178
      * @param string $defaultId defaule value to use if not found
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace FFCMS\Models;
4 4
 
5
-use FFMVC\Helpers;
6 5
 use FFCMS\{Traits, Mappers};
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
app/lib/FFCMS/Controllers/API/UsersData.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      *
23 23
      * @param \Base $f3
24 24
      * @param array $params
25
-     * @param array $prohibitedFields
25
+     * @param string[] $prohibitedFields
26 26
      * @return void
27 27
      */
28 28
     private function save(\Base $f3, array $params, array $prohibitedFields = [])
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace FFCMS\Models;
4 4
 
5
-use FFMVC\Helpers;
6 5
 use FFCMS\{Traits, Mappers};
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
app/lib/FFCMS/Controllers/Index.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace FFCMS\Controllers;
4 4
 
5
-use FFMVC\Helpers as Helpers;
6
-
7 5
 /**
8 6
  * Index Controller Class.
9 7
  *
Please login to merge, or discard this patch.
app/lib/FFCMS/Mappers/Mapper.php 2 patches
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -50,8 +50,6 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * initialize with array of params, 'db' and 'logger' can be injected
52 52
      *
53
-     * @param \Log $logger
54
-     * @param \DB\SQL $db
55 53
      */
56 54
     public function __construct(array $params = [])
57 55
     {
@@ -195,7 +193,6 @@  discard block
 block discarded – undo
195 193
     /**
196 194
      * Convert the mapper object to format suitable for JSON
197 195
      *
198
-     * @param boolean $public cast as public (visible) data or raw db data?
199 196
      * @param mixed optional string|array fields to include
200 197
      * @return string json-encoded data
201 198
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace FFCMS\Mappers;
4 4
 
5
-use FFMVC\Helpers;
6 5
 use FFCMS\Traits;
6
+use FFMVC\Helpers;
7 7
 
8 8
 /**
9 9
  * Base Database Mapper Class extends f3's DB\SQL\Mapper
Please login to merge, or discard this patch.
app/lib/FFCMS/Models/OAuth2.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      * Get users list of apps
83 83
      *
84 84
      * @param string $uuid the user uuid
85
-     * @return array $data new user data
85
+     * @return \DB\SQL\Mapper[] $data new user data
86 86
      */
87 87
     public function getUserApps($uuid)
88 88
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace FFCMS\Models;
4 4
 
5
-use FFMVC\Helpers;
6 5
 use FFCMS\{Traits, Mappers};
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
app/lib/FFCMS/Models/Users.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * Get the user mapper by email address
89 89
      *
90 90
      * @param string $email email address
91
-     * @return FFCMS\Mappers\User
91
+     * @return string
92 92
      */
93 93
     public function &getUserByEmail(string $email)
94 94
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * Fetch the users data, optionally only by specified keys
103 103
      *
104 104
      * @param string $uuid
105
-     * @param array $keys
105
+     * @param string[] $keys
106 106
      * @return array $data
107 107
      */
108 108
     public function getUserDetails(string $uuid, array $keys = []): array
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      * $data['value'] is automatically encoded or serialized if array/object
267 267
      *
268 268
      * @param array $data existing data to update
269
-     * @return array $data newly saved data
269
+     * @return Users $data newly saved data
270 270
      */
271 271
     public function saveKey(array $data = [])
272 272
     {
Please login to merge, or discard this patch.
app/lib/FFCMS/Setup.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -16,6 +16,7 @@
 block discarded – undo
16 16
      * setup database
17 17
      *
18 18
      * @param \Dice\Dice dependency injector
19
+     * @param \Dice\Dice $dice
19 20
      * @return void
20 21
      */
21 22
     public static function database(&$dice)
Please login to merge, or discard this patch.