Completed
Pull Request — master (#186)
by Vladimir
05:50 queued 02:55
created
src/Service.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@  discard block
 block discarded – undo
66 66
         self::$qbConfig = $config;
67 67
     }
68 68
 
69
+    /**
70
+     * @return null|Connection
71
+     */
69 72
     public static function getQueryBuilderConnection()
70 73
     {
71 74
         if (!self::$qbConnection) {
@@ -119,7 +122,7 @@  discard block
 block discarded – undo
119 122
      * Gets a parameter
120 123
      *
121 124
      * @param  string $name The parameter name
122
-     * @return mixed  The parameter value
125
+     * @return string  The parameter value
123 126
      */
124 127
     public static function getParameter($name)
125 128
     {
@@ -229,7 +232,7 @@  discard block
 block discarded – undo
229 232
     }
230 233
 
231 234
     /**
232
-     * @param $kernel
235
+     * @param AppKernel $kernel
233 236
      */
234 237
     public static function setKernel($kernel)
235 238
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 
9 9
 use BZIon\Cache\ModelCache;
10 10
 use Pixie\Connection;
11
-use Pixie\QueryBuilder\QueryBuilderHandler;
12 11
 use Symfony\Component\DependencyInjection\ContainerInterface;
13 12
 use Symfony\Component\EventDispatcher\EventDispatcher;
14 13
 use Symfony\Component\Form\FormFactory;
Please login to merge, or discard this patch.
src/QueryBuilder/QueryBuilderFlex.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,6 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     /**
83 83
      * {@inheritdoc}
84
+     * @param integer $limit
84 85
      */
85 86
     public function limit($limit)
86 87
     {
@@ -189,7 +190,7 @@  discard block
 block discarded – undo
189 190
      *
190 191
      * @throws \Pixie\Exception
191 192
      *
192
-     * @return array
193
+     * @return Model[]
193 194
      */
194 195
     public function getModels($fastFetch = false)
195 196
     {
Please login to merge, or discard this patch.
controllers/InvitationController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use BZIon\Event\Events;
4
-use BZIon\Event\TeamInviteEvent;
5 4
 use BZIon\Event\TeamJoinEvent;
6 5
 use BZIon\Form\Creator\InvitationFormCreator;
7 6
 use Symfony\Component\HttpFoundation\RedirectResponse;
8
-use Symfony\Component\HttpFoundation\Response;
9 7
 
10 8
 class InvitationController extends CRUDController
11 9
 {
Please login to merge, or discard this patch.
src/Form/Creator/InvitationFormCreator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -87,6 +87,7 @@
 block discarded – undo
87 87
 
88 88
     /**
89 89
      * {@inheritdoc}
90
+     * @param \Symfony\Component\Form\Form $form
90 91
      */
91 92
     public function enter($form)
92 93
     {
Please login to merge, or discard this patch.
src/Model/BaseModel.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      * Query the database to get the eager column values for the Model
238 238
      *
239 239
      * @param $id int The ID of the model to fetch
240
-     * @return array|null The results or null if a model wasn't found
240
+     * @return null|stdClass The results or null if a model wasn't found
241 241
      */
242 242
     protected static function fetchColumnValues($id)
243 243
     {
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      * Counts the elements of the database that match a specific query
259 259
      *
260 260
      * @param  string $additional_query The MySQL query string (e.g. `WHERE id = ?`)
261
-     * @param  array  $params           The parameter values that will be passed to Database::query()
261
+     * @param  integer  $params           The parameter values that will be passed to Database::query()
262 262
      * @param  string $table            The database table that will be searched, defaults to the model's table
263 263
      * @param  string $column           Only count the entries where `$column` is not `NULL` (or all if `$column` is `*`)
264 264
      * @return int
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      * @param string          $column           The name of the column that should be tested
325 325
      * @param array|mixed     $possible_values  List of acceptable values
326 326
      * @param bool            $negate           Whether to search if the value of $column does NOT belong to the $possible_values array
327
-     * @param string|string[] $select           The name of the column(s) that the returned array should contain
327
+     * @param string $select           The name of the column(s) that the returned array should contain
328 328
      * @param string          $additional_query Additional parameters to be passed to the MySQL query (e.g. `WHERE id = 5`)
329 329
      * @param string          $table            The database table which will be used for queries
330 330
      *
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
      * @deprecated 0.10.2 This function has been removed and is no longer required with the new query builder
396 396
      *
397 397
      * @param string|null $prefix  The table name or SQL alias to be prepend to these columns
398
-     * @param array       $columns The columns to format
398
+     * @param string[]       $columns The columns to format
399 399
      *
400 400
      * @return string
401 401
      */
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
      *
456 456
      * @since 0.11.0
457 457
      *
458
-     * @return array
458
+     * @return string[]
459 459
      */
460 460
     public static function getEagerColumnsList()
461 461
     {
Please login to merge, or discard this patch.