Passed
Pull Request — 4.2 (#140)
by David
05:21
created
src/Mouf/Database/TDBM/Controllers/TdbmInstallController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -181,6 +181,9 @@
 block discarded – undo
181 181
 
182 182
     protected $errorMsg;
183 183
 
184
+    /**
185
+     * @param string $msg
186
+     */
184 187
     private function displayErrorMsg($msg)
185 188
     {
186 189
         $this->errorMsg = $msg;
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/AlterableResultIterator.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * Adds an additional object to the result set (if not already available).
70 70
      *
71
-     * @param $object
71
+     * @param AbstractTDBMObject $object
72 72
      */
73 73
     public function add($object)
74 74
     {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * Removes an object from the result set.
87 87
      *
88
-     * @param $object
88
+     * @param AbstractTDBMObject $object
89 89
      */
90 90
     public function remove($object)
91 91
     {
@@ -205,6 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
     /**
207 207
      * @param int $offset
208
+     * @param integer $limit
208 209
      *
209 210
      * @return \Porpaginas\Page
210 211
      */
@@ -227,7 +228,7 @@  discard block
 block discarded – undo
227 228
     /**
228 229
      * Return an iterator over all results of the paginatable.
229 230
      *
230
-     * @return Iterator
231
+     * @return \Iterator
231 232
      */
232 233
     public function getIterator()
233 234
     {
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/TDBMService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1301,7 +1301,7 @@  discard block
 block discarded – undo
1301 1301
      * @param string                       $mainTable             The name of the table queried
1302 1302
      * @param string|array|null            $filter                The SQL filters to apply to the query (the WHERE part). Columns from tables different from $mainTable must be prefixed by the table name (in the form: table.column)
1303 1303
      * @param array                        $parameters
1304
-     * @param string|UncheckedOrderBy|null $orderString           The ORDER BY part of the query. Columns from tables different from $mainTable must be prefixed by the table name (in the form: table.column)
1304
+     * @param string|null $orderString           The ORDER BY part of the query. Columns from tables different from $mainTable must be prefixed by the table name (in the form: table.column)
1305 1305
      * @param array                        $additionalTablesFetch
1306 1306
      * @param int                          $mode
1307 1307
      * @param string                       $className             Optional: The name of the class to instantiate. This class must extend the TDBMObject class. If none is specified, a TDBMObject instance will be returned
@@ -1769,7 +1769,7 @@  discard block
 block discarded – undo
1769 1769
      * @param $pivotTableName
1770 1770
      * @param AbstractTDBMObject $bean
1771 1771
      *
1772
-     * @return AbstractTDBMObject[]
1772
+     * @return ResultIterator
1773 1773
      */
1774 1774
     public function _getRelatedBeans(string $pivotTableName, AbstractTDBMObject $bean)
1775 1775
     {
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/ResultIterator.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,10 @@  discard block
 block discarded – undo
62 62
 
63 63
     private $logger;
64 64
 
65
+    /**
66
+     * @param null|string $className
67
+     * @param integer $mode
68
+     */
65 69
     public function __construct(QueryFactory $queryFactory, array $parameters, $objectStorage, $className, TDBMService $tdbmService, MagicQuery $magicQuery, $mode, LoggerInterface $logger)
66 70
     {
67 71
         if ($mode !== null && $mode !== TDBMService::MODE_CURSOR && $mode !== TDBMService::MODE_ARRAY) {
@@ -300,7 +304,6 @@  discard block
 block discarded – undo
300 304
      *
301 305
      *  $resultSet = $resultSet->withParameters('label ASC, status DESC');
302 306
      *
303
-     * @param string|UncheckedOrderBy|null $orderBy
304 307
      *
305 308
      * @return ResultIterator
306 309
      */
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/Controllers/TdbmController.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @Action
77 77
      *
78 78
      * @param string $name
79
-     * @param bool   $selfedit
79
+     * @param string|boolean   $selfedit
80 80
      */
81 81
     public function generate($name, $daonamespace, $beannamespace, $daofactoryinstancename, /*$storeInUtc = 0,*/ $selfedit = 'false', $useCustomComposer = false, $composerFile = '')
82 82
     {
@@ -95,9 +95,10 @@  discard block
 block discarded – undo
95 95
      * @param string      $name
96 96
      * @param string      $daonamespace
97 97
      * @param string      $beannamespace
98
-     * @param string      $daofactoryclassname
99 98
      * @param string      $daofactoryinstancename
100 99
      * @param string      $selfedit
100
+     * @param boolean $useCustomComposer
101
+     * @param string $composerFile
101 102
      *
102 103
      * @throws \Mouf\MoufException
103 104
      */
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/Utils/TDBMDaoGenerator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -616,7 +616,7 @@
 block discarded – undo
616 616
      * Tries to put string to the singular form (if it is plural).
617 617
      * We assume the table names are in english.
618 618
      *
619
-     * @param $str string
619
+     * @param string $str string
620 620
      *
621 621
      * @return string
622 622
      */
Please login to merge, or discard this patch.