Passed
Pull Request — 3.4 (#159)
by David
06:38 queued 01:18
created
src/Mouf/Database/TDBM/Controllers/TdbmInstallController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -170,6 +170,9 @@
 block discarded – undo
170 170
 	
171 171
 	protected $errorMsg;
172 172
 	
173
+	/**
174
+	 * @param string $msg
175
+	 */
173 176
 	private function displayErrorMsg($msg) {
174 177
 		$this->errorMsg = $msg;
175 178
 		$this->content->addFile(dirname(__FILE__)."/../../../../views/installError.php", $this);
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/TDBMObject.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,6 +238,9 @@  discard block
 block discarded – undo
238 238
 		}
239 239
 	}
240 240
 
241
+	/**
242
+	 * @param string $var
243
+	 */
241 244
 	public function __get($var) {
242 245
 		$this->_dbLoadIfNotLoaded();
243 246
 
@@ -290,6 +293,10 @@  discard block
 block discarded – undo
290 293
 		return isset($this->db_row[$var]);
291 294
 	}
292 295
 	
296
+	/**
297
+	 * @param string $var
298
+	 * @param string|null $value
299
+	 */
293 300
 	public function __set($var, $value) {
294 301
 		$this->_dbLoadIfNotLoaded();
295 302
 
@@ -642,7 +649,7 @@  discard block
 block discarded – undo
642 649
 	/**
643 650
 	 * Returns the tables used in the filter in an array.
644 651
 	 *
645
-	 * @return array<string>
652
+	 * @return string[]
646 653
 	 */
647 654
 	public function getUsedTables() {
648 655
 		return array($this->db_table_name);
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/TDBMObjectArrayCursorIterator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 	}
167 167
 	/**
168 168
 	 * Returns the current result's _id
169
-	 * @return string The current result's _id as a string.
169
+	 * @return integer The current result's _id as a string.
170 170
 	 */
171 171
 	public function key()
172 172
 	{
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/TDBMService.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -711,10 +711,10 @@  discard block
 block discarded – undo
711 711
 	
712 712
 	/**
713 713
 	 * Returns a generator for the database.
714
-	 * @param unknown $result
714
+	 * @param \PDOStatement $result
715 715
 	 * @param unknown $table_name
716
-	 * @param unknown $className
717
-	 * @param unknown $sql
716
+	 * @param string $className
717
+	 * @param string $sql
718 718
 	 */
719 719
 	private function getObjectsFromSQLGenerator($result, $table_name, $className, $sql) {
720 720
 		$keysStandardCased = array();
@@ -1100,7 +1100,7 @@  discard block
 block discarded – undo
1100 1100
 	 * @param unknown_type $target_tables
1101 1101
 	 * @param unknown_type $path
1102 1102
 	 * @param unknown_type $queue
1103
-	 * @return unknown
1103
+	 * @return boolean
1104 1104
 	 */
1105 1105
 	private function find_paths_iter(&$target_tables, &$path, &$queue) {
1106 1106
 		// Get table to look at:
@@ -1569,7 +1569,7 @@  discard block
 block discarded – undo
1569 1569
 	 * Takes in input a filter_bag (which can be about anything from a string to an array of TDBMObjects... see above from documentation),
1570 1570
 	 * and gives back a proper Filter object.
1571 1571
 	 *
1572
-	 * @param unknown_type $filter_bag
1572
+	 * @param unknown_type|null $filter_bag
1573 1573
 	 * @return FilterInterface
1574 1574
 	 */
1575 1575
 	public function buildFilterFromFilterBag($filter_bag) {
@@ -1634,7 +1634,7 @@  discard block
 block discarded – undo
1634 1634
 	 * Takes in input an order_bag (which can be about anything from a string to an array of OrderByColumn objects... see above from documentation),
1635 1635
 	 * and gives back an array of OrderByColumn / OrderBySQLString objects.
1636 1636
 	 *
1637
-	 * @param unknown_type $orderby_bag
1637
+	 * @param unknown_type|null $orderby_bag
1638 1638
 	 * @return array
1639 1639
 	 */
1640 1640
 	public function buildOrderArrayFromOrderBag($orderby_bag) {
@@ -1851,7 +1851,7 @@  discard block
 block discarded – undo
1851 1851
 	 * @param bool $support If the generated daos should keep support for old functions (eg : getUserList and getList)
1852 1852
 	 * @param bool $storeInUtc If the generated daos should store the date in UTC timezone instead of user's timezone.
1853 1853
 	 * @param bool $castDatesToDateTime
1854
-	 * @return \string[] the list of tables
1854
+	 * @return string[] the list of tables
1855 1855
 	 */
1856 1856
 	public function generateAllDaosAndBeans($daoFactoryClassName, $daonamespace, $beannamespace, $support, $storeInUtc, $castDatesToDateTime) {
1857 1857
 		$tdbmDaoGenerator = new TDBMDaoGenerator($this->dbConnection);
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/Utils/TDBMDaoGenerator.php 1 patch
Doc Comments   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @throws TDBMException
61 61
      *
62
-     * @return \string[] the list of tables
62
+     * @return string[] the list of tables
63 63
      */
64 64
     public function generateAllDaosAndBeans($daoFactoryClassName, $daonamespace, $beannamespace, $support, $storeInUtc, $castDatesToDateTime)
65 65
     {
@@ -87,7 +87,12 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * Generates in one method call the daos and the beans for one table.
89 89
      *
90
-     * @param $tableName
90
+     * @param string $tableName
91
+     * @param string $daonamespace
92
+     * @param string $beannamespace
93
+     * @param boolean $support
94
+     * @param boolean $storeInUtc
95
+     * @param boolean $castDatesToDateTime
91 96
      */
92 97
     public function generateDaoAndBean($tableName, $daonamespace, $beannamespace, ClassNameMapper $classNameMapper, $support, $storeInUtc, $castDatesToDateTime)
93 98
     {
@@ -415,9 +420,10 @@  discard block
 block discarded – undo
415 420
     /**
416 421
      * Writes the PHP bean DAO with simple functions to create/get/save objects.
417 422
      *
418
-     * @param string $fileName  The file that will be written (without the directory)
419 423
      * @param string $className The name of the class
420 424
      * @param string $tableName The name of the table
425
+     * @param string $baseClassName
426
+     * @param string $beanClassName
421 427
      */
422 428
     public function generateDao($className, $baseClassName, $beanClassName, $tableName, ClassNameMapper $classNameMapper, $support)
423 429
     {
@@ -706,7 +712,9 @@  discard block
 block discarded – undo
706 712
     /**
707 713
      * Generates the factory bean.
708 714
      *
709
-     * @param $tableList
715
+     * @param string[] $tableList
716
+     * @param string $daoFactoryClassName
717
+     * @param string $daoNamespace
710 718
      */
711 719
     private function generateFactory($tableList, $daoFactoryClassName, $daoNamespace, ClassNameMapper $classNameMapper)
712 720
     {
@@ -778,7 +786,6 @@  discard block
 block discarded – undo
778 786
      * Transforms the property name in a setter name.
779 787
      * For instance, phone => getPhone or name => getName.
780 788
      *
781
-     * @param string $methodName
782 789
      *
783 790
      * @return string
784 791
      */
@@ -874,7 +881,7 @@  discard block
 block discarded – undo
874 881
      * Tries to put string to the singular form (if it is plural).
875 882
      * Obviously, this can't be perfect, be we do the best we can.
876 883
      *
877
-     * @param $str string
884
+     * @param string $str string
878 885
      *
879 886
      * @return string
880 887
      */
@@ -898,7 +905,7 @@  discard block
 block discarded – undo
898 905
      * Put the first letter of the string in lower case.
899 906
      * Very useful to transform a class name into a variable name.
900 907
      *
901
-     * @param $str string
908
+     * @param string $str string
902 909
      *
903 910
      * @return string
904 911
      */
Please login to merge, or discard this patch.