Passed
Push — scrutinizer-code-quality ( eedb15...27193c )
by Adam
54:15 queued 15s
created
modules/Administration/Common.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,6 +74,7 @@  discard block
 block discarded – undo
74 74
 /**
75 75
  * @return string&
76 76
  * @param the_array array, language string, module string
77
+ * @param string $old_contents
77 78
  * @desc Returns the contents of the customized language pack.
78 79
  */
79 80
 function &create_field_lang_pak_contents($old_contents, $key, $value, $language, $module)
@@ -346,7 +347,7 @@  discard block
 block discarded – undo
346 347
 
347 348
 /**
348 349
  * @return bool
349
- * @param dropdown_name string, language string
350
+ * @param dropdown_name string language string
350 351
  * @desc Creates a new dropdown type.
351 352
  */
352 353
 function create_dropdown_type($dropdown_name, $language)
@@ -549,6 +550,9 @@  discard block
 block discarded – undo
549 550
    save_custom_app_list_strings_contents($new_contents, $language);
550 551
 }
551 552
 
553
+/**
554
+ * @param string $file_contents
555
+ */
552 556
 function replace_or_add_dropdown_type($dropdown_type, &$dropdown_array,
553 557
    &$file_contents)
554 558
 {
@@ -580,6 +584,9 @@  discard block
 block discarded – undo
580 584
 	return $new_contents;
581 585
 }
582 586
 
587
+/**
588
+ * @param string $file_contents
589
+ */
583 590
 function replace_or_add_app_string($name, $value,
584 591
    &$file_contents)
585 592
 {
Please login to merge, or discard this patch.
modules/Administration/controller.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,6 @@
 block discarded – undo
123 123
      * to be able to add additional parameters which are currently not supported
124 124
      * in the UI (i.e. additional curl settings for elastic search for auth)
125 125
      *
126
-     * @param array $config
127 126
      * @return array
128 127
      */
129 128
     protected function mergeFtsConfig($type, $newConfig)
Please login to merge, or discard this patch.
modules/Administration/DiagnosticRun.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -124,6 +124,9 @@
 block discarded – undo
124 124
 global $cacheDir;
125 125
 $cacheDir = "";
126 126
 
127
+/**
128
+ * @param integer $itemweight
129
+ */
127 130
 function sodUpdateProgressBar($itemweight){
128 131
     global $progress_bar_percent;
129 132
     global $totalweight;
Please login to merge, or discard this patch.
modules/Administration/QuickRepairAndRebuild.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@  discard block
 block discarded – undo
47 47
     public $execute;
48 48
     protected $module_list_from_cache;
49 49
 
50
+    /**
51
+     * @param string[] $selected_actions
52
+     */
50 53
     public function repairAndClearAll($selected_actions, $modules, $autoexecute=false, $show_output=true)
51 54
     {
52 55
         global $mod_strings;
@@ -446,6 +449,11 @@  discard block
 block discarded – undo
446 449
 	///////////////////////////////////////////////////////////////
447 450
 	//// Recursively unlink all files of the given $extension in the given $thedir.
448 451
 	//
452
+
453
+	/**
454
+	 * @param string $thedir
455
+	 * @param string $extension
456
+	 */
449 457
 	private function _clearCache($thedir, $extension)
450 458
 	{
451 459
         if ($current = @opendir($thedir)) {
Please login to merge, or discard this patch.
modules/Administration/SugarSpriteBuilder.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * addDirectory
107 107
      *
108 108
      * This function is used to create the spriteSrc array
109
-     * @param $name String value of the sprite name
109
+     * @param string $name String value of the sprite name
110 110
      * @param $dir String value of the directory associated with the sprite entry
111 111
      */
112 112
 	public function addDirectory($name, $dir) {
@@ -212,6 +212,7 @@  discard block
 block discarded – undo
212 212
      * This is a private helper function to return attributes about an image.  If the width, height or type of the
213 213
      * image file cannot be determined, then we do not process the file.
214 214
      *
215
+     * @param string $file
215 216
      * @return array of file info entries containing file information (x, y, type) if image type is supported
216 217
      */
217 218
 	private function getFileInfo($dir, $file) {
@@ -631,6 +632,10 @@  discard block
 block discarded – undo
631 632
 	}
632 633
 
633 634
 	// helper function to get highest axis value
635
+
636
+	/**
637
+	 * @param string $axis
638
+	 */
634 639
 	function getMaxAxis($axis) {
635 640
 		$val = 0;
636 641
 		foreach($this->spriteMatrix as $id => $coor) {
Please login to merge, or discard this patch.
modules/Administration/UpgradeWizardCommon.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -83,6 +83,9 @@  discard block
 block discarded – undo
83 83
 
84 84
 
85 85
 
86
+/**
87
+ * @return string
88
+ */
86 89
 function extractFile( $zip_file, $file_in_zip ){
87 90
     global $base_tmp_upgrade_dir;
88 91
 	if(empty($base_tmp_upgrade_dir)){
@@ -94,6 +97,9 @@  discard block
 block discarded – undo
94 97
     return( "$my_zip_dir/$file_in_zip" );
95 98
 }
96 99
 
100
+/**
101
+ * @return string
102
+ */
97 103
 function extractManifest( $zip_file ){
98 104
     return( extractFile( $zip_file, "manifest.php" ) );
99 105
 }
Please login to merge, or discard this patch.
modules/AOD_Index/AOD_Index.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-     * @param $revision
89
+     * @param SugarBean $revision
90 90
      * @return bool|Zend_Search_Lucene_Document
91 91
      */
92 92
     private function getDocumentForRevision($revision){
@@ -197,6 +197,9 @@  discard block
 block discarded – undo
197 197
         return $document;
198 198
     }
199 199
 
200
+    /**
201
+     * @param string $module
202
+     */
200 203
     private function getBoost($module, $field){
201 204
         $fieldBoosts = array('name' =>0.5, 'first_name' => 0.5, 'last_name' => 0.5);
202 205
         $moduleBoosts = array('Accounts' => 0.5, 'Contacts' => 0.5, 'Leads' => 0.5, 'Opportunities' => 0.5);
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     /**
201 201
      * Create index
202 202
      *
203
-     * @param mixed $directory
203
+     * @param string $directory
204 204
      * @return Zend_Search_Lucene_Interface
205 205
      */
206 206
     public static function create($directory)
@@ -901,7 +901,7 @@  discard block
 block discarded – undo
901 901
      *
902 902
      * Default value is 10
903 903
      *
904
-     * @param integer $maxMergeDocs
904
+     * @param integer $mergeFactor
905 905
      */
906 906
     public function setMergeFactor($mergeFactor)
907 907
     {
@@ -1547,7 +1547,7 @@  discard block
 block discarded – undo
1547 1547
     /**
1548 1548
      * Returns term in current position
1549 1549
      *
1550
-     * @return Zend_Search_Lucene_Index_Term|null
1550
+     * @return Zend_Search_Lucene_Index_Term
1551 1551
      */
1552 1552
     public function currentTerm()
1553 1553
     {
Please login to merge, or discard this patch.
modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,6 @@
 block discarded – undo
147 147
     /**
148 148
      * Set the default Analyzer implementation used by indexing code.
149 149
      *
150
-     * @param Zend_Search_Lucene_Analysis_Analyzer $similarity
151 150
      */
152 151
     public static function setDefault(Zend_Search_Lucene_Analysis_Analyzer $analyzer)
153 152
     {
Please login to merge, or discard this patch.