Completed
Pull Request — master (#99)
by Spuds
02:24
created
importer/OpenImporter/Importer.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,6 +163,9 @@  discard block
 block discarded – undo
163 163
 			$this->_loadImporter(BASEDIR . DS . 'Importers' . DS . $this->config->script);
164 164
 	}
165 165
 
166
+	/**
167
+	 * @param string $file
168
+	 */
166 169
 	protected function _loadImporter($file)
167 170
 	{
168 171
 		$this->_preparse_xml($file);
@@ -525,7 +528,7 @@  discard block
 block discarded – undo
525 528
 	 * destination system.
526 529
 	 *
527 530
 	 * @param int $do_steps
528
-	 * @return boolean
531
+	 * @return boolean|null
529 532
 	 */
530 533
 	public function doStep1($do_steps)
531 534
 	{
@@ -589,7 +592,7 @@  discard block
 block discarded – undo
589 592
 	 *
590 593
 	 * @global Database $db
591 594
 	 * @global type $boardurl
592
-	 * @return boolean
595
+	 * @return boolean|null
593 596
 	 */
594 597
 	public function doStep3()
595 598
 	{
Please login to merge, or discard this patch.
importer/OpenImporter/ImportManager.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 	 *
374 374
 	 * @param string $script
375 375
 	 *
376
-	 * @return bool|mixed
376
+	 * @return string|false
377 377
 	 */
378 378
 	protected function validateScript($script)
379 379
 	{
@@ -520,6 +520,9 @@  discard block
 block discarded – undo
520 520
 		return null;
521 521
 	}
522 522
 
523
+	/**
524
+	 * @param Form $form
525
+	 */
523 526
 	protected function _prepareStep0Form($form)
524 527
 	{
525 528
 		$form->action_url = $_SERVER['PHP_SELF'] . '?step=1';
@@ -579,7 +582,7 @@  discard block
 block discarded – undo
579 582
 	/**
580 583
 	 * Show the progress being made in step 1, the main import process
581 584
 	 *
582
-	 * @return array
585
+	 * @return integer
583 586
 	 */
584 587
 	protected function step1Progress()
585 588
 	{
Please login to merge, or discard this patch.
importer/OpenImporter/SplClassLoader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     /**
69 69
      * Gets the namespace seperator used by classes in the namespace of this class loader.
70 70
      *
71
-     * @return void
71
+     * @return string
72 72
      */
73 73
     public function getNamespaceSeparator()
74 74
     {
Please login to merge, or discard this patch.
importer/OpenImporter/Template.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 *
49 49
 	 * @param string $error_message
50 50
 	 * @param int|bool $trace
51
-	 * @param int|bool $line
51
+	 * @param integer $line
52 52
 	 * @param string|bool $file
53 53
 	 */
54 54
 	public function error($error_message, $trace = false, $line = false, $file = false)
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
 
698 698
 	/**
699 699
 	 * Function to generate a form from a set of form options
700
-	 * @param $form
700
+	 * @param Form $form
701 701
 	 */
702 702
 	public function renderForm($form)
703 703
 	{
Please login to merge, or discard this patch.
importer/OpenImporter/XmlProcessor.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -212,6 +212,9 @@  discard block
 block discarded – undo
212 212
 		}
213 213
 	}
214 214
 
215
+	/**
216
+	 * @param string $current_data
217
+	 */
215 218
 	protected function fixCurrentData($current_data)
216 219
 	{
217 220
 		if (strpos($current_data, '{$') !== false)
@@ -222,6 +225,9 @@  discard block
 block discarded – undo
222 225
 		return $current_data;
223 226
 	}
224 227
 
228
+	/**
229
+	 * @param string $special_table
230
+	 */
225 231
 	protected function insertRows($rows, $keys, $special_table)
226 232
 	{
227 233
 		if (empty($rows))
@@ -252,6 +258,10 @@  discard block
 block discarded – undo
252 258
 				(', $insert_rows) . ")");
253 259
 	}
254 260
 
261
+	/**
262
+	 * @param null|string $special_code
263
+	 * @param string $special_table
264
+	 */
255 265
 	protected function prepareRow($row, $special_code, $special_table)
256 266
 	{
257 267
 		// Take case of preparsecode
@@ -394,6 +404,9 @@  discard block
 block discarded – undo
394 404
 		$_SESSION['import_steps'][$substep]['presql'] = true;
395 405
 	}
396 406
 
407
+	/**
408
+	 * @param integer $substep
409
+	 */
397 410
 	protected function doDetect($substep)
398 411
 	{
399 412
 		global $oi_import;
@@ -431,6 +444,9 @@  discard block
 block discarded – undo
431 444
 		return false;
432 445
 	}
433 446
 
447
+	/**
448
+	 * @param string $table
449
+	 */
434 450
 	protected function detect($table)
435 451
 	{
436 452
 		$table = $this->fix_params($table);
Please login to merge, or discard this patch.