Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created
include/Smarty/plugins/function.html_table.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -161,6 +161,10 @@
 block discarded – undo
161 161
     return $output;
162 162
 }
163 163
 
164
+/**
165
+ * @param string $name
166
+ * @param string $var
167
+ */
164 168
 function smarty_function_html_table_cycle($name, $var, $no) {
165 169
     if(!is_array($var)) {
166 170
         $ret = $var;
Please login to merge, or discard this patch.
include/Smarty/plugins/function.sugar_action_menu.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -195,6 +195,9 @@
 block discarded – undo
195 195
     return $params['buttons'];
196 196
 }
197 197
 
198
+/**
199
+ * @param string $glue
200
+ */
198 201
 function implode_r($glue, $pieces, $extract_first_item = false) {
199 202
     $result = array_shift($pieces);
200 203
     if(is_array($result)) {
Please login to merge, or discard this patch.
include/Smarty/plugins/modifier.capitalize.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
     return preg_replace_callback('!\'?\b\w(\w|\')*\b!', 'smarty_modifier_capitalize_ucfirst', $string);
25 25
 }
26 26
 
27
+/**
28
+ * @param boolean $uc_digits
29
+ */
27 30
 function smarty_modifier_capitalize_ucfirst($string, $uc_digits = null)
28 31
 {
29 32
     static $_uc_digits = false;
Please login to merge, or discard this patch.
include/Smarty/plugins/outputfilter.trimwhitespace.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@
 block discarded – undo
61 61
     return $source;
62 62
 }
63 63
 
64
+/**
65
+ * @param string $search_str
66
+ */
64 67
 function smarty_outputfilter_trimwhitespace_replace($search_str, $replace, &$subject) {
65 68
     $_len = strlen($search_str);
66 69
     $_pos = 0;
Please login to merge, or discard this patch.
include/Smarty/plugins/shared.make_timestamp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  *           from a string.
13 13
  * @author   Monte Ohrt <monte at ohrt dot com>
14 14
  * @param string
15
- * @return string
15
+ * @return integer
16 16
  */
17 17
 function smarty_make_timestamp($string)
18 18
 {
Please login to merge, or discard this patch.
include/Smarty/Smarty.class.php 1 patch
Doc Comments   +2 added lines, -15 removed lines patch added patch discarded remove patch
@@ -712,7 +712,6 @@  discard block
 block discarded – undo
712 712
      * @param object &$object_impl the referenced PHP object to register
713 713
      * @param null|array $allowed list of allowed methods (empty = all)
714 714
      * @param boolean $smarty_args smarty argument format, else traditional
715
-     * @param null|array $block_functs list of methods that are block format
716 715
      */
717 716
     function register_object($object, &$object_impl, $allowed = array(), $smarty_args = true, $block_methods = array())
718 717
     {
@@ -977,7 +976,7 @@  discard block
 block discarded – undo
977 976
      * @param string $tpl_file name of template file
978 977
      * @param string $cache_id
979 978
      * @param string $compile_id
980
-     * @return string|false results of {@link _read_cache_file()}
979
+     * @return boolean results of {@link _read_cache_file()}
981 980
      */
982 981
     function is_cached($tpl_file, $cache_id = null, $compile_id = null)
983 982
     {
@@ -1046,7 +1045,6 @@  discard block
 block discarded – undo
1046 1045
      * Returns an array containing template variables
1047 1046
      *
1048 1047
      * @param string $name
1049
-     * @param string $type
1050 1048
      * @return array
1051 1049
      */
1052 1050
     function &get_template_vars($name=null)
@@ -1066,7 +1064,6 @@  discard block
 block discarded – undo
1066 1064
      * Returns an array containing config variables
1067 1065
      *
1068 1066
      * @param string $name
1069
-     * @param string $type
1070 1067
      * @return array
1071 1068
      */
1072 1069
     function &get_config_vars($name=null)
@@ -1444,6 +1441,7 @@  discard block
 block discarded – undo
1444 1441
      * @param string $resource_name
1445 1442
      * @param string $source_content
1446 1443
      * @param string $compiled_content
1444
+     * @param string $cache_include_path
1447 1445
      * @return boolean
1448 1446
      */
1449 1447
     function _compile_source($resource_name, &$source_content, &$compiled_content, $cache_include_path=null)
@@ -1521,11 +1519,6 @@  discard block
 block discarded – undo
1521 1519
      *
1522 1520
      * sets $source_content to the source of the template, and
1523 1521
      * $resource_timestamp to its time stamp
1524
-     * @param string $resource_name
1525
-     * @param string $source_content
1526
-     * @param integer $resource_timestamp
1527
-     * @param boolean $get_source
1528
-     * @param boolean $quiet
1529 1522
      * @return boolean
1530 1523
      */
1531 1524
 
@@ -1606,10 +1599,6 @@  discard block
 block discarded – undo
1606 1599
     /**
1607 1600
      * parse out the type and name from the resource
1608 1601
      *
1609
-     * @param string $resource_base_path
1610
-     * @param string $resource_name
1611
-     * @param string $resource_type
1612
-     * @param string $resource_name
1613 1602
      * @return boolean
1614 1603
      */
1615 1604
 
@@ -1670,8 +1659,6 @@  discard block
 block discarded – undo
1670 1659
     /**
1671 1660
      * Handle modifiers
1672 1661
      *
1673
-     * @param string|null $modifier_name
1674
-     * @param array|null $map_array
1675 1662
      * @return string result of modifiers
1676 1663
      */
1677 1664
     function _run_mod_handler()
Please login to merge, or discard this patch.
include/Smarty/Smarty_Compiler.class.php 1 patch
Doc Comments   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * @param string $resource_name
221 221
      * @param string $source_content
222 222
      * @param string $compiled_content
223
-     * @return true
223
+     * @return null|boolean
224 224
      */
225 225
     function _compile_file($resource_name, $source_content, &$compiled_content)
226 226
     {
@@ -761,7 +761,8 @@  discard block
 block discarded – undo
761 761
      * @param string $tag_command
762 762
      * @param string $tag_args
763 763
      * @param string $tag_modifier
764
-     * @return string
764
+     * @param string $output
765
+     * @return boolean
765 766
      */
766 767
     function _compile_custom_tag($tag_command, $tag_args, $tag_modifier, &$output)
767 768
     {
@@ -1427,6 +1428,11 @@  discard block
 block discarded – undo
1427 1428
     }
1428 1429
 
1429 1430
 
1431
+    /**
1432
+     * @param string $type
1433
+     * @param string $name
1434
+     * @param string $cache_code
1435
+     */
1430 1436
     function _compile_arg_list($type, $name, $attrs, &$cache_code) {
1431 1437
         $arg_list = array();
1432 1438
 
@@ -1624,7 +1630,6 @@  discard block
 block discarded – undo
1624 1630
      * PHP code
1625 1631
      *
1626 1632
      * @param string $val
1627
-     * @param string $tag_attrs
1628 1633
      * @return string
1629 1634
      */
1630 1635
     function _parse_var_props($val)
@@ -1710,7 +1715,6 @@  discard block
 block discarded – undo
1710 1715
      * parse variable expression into PHP code
1711 1716
      *
1712 1717
      * @param string $var_expr
1713
-     * @param string $output
1714 1718
      * @return string
1715 1719
      */
1716 1720
     function _parse_var($var_expr)
@@ -1978,7 +1982,7 @@  discard block
 block discarded – undo
1978 1982
      *
1979 1983
      * @param string $type
1980 1984
      * @param string $name
1981
-     * @param boolean? $delayed_loading
1985
+     * @param boolean $delayed_loading
1982 1986
      */
1983 1987
     function _add_plugin($type, $name, $delayed_loading = null)
1984 1988
     {
@@ -2268,6 +2272,8 @@  discard block
 block discarded – undo
2268 2272
      * check if the compilation changes from cacheable to
2269 2273
      * non-cacheable state with the beginning of the current
2270 2274
      * plugin. return php-code to reflect the transition.
2275
+     * @param string $type
2276
+     * @param string $name
2271 2277
      * @return string
2272 2278
      */
2273 2279
     function _push_cacheable_state($type, $name) {
@@ -2286,6 +2292,8 @@  discard block
 block discarded – undo
2286 2292
      * check if the compilation changes from non-cacheable to
2287 2293
      * cacheable state with the end of the current plugin return
2288 2294
      * php-code to reflect the transition.
2295
+     * @param string $type
2296
+     * @param string $name
2289 2297
      * @return string
2290 2298
      */
2291 2299
     function _pop_cacheable_state($type, $name) {
@@ -2301,6 +2309,7 @@  discard block
 block discarded – undo
2301 2309
     /**
2302 2310
      * push opening tag-name, file-name and line-number on the tag-stack
2303 2311
      * @param string the opening tag's name
2312
+     * @param string $open_tag
2304 2313
      */
2305 2314
     function _push_tag($open_tag)
2306 2315
     {
@@ -2311,6 +2320,7 @@  discard block
 block discarded – undo
2311 2320
      * pop closing tag-name
2312 2321
      * raise an error if this stack-top doesn't match with the closing tag
2313 2322
      * @param string the closing tag's name
2323
+     * @param string $close_tag
2314 2324
      * @return string the opening tag's name
2315 2325
      */
2316 2326
     function _pop_tag($close_tag)
Please login to merge, or discard this patch.
include/social/facebook/facebook_sdk/src/base_facebook.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -542,7 +542,7 @@
 block discarded – undo
542 542
    * Get the UID of the connected user, or 0
543 543
    * if the Facebook user is not connected.
544 544
    *
545
-   * @return string the UID if available.
545
+   * @return integer the UID if available.
546 546
    */
547 547
   public function getUser() {
548 548
     if ($this->user !== null) {
Please login to merge, or discard this patch.
include/social/facebook/facebook_sdk/tests/tests.php 1 patch
Doc Comments   +27 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
 
28 28
   private static $kExpiredAccessToken = 'AAABrFmeaJjgBAIshbq5ZBqZBICsmveZCZBi6O4w9HSTkFI73VMtmkL9jLuWsZBZC9QMHvJFtSulZAqonZBRIByzGooCZC8DWr0t1M4BL9FARdQwPWPnIqCiFQ';
29 29
 
30
+  /**
31
+   * @param string $oauth_token
32
+   */
30 33
   private static function kValidSignedRequest($id = self::TEST_USER, $oauth_token = null) {
31 34
     $facebook = new FBPublic(array(
32 35
       'appId'  => self::APP_ID,
@@ -1928,7 +1931,6 @@  discard block
 block discarded – undo
1928 1931
    * Checks that the correct args are a subset of the returned obj
1929 1932
    * @param  array $correct The correct array values
1930 1933
    * @param  array $actual  The values in practice
1931
-   * @param  string $message to be shown on failure
1932 1934
    */
1933 1935
   protected function assertIsSubset($correct, $actual, $msg='') {
1934 1936
     foreach ($correct as $key => $value) {
@@ -1975,18 +1977,33 @@  discard block
 block discarded – undo
1975 1977
     return $this->requests;
1976 1978
   }
1977 1979
 
1980
+  /**
1981
+   * @param string $access_token
1982
+   */
1978 1983
   public function publicGetAppSecretProof($access_token) {
1979 1984
     return $this->getAppSecretProof($access_token);
1980 1985
   }
1981 1986
 }
1982 1987
 
1983 1988
 class FBPublic extends TransientFacebook {
1989
+
1990
+  /**
1991
+   * @param string $input
1992
+   */
1984 1993
   public static function publicBase64UrlDecode($input) {
1985 1994
     return self::base64UrlDecode($input);
1986 1995
   }
1996
+
1997
+  /**
1998
+   * @param string $input
1999
+   */
1987 2000
   public static function publicBase64UrlEncode($input) {
1988 2001
     return self::base64UrlEncode($input);
1989 2002
   }
2003
+
2004
+  /**
2005
+   * @param string $input
2006
+   */
1990 2007
   public function publicParseSignedRequest($input) {
1991 2008
     return $this->parseSignedRequest($input);
1992 2009
   }
@@ -2000,14 +2017,23 @@  discard block
 block discarded – undo
2000 2017
     return $this->parseSignedRequest($input);
2001 2018
   }
2002 2019
 
2020
+  /**
2021
+   * @param string $key
2022
+   */
2003 2023
   public function publicSetPersistentData($key, $value) {
2004 2024
     $this->setPersistentData($key, $value);
2005 2025
   }
2006 2026
 
2027
+  /**
2028
+   * @param string $key
2029
+   */
2007 2030
   public function publicGetPersistentData($key, $default = false) {
2008 2031
     return $this->getPersistentData($key, $default);
2009 2032
   }
2010 2033
 
2034
+  /**
2035
+   * @param string $key
2036
+   */
2011 2037
   public function publicClearPersistentData($key) {
2012 2038
     return $this->clearPersistentData($key);
2013 2039
   }
Please login to merge, or discard this patch.