Completed
Push — master ( 0a5acd...43aa97 )
by Guilherme Luiz Argentino
05:40
created
correios.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
     /**
178 178
      * 
179
-     * @return type
179
+     * @return string
180 180
      */
181 181
     public function getContent() {
182 182
         $output = '<h2>' . $this->displayName . '</h2>';
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     /**
211 211
      * 
212 212
      * @param type $params
213
-     * @param type $shipping_cost
213
+     * @param integer $shipping_cost
214 214
      * @return boolean
215 215
      */
216 216
     public function getOrderShippingCost($params, $shipping_cost) {
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     /**
239 239
      * 
240 240
      * @param type $params
241
-     * @return type
241
+     * @return boolean
242 242
      */
243 243
     public function getOrderShippingCostExternal($params) {
244 244
         return $this->getOrderShippingCost($params, 0);
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
     /**
378 378
      * 
379
-     * @param type $name
379
+     * @param string $name
380 380
      * @return boolean
381 381
      */
382 382
     private function getCache($name) {
Please login to merge, or discard this patch.
tests/vendors/Configuration.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -3,6 +3,9 @@  discard block
 block discarded – undo
3 3
 class Configuration extends ObjectModel
4 4
 {
5 5
 
6
+    /**
7
+     * @param integer $id_lang
8
+     */
6 9
     public static function get($key, $id_lang = NULL)
7 10
     {
8 11
       if ( $key === "PS_CORREIOS_FACTORY" )
@@ -24,6 +27,9 @@  discard block
 block discarded – undo
24 27
         return "01311000"; # av paulista
25 28
     }
26 29
 
30
+    /**
31
+     * @param string[] $keys
32
+     */
27 33
     public static function getMultiple($keys, $id_lang = NULL)
28 34
     {
29 35
       return array();
Please login to merge, or discard this patch.
tests/vendors/Language.php 1 patch
Doc Comments   +15 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@  discard block
 block discarded – undo
75 75
         'pdf' => '_LANGPDF',
76 76
     );
77 77
 
78
+    /**
79
+     * @param integer $id
80
+     */
78 81
     public  function __construct($id = NULL, $id_lang = NULL)
79 82
     {
80 83
         parent::__construct($id);
@@ -214,7 +217,7 @@  discard block
 block discarded – undo
214 217
      * Concerned files are theses located in translations/$iso_code/
215 218
      * and translations/mails/$iso_code .
216 219
      *
217
-     * @param mixed $iso_code
220
+     * @param string $iso_code
218 221
      * @returntrue if all files exists
219 222
      */
220 223
     public static function checkFilesWithIsoCode($iso_code)
@@ -380,6 +383,9 @@  discard block
 block discarded – undo
380 383
         return $return;
381 384
     }
382 385
 
386
+    /**
387
+     * @param string $dir
388
+     */
383 389
     public static function recurseDeleteDir($dir)
384 390
     {
385 391
         if (!is_dir($dir))
@@ -518,6 +524,11 @@  discard block
 block discarded – undo
518 524
         return $languages;
519 525
     }
520 526
 
527
+    /**
528
+     * @param integer $id_lang
529
+     *
530
+     * @return integer|null
531
+     */
521 532
     public static function getLanguage($id_lang)
522 533
     {
523 534
         if (!array_key_exists((int)($id_lang), self::$_LANGUAGES))
@@ -563,7 +574,6 @@  discard block
 block discarded – undo
563 574
     /**
564 575
       * Return array (id_lang, iso_code)
565 576
       *
566
-      * @param string $iso_code Iso code
567 577
       * @return array  Language (id_lang, iso_code)
568 578
       */
569 579
     public static function getIsoIds($active = true)
@@ -684,6 +694,9 @@  discard block
 block discarded – undo
684 694
         }
685 695
     }
686 696
 
697
+    /**
698
+     * @param integer $id
699
+     */
687 700
     protected static function _copyNoneFlag($id)
688 701
     {
689 702
         return copy(dirname(__FILE__).'/../img/l/none.jpg', dirname(__FILE__).'/../img/l/'.$id.'.jpg');
Please login to merge, or discard this patch.
tests/vendors/Tools.php 1 patch
Doc Comments   +33 added lines, -11 removed lines patch added patch discarded remove patch
@@ -521,8 +521,6 @@  discard block
 block discarded – undo
521 521
 	* Sanitize a string
522 522
 	*
523 523
 	* @param string $string String to sanitize
524
-	* @param boolean $full String contains HTML or not (optional)
525
-	* @return string Sanitized string
526 524
 	*/
527 525
 	public static function safeOutput($string, $html = false)
528 526
 	{
@@ -531,6 +529,10 @@  discard block
 block discarded – undo
531 529
 		return @Tools::htmlentitiesUTF8($string, ENT_QUOTES);
532 530
 	}
533 531
 
532
+	/**
533
+	 * @param string $string
534
+	 * @param integer $type
535
+	 */
534 536
 	public static function htmlentitiesUTF8($string, $type = ENT_QUOTES)
535 537
 	{
536 538
 		if (is_array($string))
@@ -803,7 +805,6 @@  discard block
 block discarded – undo
803 805
 	/**
804 806
 	* Encrypt password
805 807
 	*
806
-	* @param object $object Object to display
807 808
 	*/
808 809
 	public static function encrypt($passwd)
809 810
 	{
@@ -813,7 +814,6 @@  discard block
 block discarded – undo
813 814
 	/**
814 815
 	* Get token to prevent CSRF
815 816
 	*
816
-	* @param string $token token to encrypt
817 817
 	*/
818 818
 	public static function getToken($page = true)
819 819
 	{
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
 	/**
828 828
 	* Encrypt password
829 829
 	*
830
-	* @param object $object Object to display
830
+	* @param string $string
831 831
 	*/
832 832
 	public static function getAdminToken($string)
833 833
 	{
@@ -1073,10 +1073,6 @@  discard block
 block discarded – undo
1073 1073
 	/**
1074 1074
 	* Generate date form
1075 1075
 	*
1076
-	* @param integer $year Year to select
1077
-	* @param integer $month Month to select
1078
-	* @param integer $day Day to select
1079
-	* @return array $tab html data with 3 cells :['days'], ['months'], ['years']
1080 1076
 	*
1081 1077
 	*/
1082 1078
 	public static function dateYears()
@@ -1100,6 +1096,11 @@  discard block
 block discarded – undo
1100 1096
 		return $tab;
1101 1097
 	}
1102 1098
 
1099
+	/**
1100
+	 * @param integer $hours
1101
+	 * @param integer $minutes
1102
+	 * @param integer $seconds
1103
+	 */
1103 1104
 	public static function hourGenerate($hours, $minutes, $seconds)
1104 1105
 	{
1105 1106
 		return implode(':', array($hours, $minutes, $seconds));
@@ -1156,6 +1157,9 @@  discard block
 block discarded – undo
1156 1157
 		return $string;
1157 1158
 	}
1158 1159
 
1160
+	/**
1161
+	 * @param false|string $str
1162
+	 */
1159 1163
 	static function strtoupper($str)
1160 1164
 	{
1161 1165
 		if (is_array($str))
@@ -1165,6 +1169,9 @@  discard block
 block discarded – undo
1165 1169
 		return strtoupper($str);
1166 1170
 	}
1167 1171
 
1172
+	/**
1173
+	 * @param integer $start
1174
+	 */
1168 1175
 	static function substr($str, $start, $length = false, $encoding = 'utf-8')
1169 1176
 	{
1170 1177
 		if (is_array($str))
@@ -1243,6 +1250,9 @@  discard block
 block discarded – undo
1243 1250
 			set_magic_quotes_runtime($var);
1244 1251
 	}
1245 1252
 
1253
+	/**
1254
+	 * @param double $value
1255
+	 */
1246 1256
 	public static function ps_round($value, $precision = 0)
1247 1257
 	{
1248 1258
 		$method = (int)(Configuration::get('PS_PRICE_ROUND_MODE'));
@@ -1364,6 +1374,7 @@  discard block
 block discarded – undo
1364 1374
 	/**
1365 1375
 	* Translates a string with underscores into camel case (e.g. first_name -> firstName)
1366 1376
 	* @prototype string public static function toCamelCase(string $str[, bool $capitaliseFirstChar = false])
1377
+	* @param string $str
1367 1378
 	*/
1368 1379
 	public static function toCamelCase($str, $capitaliseFirstChar = false)
1369 1380
 	{
@@ -1438,6 +1449,9 @@  discard block
 block discarded – undo
1438 1449
 		return false;
1439 1450
 	}
1440 1451
 
1452
+	/**
1453
+	 * @param string $css_content
1454
+	 */
1441 1455
 	public static function minifyCSS($css_content, $fileuri = false)
1442 1456
 	{
1443 1457
 		global $current_css_file;
@@ -1493,7 +1507,7 @@  discard block
 block discarded – undo
1493 1507
 	 * addJS load a javascript file in the header
1494 1508
 	 *
1495 1509
 	 * @param mixed $js_uri
1496
-	 * @return void
1510
+	 * @return boolean
1497 1511
 	 */
1498 1512
 	public static function addJS($js_uri)
1499 1513
 	{
@@ -1544,7 +1558,7 @@  discard block
 block discarded – undo
1544 1558
 	 *
1545 1559
 	 * @param mixed $css_uri
1546 1560
 	 * @param string $css_media_type
1547
-	 * @return true
1561
+	 * @return boolean
1548 1562
 	 */
1549 1563
 	public static function addCSS($css_uri, $css_media_type = 'all')
1550 1564
 	{
@@ -1758,6 +1772,11 @@  discard block
 block discarded – undo
1758 1772
 		return self::getHttpHost();
1759 1773
 	}
1760 1774
 
1775
+	/**
1776
+	 * @param string $path
1777
+	 * @param integer $rewrite_settings
1778
+	 * @param integer $cache_control
1779
+	 */
1761 1780
 	public static function generateHtaccess($path, $rewrite_settings, $cache_control, $specific = '', $disableMuliviews = false)
1762 1781
 	{
1763 1782
 		$tab = array('ErrorDocument' => array(), 'RewriteEngine' => array(), 'RewriteRule' => array());
@@ -2030,6 +2049,9 @@  discard block
 block discarded – undo
2030 2049
 		return $s;
2031 2050
 	}
2032 2051
 
2052
+	/**
2053
+	 * @param string $replace
2054
+	 */
2033 2055
 	public static function str_replace_once($needle , $replace, $haystack)
2034 2056
 	{
2035 2057
 		$pos = strpos($haystack, $needle);
Please login to merge, or discard this patch.