Completed
Push — master ( cad9a1...6c0d65 )
by Yannick
37:35
created
require/class.Connection.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
 	public $dbs = array();
15 15
 	public $latest_schema = 55;
16 16
 
17
+	/**
18
+	 * @param string $dbname
19
+	 */
17 20
 	public function __construct($dbc = null,$dbname = null,$user = null,$pass = null) {
18 21
 		global $globalNoDB;
19 22
 		if (!isset($globalNoDB) || $globalNoDB === FALSE) {
@@ -146,6 +149,9 @@  discard block
 block discarded – undo
146 149
 		return true;
147 150
 	}
148 151
 
152
+	/**
153
+	 * @param string $table
154
+	 */
149 155
 	public function tableExists($table)
150 156
 	{
151 157
 		global $globalDBdriver;
@@ -196,6 +202,11 @@  discard block
 block discarded – undo
196 202
 	/*
197 203
 	* Check if index exist
198 204
 	*/
205
+
206
+	/**
207
+	 * @param string $table
208
+	 * @param string $index
209
+	 */
199 210
 	public function indexExists($table,$index)
200 211
 	{
201 212
 		global $globalDBdriver;
@@ -238,6 +249,10 @@  discard block
 block discarded – undo
238 249
 		return $columns;
239 250
 	}
240 251
 
252
+	/**
253
+	 * @param string $table
254
+	 * @param string $column
255
+	 */
241 256
 	public function getColumnType($table,$column) {
242 257
 		$select = $this->db->query('SELECT '.$column.' FROM '.$table);
243 258
 		$tomet = $select->getColumnMeta(0);
@@ -248,6 +263,11 @@  discard block
 block discarded – undo
248 263
 	* Check if a column name exist in a table
249 264
 	* @return Boolean column exist or not
250 265
 	*/
266
+
267
+	/**
268
+	 * @param string $table
269
+	 * @param string $name
270
+	 */
251 271
 	public function checkColumnName($table,$name)
252 272
 	{
253 273
 		global $globalDBdriver, $globalDBname;
Please login to merge, or discard this patch.
require/class.Source.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -187,6 +187,9 @@
 block discarded – undo
187 187
 		return '';
188 188
 	}
189 189
 
190
+	/**
191
+	 * @param string $type
192
+	 */
190 193
 	public function deleteLocationByType($type) {
191 194
 		$query = "DELETE FROM source_location WHERE type = :type";
192 195
 		$query_values = array(':type' => $type);
Please login to merge, or discard this patch.
require/class.Translation.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 
75 75
     /**
76 76
      * @param $ident
77
-     * @param $correct_ident
78
-     * @param $source
77
+     * @param string $correct_ident
78
+     * @param string $source
79 79
      * @return string
80 80
      */
81 81
     public function addOperator($ident, $correct_ident, $source) {
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
 
92 92
     /**
93 93
      * @param $ident
94
-     * @param $correct_ident
95
-     * @param $source
94
+     * @param string $correct_ident
95
+     * @param string $source
96 96
      * @return string
97 97
      */
98 98
     public function updateOperator($ident, $correct_ident, $source) {
Please login to merge, or discard this patch.