Completed
Pull Request — master (#1795)
by Christian
11:36
created
default/boinc/modules/boincstats/includes/pchart/class/pDraw.class.php 1 patch
Doc Comments   +44 added lines patch added patch discarded remove patch
@@ -124,6 +124,10 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
    /* Draw a polygon */
127
+
128
+   /**
129
+    * @param string $Points
130
+    */
127 131
    function drawPolygon($Points,$Format="")
128 132
     {
129 133
      $R			= isset($Format["R"]) ? $Format["R"] : 0;
@@ -573,6 +577,10 @@  discard block
 block discarded – undo
573 577
     }
574 578
 
575 579
    /* Drawn a spline based on the bezier function */
580
+
581
+   /**
582
+    * @param string $Coordinates
583
+    */
576 584
    function drawSpline($Coordinates,$Format="")
577 585
     {
578 586
      $R		= isset($Format["R"]) ? $Format["R"] : 0;
@@ -1028,6 +1036,10 @@  discard block
 block discarded – undo
1028 1036
     }
1029 1037
 
1030 1038
    /* Draw a gradient within a defined area */
1039
+
1040
+   /**
1041
+    * @param integer $Direction
1042
+    */
1031 1043
    function drawGradientArea($X1,$Y1,$X2,$Y2,$Direction,$Format="")
1032 1044
     {
1033 1045
      $StartR	= isset($Format["StartR"]) ? $Format["StartR"] : 90;
@@ -1109,6 +1121,11 @@  discard block
 block discarded – undo
1109 1121
     }
1110 1122
 
1111 1123
    /* Draw an aliased pixel */
1124
+
1125
+   /**
1126
+    * @param double $X
1127
+    * @param double $Y
1128
+    */
1112 1129
    function drawAntialiasPixel($X,$Y,$Format="")
1113 1130
     {
1114 1131
      $R     = isset($Format["R"]) ? $Format["R"] : 0;
@@ -1188,6 +1205,10 @@  discard block
 block discarded – undo
1188 1205
     }
1189 1206
 
1190 1207
    /* Convert apha to base 10 */
1208
+
1209
+   /**
1210
+    * @param integer $AlphaValue
1211
+    */
1191 1212
    function convertAlpha($AlphaValue)
1192 1213
     { return((127/100)*(100-$AlphaValue)); }
1193 1214
 
@@ -1205,6 +1226,11 @@  discard block
 block discarded – undo
1205 1226
     }
1206 1227
 
1207 1228
    /* Load a PNG file and draw it over the chart */
1229
+
1230
+   /**
1231
+    * @param double $X
1232
+    * @param double $Y
1233
+    */
1208 1234
    function drawFromPNG($X,$Y,$FileName)
1209 1235
     { $this->drawFromPicture(1,$FileName,$X,$Y); }
1210 1236
 
@@ -2483,6 +2509,9 @@  discard block
 block discarded – undo
2483 2509
       }
2484 2510
     }
2485 2511
 
2512
+   /**
2513
+    * @param integer $ID
2514
+    */
2486 2515
    function isValidLabel($Value,$LastValue,$LabelingMethod,$ID,$LabelSkip)
2487 2516
     {
2488 2517
      if ( $LabelingMethod == LABELING_DIFFERENT && $Value != $LastValue ) { return(TRUE); }
@@ -2494,6 +2523,10 @@  discard block
 block discarded – undo
2494 2523
     }
2495 2524
 
2496 2525
    /* Compute the scale, check for the best visual factors */
2526
+
2527
+   /**
2528
+    * @param double $MaxDivs
2529
+    */
2497 2530
    function computeScale($XMin,$XMax,$MaxDivs,$Factors,$AxisID=0)
2498 2531
     {
2499 2532
      /* Compute each factors */
@@ -2522,6 +2555,10 @@  discard block
 block discarded – undo
2522 2555
     }
2523 2556
 
2524 2557
    /* Compute the best matching scale based on size & factors */
2558
+
2559
+   /**
2560
+    * @param integer $AxisID
2561
+    */
2525 2562
    function processScale($XMin,$XMax,$MaxDivs,$Factors,$AxisID)
2526 2563
     {
2527 2564
      $ScaleHeight = abs(ceil($XMax)-floor($XMin));
@@ -2602,6 +2639,9 @@  discard block
 block discarded – undo
2602 2639
      return($Scale);
2603 2640
     }
2604 2641
 
2642
+   /**
2643
+    * @param double $Value2
2644
+    */
2605 2645
    function modulo($Value1,$Value2)
2606 2646
     {
2607 2647
      if (floor($Value2) == 0) { return(0); }
@@ -5772,6 +5812,10 @@  discard block
 block discarded – undo
5772 5812
     }
5773 5813
 
5774 5814
    /* Draw a label box */
5815
+
5816
+   /**
5817
+    * @param string $Captions
5818
+    */
5775 5819
    function drawLabelBox($X,$Y,$Title,$Captions,$Format="")
5776 5820
     {
5777 5821
      $NoTitle		= isset($Format["NoTitle"]) ? $Format["NoTitle"] : NULL;
Please login to merge, or discard this patch.
default/boinc/modules/boincstats/includes/pchart/class/pImage.class.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -82,6 +82,12 @@  discard block
 block discarded – undo
82 82
    var $LastChartLayout	= CHART_LAST_LAYOUT_REGULAR;	// Last layout : regular or stacked
83 83
 
84 84
    /* Class constructor */
85
+
86
+   /**
87
+    * @param integer $XSize
88
+    * @param integer $YSize
89
+    * @param pData $DataSet
90
+    */
85 91
    function pImage($XSize,$YSize,$DataSet=NULL,$TransparentBackground=FALSE)
86 92
     {
87 93
      $this->TransparentBackground = $TransparentBackground;
@@ -126,6 +132,13 @@  discard block
 block discarded – undo
126 132
     }
127 133
 
128 134
    /* Set the graph area position */
135
+
136
+   /**
137
+    * @param integer $X1
138
+    * @param integer $Y1
139
+    * @param integer $X2
140
+    * @param integer $Y2
141
+    */
129 142
    function setGraphArea($X1,$Y1,$X2,$Y2)
130 143
     {
131 144
      if ( $X2 < $X1 || $X1 == $X2 || $Y2 < $Y1 || $Y1 == $Y2 ) { return(-1); }
@@ -145,6 +158,10 @@  discard block
 block discarded – undo
145 158
     { return($this->YSize); }
146 159
 
147 160
    /* Render the picture to a file */
161
+
162
+   /**
163
+    * @param string $FileName
164
+    */
148 165
    function render($FileName)
149 166
     {
150 167
      if ( $this->TransparentBackground ) { imagealphablending($this->Picture,false); imagesavealpha($this->Picture,true); }
Please login to merge, or discard this patch.
sites/default/boinc/modules/boincstats/includes/pchart/class/pPie.class.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -796,6 +796,13 @@  discard block
 block discarded – undo
796 796
     }
797 797
 
798 798
    /* Internally used compute the label positions */
799
+
800
+   /**
801
+    * @param double $X
802
+    * @param double $Y
803
+    * @param double $Angle
804
+    * @param boolean $Stacked
805
+    */
799 806
    function writePieLabel($X,$Y,$Label,$Angle,$Settings,$Stacked,$Xc=0,$Yc=0,$Radius=0,$Reversed=FALSE)
800 807
     {
801 808
      $LabelOffset	= 30;
@@ -847,6 +854,13 @@  discard block
 block discarded – undo
847 854
     }
848 855
 
849 856
    /* Internally used to shift label positions */
857
+
858
+   /**
859
+    * @param integer $StartAngle
860
+    * @param integer $EndAngle
861
+    * @param double $Offset
862
+    * @param boolean $Reversed
863
+    */
850 864
    function shift($StartAngle,$EndAngle,$Offset,$Reversed)
851 865
     {
852 866
      if ( $Reversed ) { $Offset = -$Offset; }
@@ -1462,6 +1476,10 @@  discard block
 block discarded – undo
1462 1476
    }
1463 1477
 
1464 1478
   /* Reverse an array */
1479
+
1480
+  /**
1481
+   * @param string $Plots
1482
+   */
1465 1483
   function arrayReverse($Plots)
1466 1484
    {
1467 1485
     $Result = "";
Please login to merge, or discard this patch.
default/boinc/modules/boincstats/includes/pchart/class/pSpring.class.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -258,6 +258,11 @@  discard block
 block discarded – undo
258 258
      $this->Data[$SourceID]["Connections"][] = $TargetID;
259 259
     }
260 260
    /* Get the median linked nodes position */
261
+
262
+   /**
263
+    * @param double $X
264
+    * @param double $Y
265
+    */
261 266
    function getMedianOffset($Key,$X,$Y)
262 267
     {
263 268
      $Cpt = 1;
@@ -277,6 +282,10 @@  discard block
 block discarded – undo
277 282
     }
278 283
 
279 284
    /* Return the ID of the attached partner with the biggest weight */
285
+
286
+   /**
287
+    * @return double
288
+    */
280 289
    function getBiggestPartner($Key)
281 290
     {
282 291
      if ( !isset($this->Data[$Key]["Connections"]) ) { return(""); }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boinctranslate/boinctranslate.module 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -168,6 +168,7 @@  discard block
 block discarded – undo
168 168
 /**
169 169
  * Implementation of hook_node_view(); add custom actions when a node
170 170
  * is viewed (forward compatible to Drupal 7)
171
+ * @param string $view_mode
171 172
  */
172 173
 function boinctranslate_node_view($node, $view_mode, $langcode) {
173 174
   switch($node->type) {
@@ -706,6 +707,7 @@  discard block
 block discarded – undo
706 707
 
707 708
 /**
708 709
  *
710
+ * @param string $type
709 711
  */
710 712
 function boinctranslate_export_po_generate($language = NULL, $strings = array(), $header = NULL, $type = NULL) {
711 713
 
@@ -1060,6 +1062,7 @@  discard block
 block discarded – undo
1060 1062
 
1061 1063
 /**
1062 1064
  *
1065
+ * @param stdClass $file
1063 1066
  */
1064 1067
 function _boinctranslate_locale_import_po($file, $langcode, $mode, $group = NULL) {
1065 1068
   // Try to allocate enough time to parse and import the data.
@@ -1106,6 +1109,7 @@  discard block
 block discarded – undo
1106 1109
 
1107 1110
 /**
1108 1111
  *
1112
+ * @param string $op
1109 1113
  */
1110 1114
 function _boinctranslate_locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = 'default') {
1111 1115
 
@@ -1449,6 +1453,7 @@  discard block
 block discarded – undo
1449 1453
 /**
1450 1454
  * Modify the _locale_import_one_string_db() function so that it does not add
1451 1455
  * translation strings that do not exist on the site
1456
+ * @param string $textgroup
1452 1457
  */
1453 1458
  function _boinctranslate_locale_import_one_string_db(&$report, $langcode, $source, $translation, $textgroup, $location, $mode, $plid = NULL, $plural = NULL) {
1454 1459
   $lid = db_result(db_query("SELECT lid FROM {locales_source} WHERE location = '%s' AND source = '%s' AND textgroup = '%s'", $location, $source, $textgroup));
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincuser/includes/boincuser.helpers.inc 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -26,6 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
 /**
28 28
  * Get an image object from a given file and cck field
29
+ * @param string $field_name
30
+ * @param string $content_type
29 31
  */ 
30 32
 function get_cck_image_object($image_path, $field_name, $content_type, $ignore_resolution = FALSE) {
31 33
   $field = content_fields($field_name, $content_type); 
@@ -237,6 +239,7 @@  discard block
 block discarded – undo
237 239
 /**
238 240
  * Include BOINC code
239 241
  * The path from the BOINC html root must be included (e.g. user/file.php)
242
+ * @param string $file
240 243
  */
241 244
 function include_boinc($file) {
242 245
   if ($include_dir = boinc_get_path()) {
@@ -252,6 +255,7 @@  discard block
 block discarded – undo
252 255
 
253 256
 /**
254 257
  * Get the BOINC include path
258
+ * @return string
255 259
  */
256 260
 function boinc_get_path($type = 'root') {
257 261
   $dir = "boinc_{$type}_dir";
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincwork/includes/boincwork.forms.inc 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 /**
15 15
  * The structure of the general preferences form
16
+ * @param string $prefs_preset
16 17
  */
17 18
 function boincwork_generalprefs_form(&$form_state, $venue, $prefs_preset = null, $advanced = FALSE) {
18 19
   $form = array();
@@ -754,6 +755,7 @@  discard block
 block discarded – undo
754 755
 
755 756
 /**
756 757
  * Perform the database updates to merge the old host into the new host
758
+ * @param string $message
757 759
  */
758 760
 function boincwork_host_merge($old_host, $new_host, &$message = NULL) {
759 761
   // Decay the average credit of the two hosts
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincwork/includes/boincwork.helpers.inc 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -977,6 +977,7 @@  discard block
 block discarded – undo
977 977
 
978 978
 /**
979 979
  * Format a number to be displayed using a maximum number of digits
980
+ * @param double $number
980 981
  */ 
981 982
 function boincwork_format_stats($number, $max_digits = 4) {
982 983
   $suffix = array(
@@ -1187,6 +1188,9 @@  discard block
 block discarded – undo
1187 1188
   //  xml_to_array(): Convert an XML DOM object to array format
1188 1189
   //------------------------------------------------------------------------------------------------
1189 1190
   
1191
+  /**
1192
+   * @param DOMDocument $xml
1193
+   */
1190 1194
   function xml_to_array($xml) {
1191 1195
       $node = $xml->firstChild; //$xml->first_child();
1192 1196
       $result = '';
@@ -1269,6 +1273,7 @@  discard block
 block discarded – undo
1269 1273
 
1270 1274
 /**
1271 1275
   * Determine output for host list views when no hosts are found.
1276
+  * @param string $context
1272 1277
   */
1273 1278
 function boincwork_views_host_list_empty_text($context = NULL) {
1274 1279
   
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/contrib/bbcode/bbcode-filter.inc 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1,6 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 // $Id: bbcode-filter.inc,v 1.66 2008/11/30 08:50:08 naudefj Exp $
3 3
 
4
+/**
5
+ * @param string $body
6
+ */
4 7
 function _bbcode_filter_process(&$body, $format = -1) {
5 8
 
6 9
   $quote_text = t('Quote:');
Please login to merge, or discard this patch.