Completed
Push — master ( 33100d...bd7db5 )
by Paul
07:52
created
programs/utilit/exportbalance.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,6 +284,7 @@  discard block
 block discarded – undo
284 284
 	 * Complete current row with right value
285 285
 	 * @param absences_Right $right
286 286
 	 * @param array &$currentRow
287
+	 * @param double $remain_line
287 288
 	 */
288 289
 	private function setRightColumn(absences_Right $right, Array &$currentRow, Array $remain, $remain_line)
289 290
 	{
@@ -350,7 +351,7 @@  discard block
 block discarded – undo
350 351
 	
351 352
 	
352 353
 	/**
353
-	 * @return array
354
+	 * @return string[]
354 355
 	 */
355 356
 	private function getHeader($year = '', $organization = '')
356 357
 	{
@@ -447,6 +448,9 @@  discard block
 block discarded – undo
447 448
 	
448 449
 	
449 450
 	
451
+	/**
452
+	 * @param string[] $header
453
+	 */
450 454
 	private function echoCsv($header)
451 455
 	{
452 456
 	    global $babDB;
Please login to merge, or discard this patch.
programs/portletbackend.class.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -581,6 +581,7 @@
 block discarded – undo
581 581
 	}
582 582
 	
583 583
 	/**
584
+	 * @param integer $id_user
584 585
 	 * @return string|false
585 586
 	 */
586 587
 	private function getPhoto($id_user)
Please login to merge, or discard this patch.
programs/utilit/agent_right.class.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -315,6 +315,9 @@  discard block
 block discarded – undo
315 315
 	
316 316
 	
317 317
 	
318
+	/**
319
+	 * @param integer $exists
320
+	 */
318 321
 	public function saveHistory($exists, $quantity)
319 322
 	{
320 323
 	    global $babDB;
@@ -763,6 +766,7 @@  discard block
 block discarded – undo
763 766
 	 * Get consumed confirmed quantity
764 767
 	 * should work if user not associated to right
765 768
 	 * param string $date
769
+	 * @param string $date
766 770
 	 * @return float	in days or in hours
767 771
 	 */
768 772
 	public function getConfirmedQuantity($date = null)
@@ -1347,6 +1351,7 @@  discard block
 block discarded – undo
1347 1351
 	 *
1348 1352
 	 * @param string $message	generated message
1349 1353
 	 * @param string $comment	Author comment
1354
+	 * @param integer $id_author
1350 1355
 	 */
1351 1356
 	public function addMovement($message, $comment = '', $id_author = null)
1352 1357
 	{
@@ -2139,7 +2144,7 @@  discard block
 block discarded – undo
2139 2144
 	/**
2140 2145
 	 * 
2141 2146
 	 *
2142
-	 * @return mixed
2147
+	 * @return absences_AgentRight|null
2143 2148
 	 */
2144 2149
 	public function next()
2145 2150
 	{
Please login to merge, or discard this patch.
programs/utilit/dynamic_right.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 	/**
122 122
 	 *
123 123
 	 * @param absences_Entry $entry
124
-	 * @return absences_EntryElem
124
+	 * @return absences_DynamicRight
125 125
 	 */
126 126
 	public function setEntry(absences_Entry $entry)
127 127
 	{
Please login to merge, or discard this patch.
programs/utilit/vacincl.php 1 patch
Doc Comments   +45 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@  discard block
 block discarded – undo
55 55
 
56 56
 class absences_notifyOnRequestChangeCls
57 57
 {
58
+	/**
59
+	 * @param string $msg
60
+	 */
58 61
 	function __construct(absences_Entry $entry, $msg)
59 62
 	{
60 63
 		global $babDB;
@@ -123,6 +126,9 @@  discard block
 block discarded – undo
123 126
 {
124 127
 	private $res;
125 128
 
129
+	/**
130
+	 * @param string $msg
131
+	 */
126 132
 	public function __construct(Array $row, $msg)
127 133
 	{
128 134
 		global $babDB;
@@ -410,6 +416,9 @@  discard block
 block discarded – undo
410 416
 	public $display_pagination = false;
411 417
 
412 418
 
419
+	/**
420
+	 * @param integer $max
421
+	 */
413 422
 	protected function paginate($total, $max)
414 423
 	{
415 424
 		$this->t_first_page = absences_translate('First page');
@@ -591,6 +600,9 @@  discard block
 block discarded – undo
591 600
 	public $ide = null;
592 601
 
593 602
 
603
+	/**
604
+	 * @param boolean $display_username
605
+	 */
594 606
 	public function __construct($id_user, $display_username)
595 607
 	{
596 608
 		require_once dirname(__FILE__).'/request.class.php';
@@ -1250,6 +1262,9 @@  discard block
 block discarded – undo
1250 1262
 		}
1251 1263
 			
1252 1264
 			
1265
+		/**
1266
+		 * @param string $name
1267
+		 */
1253 1268
 		private function createQuantityProperty($right, $name)
1254 1269
 		{
1255 1270
 				
@@ -1307,6 +1322,9 @@  discard block
 block discarded – undo
1307 1322
 }
1308 1323
 
1309 1324
 
1325
+/**
1326
+ * @param integer $id_approb
1327
+ */
1310 1328
 function absences_getWfName($id_approb)
1311 1329
 {
1312 1330
 	require_once $GLOBALS['babInstallPath'].'utilit/wfincl.php';
@@ -1487,7 +1505,7 @@  discard block
 block discarded – undo
1487 1505
  * return null : retour a la liste des agents
1488 1506
  * 
1489 1507
  * 
1490
- * @return bool | null
1508
+ * @return null|boolean | null
1491 1509
  */
1492 1510
 function absences_updateVacationPersonnel($id_user)
1493 1511
 {
@@ -1552,6 +1570,12 @@  discard block
 block discarded – undo
1552 1570
 class absences_notifyOnVacationChangeCls
1553 1571
 {
1554 1572
 
1573
+	/**
1574
+	 * @param integer $quantity
1575
+	 * @param string $date_begin
1576
+	 * @param string $date_end
1577
+	 * @param string $msg
1578
+	 */
1555 1579
 	public function __construct($quantity, $date_begin,  $date_end, $msg)
1556 1580
 	{
1557 1581
 		global $babDB;
@@ -2214,6 +2238,7 @@  discard block
 block discarded – undo
2214 2238
 
2215 2239
 /**
2216 2240
  * Clear calendar data for user
2241
+ * @param integer $id_user
2217 2242
  */
2218 2243
 function absences_clearUserCalendar($id_user = NULL) {
2219 2244
 	if (NULL === $id_user) {
@@ -2230,6 +2255,9 @@  discard block
 block discarded – undo
2230 2255
 
2231 2256
 /**
2232 2257
  * si type2 est prioritaire, return true
2258
+ * @param string $type1
2259
+ * @param string $type2
2260
+ * @param boolean $vacation_is_free
2233 2261
  */
2234 2262
 function absences_compare($type1, $type2, $vacation_is_free) {
2235 2263
 
@@ -2427,6 +2455,9 @@  discard block
 block discarded – undo
2427 2455
 
2428 2456
 
2429 2457
 
2458
+/**
2459
+ * @param string $query
2460
+ */
2430 2461
 function absences_group_insert($query, $exec = false) {
2431 2462
 	static $values = array();
2432 2463
 	if ($query) {
@@ -2562,6 +2593,9 @@  discard block
 block discarded – undo
2562 2593
 	return bab_longDate($timestamp, true);
2563 2594
 }
2564 2595
 
2596
+/**
2597
+ * @param null|integer $timestamp
2598
+ */
2565 2599
 function absences_shortDate($timestamp) {
2566 2600
 	if (empty($timestamp)) {
2567 2601
 		return '';
@@ -2573,6 +2607,9 @@  discard block
 block discarded – undo
2573 2607
 
2574 2608
 class absences_RequestDelete
2575 2609
 {
2610
+    /**
2611
+     * @param integer $folder
2612
+     */
2576 2613
     public static function direct(absences_Request $request, $folder)
2577 2614
     {
2578 2615
         if ($folder)
@@ -2603,6 +2640,9 @@  discard block
 block discarded – undo
2603 2640
         return $allDeleted;
2604 2641
     }
2605 2642
     
2643
+    /**
2644
+     * @param integer $folder
2645
+     */
2606 2646
     public static function withApproval(absences_Request $request, $folder)
2607 2647
     {
2608 2648
         if ($folder)
@@ -2637,7 +2677,7 @@  discard block
 block discarded – undo
2637 2677
  * @param int $id_request
2638 2678
  * @param int $folder
2639 2679
  * @param int $rfrom            1 if the delete request is created by a manager from back office (need to be secured)
2640
- * @return bool
2680
+ * @return boolean|null
2641 2681
  */
2642 2682
 function absences_delete_request($id_request, $folder = 0, $rfrom = 0)
2643 2683
 {
@@ -3186,6 +3226,9 @@  discard block
 block discarded – undo
3186 3226
 	}
3187 3227
 
3188 3228
 
3229
+	/**
3230
+	 * @param string $name
3231
+	 */
3189 3232
 	public function param($name, $default = '')
3190 3233
 	{
3191 3234
 		if (isset($_REQUEST[$name]))
Please login to merge, or discard this patch.
programs/utilit/entry.class.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
 	 * Save entry to database
500 500
 	 * without validity checking
501 501
 	 *
502
-	 * @return bool
502
+	 * @return boolean|null
503 503
 	 */
504 504
 	public function save()
505 505
 	{
@@ -865,7 +865,7 @@  discard block
 block discarded – undo
865 865
 	/**
866 866
 	 * Add quantity to startdate only on working periods
867 867
 	 *
868
-	 * @param BAB_DateTime $startdate
868
+	 * @param BAB_DateTime $startDate
869 869
 	 * @param float $quantity  days
870 870
 	 *
871 871
 	 * @return BAB_DateTime
@@ -1975,6 +1975,8 @@  discard block
 block discarded – undo
1975 1975
 
1976 1976
 
1977 1977
 	/**
1978
+	 * @param integer $rfrom
1979
+	 * @param integer $ide
1978 1980
 	 * @return string
1979 1981
 	 */
1980 1982
 	public function getEditUrl($rfrom, $ide = null)
@@ -2503,7 +2505,7 @@  discard block
 block discarded – undo
2503 2505
     }
2504 2506
     
2505 2507
     /**
2506
-     * @return array
2508
+     * @return string[]
2507 2509
      */
2508 2510
     protected function getWhere()
2509 2511
     {
Please login to merge, or discard this patch.
programs/utilit/exportentry.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -519,7 +519,7 @@
 block discarded – undo
519 519
     
520 520
 
521 521
     /**
522
-     * @return absences_Agent[]
522
+     * @return absences_AgentIterator
523 523
      */
524 524
     private function getUsersWithoutRequests()
525 525
     {
Please login to merge, or discard this patch.
programs/vacuser.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -1792,6 +1792,10 @@  discard block
 block discarded – undo
1792 1792
 	
1793 1793
 	
1794 1794
 	
1795
+	/**
1796
+	 * @param string $old_date_begin
1797
+	 * @param string $old_date_end
1798
+	 */
1795 1799
 	private static function getPeriodSpanOnEdit($old_date_begin, $old_date_end, BAB_DateTime $date_begin, BAB_DateTime $date_end)
1796 1800
 	{
1797 1801
 	    $old_date_begin_obj = BAB_DateTime::fromIsoDateTime($old_date_begin);
@@ -1818,6 +1822,8 @@  discard block
 block discarded – undo
1818 1822
 	 * @param int $id_request
1819 1823
 	 * @param BAB_DateTime | null $old_date_begin_obj
1820 1824
 	 * @param BAB_DateTime | null $old_date_end_obj
1825
+	 * @param null|BAB_DateTime $old_date_begin_obj
1826
+	 * @param null|BAB_DateTime $old_date_end_obj
1821 1827
 	 */
1822 1828
 	private static function saveInCalendar($id_request, $id, $old_date_begin_obj, $old_date_end_obj)
1823 1829
 	{
@@ -2049,6 +2055,10 @@  discard block
 block discarded – undo
2049 2055
 	
2050 2056
 	
2051 2057
 	
2058
+	/**
2059
+	 * @param absences_Entry $entry
2060
+	 * @param boolean $modify
2061
+	 */
2052 2062
 	protected static function addPrevisionalMovement($entry, $modify)
2053 2063
 	{
2054 2064
 	    if ($modify)
@@ -2062,6 +2072,10 @@  discard block
 block discarded – undo
2062 2072
 	}
2063 2073
 	
2064 2074
 	
2075
+	/**
2076
+	 * @param absences_Entry $entry
2077
+	 * @param boolean $modify
2078
+	 */
2065 2079
 	protected static function addNoApprovalMovement($entry, $modify)
2066 2080
 	{
2067 2081
 	    if ($modify)
@@ -2807,6 +2821,9 @@  discard block
 block discarded – undo
2807 2821
 
2808 2822
 
2809 2823
 
2824
+/**
2825
+ * @param integer $row
2826
+ */
2810 2827
 function absences_personalRights_addRightInTable(Widget_TableView $table, $row, absences_Right $right, absences_AgentRight $agentRight)
2811 2828
 {
2812 2829
     $W = bab_Widgets();
Please login to merge, or discard this patch.