Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created
include/social/twitter/twitter_auth/twitteroauth/twitteroauth.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -55,6 +55,8 @@  discard block
 block discarded – undo
55 55
 
56 56
   /**
57 57
    * construct TwitterOAuth object
58
+   * @param string $consumer_key
59
+   * @param string $consumer_secret
58 60
    */
59 61
   function __construct($consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL) {
60 62
     $this->sha1_method = new OAuthSignatureMethod_HMAC_SHA1();
@@ -71,6 +73,7 @@  discard block
 block discarded – undo
71 73
    * Get a request_token from Twitter
72 74
    *
73 75
    * @returns a key/value array containing oauth_token and oauth_token_secret
76
+   * @param string $oauth_callback
74 77
    */
75 78
   function getRequestToken($oauth_callback) {
76 79
     $parameters = array();
@@ -170,6 +173,7 @@  discard block
 block discarded – undo
170 173
 
171 174
   /**
172 175
    * Format and sign an OAuth / API request
176
+   * @param string $method
173 177
    */
174 178
   function oAuthRequest($url, $method, $parameters) {
175 179
     if (strrpos($url, 'https://') !== 0 && strrpos($url, 'http://') !== 0) {
@@ -188,6 +192,7 @@  discard block
 block discarded – undo
188 192
   /**
189 193
    * Make an HTTP request
190 194
    *
195
+   * @param string $postfields
191 196
    * @return API results
192 197
    */
193 198
   function http($url, $method, $postfields = NULL) {
Please login to merge, or discard this patch.
include/social/twitter/twitter_helper.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 }
14 14
 
15 15
 
16
+/**
17
+ * @param integer $limit
18
+ */
16 19
 function format_feed_tweets($db, $array, $limit)
17 20
 {
18 21
 
Please login to merge, or discard this patch.
include/SubPanel/SubPanel.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
 		}
103 103
 	}
104 104
 
105
+	/**
106
+	 * @param string $template_file
107
+	 */
105 108
 	function setTemplateFile($template_file)
106 109
 	{
107 110
 		$this->template_file = $template_file;
@@ -271,6 +274,10 @@  discard block
 block discarded – undo
271 274
   }
272 275
 
273 276
   //saves overrides for defs
277
+
278
+  /**
279
+   * @param string $subsection
280
+   */
274 281
   function saveSubPanelDefOverride( $panel, $subsection, $override){
275 282
   		global $layout_defs, $beanList;
276 283
 
@@ -406,6 +413,9 @@  discard block
 block discarded – undo
406 413
 		return print_r($where_clauses,true);
407 414
 	}
408 415
 
416
+	/**
417
+	 * @param string $module
418
+	 */
409 419
 	function get_searchdefs($module)
410 420
 	{
411 421
 		$thisPanel =& $this->subpanel_defs;
Please login to merge, or discard this patch.
include/SubPanel/SubPanelDefinitions.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -417,11 +417,19 @@
 block discarded – undo
417 417
 	}
418 418
 
419 419
 	//get value of a property defined at the panel instance level.
420
+
421
+	/**
422
+	 * @param string $name
423
+	 */
420 424
 	function get_inst_prop_value ( $name )
421 425
 	{
422 426
 		return isset($this->_instance_properties[$name]) ? $this->_instance_properties [ $name ] : null;
423 427
 	}
424 428
 	//get value of a property defined at the panel definition level.
429
+
430
+	/**
431
+	 * @param string $name
432
+	 */
425 433
 	function get_def_prop_value ( $name )
426 434
 	{
427 435
 		if (isset ( $this->panel_definition [ $name ] ))
Please login to merge, or discard this patch.
include/SugarCache/SugarCache.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,6 +167,7 @@  discard block
 block discarded – undo
167 167
  *
168 168
  * @param String $key -- Global namespace cache.  Key for the data.
169 169
  * @param Serializable $value -- The value to store in the cache.
170
+ * @param integer $ttl
170 171
  */
171 172
 function sugar_cache_put($key, $value, $ttl = null)
172 173
 {
@@ -228,7 +229,7 @@  discard block
 block discarded – undo
228 229
  *
229 230
  * @deprecated
230 231
  *
231
- * @return true for success, false for failure.
232
+ * @return boolean for success, false for failure.
232 233
  */
233 234
 function sugar_cache_validate()
234 235
 {
Please login to merge, or discard this patch.
include/SugarCache/SugarCacheAbstract.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      *  Set a value for a key in the cache, optionally specify a ttl. A ttl value of zero
159 159
      * will indicate that a value should only be stored per the request.
160 160
      *
161
-     * @param $key
161
+     * @param string $key
162 162
      * @param $value
163 163
      * @param $ttl
164 164
      */
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      * PHP's magic __isset() method, used here for checking for a key in the cache.
193 193
      *
194 194
      * @param  string $key
195
-     * @return mixed
195
+     * @return boolean
196 196
      */
197 197
     public function __isset($key)
198 198
     {
Please login to merge, or discard this patch.
include/SugarCharts/Jit/Jit.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
68 68
 	}
69 69
 	
70 70
 
71
+	/**
72
+	 * @param string $name
73
+	 */
71 74
 	function display($name, $xmlFile, $width='320', $height='480', $resize=false) {
72 75
 	
73 76
 		parent::display($name, $xmlFile, $width, $height, $resize);
Please login to merge, or discard this patch.
include/SugarCharts/JsChart.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@  discard block
 block discarded – undo
77 77
 
78 78
 	}
79 79
 
80
+	/**
81
+	 * @param integer $depth
82
+	 */
80 83
 	function tab($str, $depth){
81 84
        // $str = preg_replace('/(<\w+>)(.*)(<\/\w+>)/e', "'\\1'.htmlentities(from_html('\\2')).'\\3'", $str);
82 85
         return str_repeat("\t", $depth) . $str . "\n";
@@ -663,6 +666,9 @@  discard block
 block discarded – undo
663 666
 		return $html;
664 667
 	}
665 668
 
669
+	/**
670
+	 * @param string $jsonContents
671
+	 */
666 672
 	function saveJsonFile($jsonContents) {
667 673
 		$this->jsonFilename = str_replace(".xml",".js",$this->xmlFile);
668 674
 		//$jsonContents = $GLOBALS['locale']->translateCharset($jsonContents, 'UTF-8', 'UTF-16LE');
Please login to merge, or discard this patch.
include/SugarCharts/SugarChart.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -292,11 +292,8 @@  discard block
 block discarded – undo
292 292
 	/**
293 293
      * returns text with tabs appended before it
294 294
 	 *
295
-     * @param 	string $str xml tag
296
-     			int $tagFormat 2 = open and close tag, 1 = close, 0 = open
297
-     			sting $value input string
298
-	 *			int $depth number of times to tab
299 295
      * @return	string with tabs appended before it
296
+     * @param integer $depth
300 297
      */
301 298
 
302 299
 	function tabValue($tag,$value,$depth) {
@@ -339,6 +336,9 @@  discard block
 block discarded – undo
339 336
 		return $data;
340 337
 	}
341 338
 
339
+	/**
340
+	 * @param integer $tablevel
341
+	 */
342 342
 	function processDataGroup($tablevel, $title, $value, $label, $link){
343 343
 		$link = $this->forceHideDataGroupLink ? '' : $link;
344 344
 		$data = $this->tab('<group>',$tablevel);
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
      * This function sets a null group by clause
646 646
      *
647 647
      * @param $sugarSetValue Mixed value
648
-     * @param $url String value of URL for the link
648
+     * @param string $url String value of URL for the link
649 649
      */
650 650
     private function nullGroup($superSetValue, $url) {
651 651
         return $this->processDataGroup(4, $superSetValue, 'NULL', '', $url);
@@ -709,7 +709,8 @@  discard block
 block discarded – undo
709 709
 	 *
710 710
      * @param 	string $xmlFilename location of the xml file
711 711
 	 *			string $xmlContents contents of the xml file
712
-     * @return	string boolean denoting whether save has failed
712
+	 * @param string $xmlContents
713
+     * @return	null|boolean boolean denoting whether save has failed
713 714
      */
714 715
 	function saveXMLFile($xmlFilename,$xmlContents) {
715 716
 		global $app_strings;
Please login to merge, or discard this patch.