GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( fc2f08...10d0e6 )
by
unknown
61:03
created
plugins/IM/include/jabbex_api/lib/group_mng/Openfire.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -44,9 +44,17 @@
 block discarded – undo
44 44
 	public function set_group_short_name($short_name){
45 45
 		$this->group_short_name = $short_name;
46 46
 	}
47
+
48
+	/**
49
+	 * @param string $full_name
50
+	 */
47 51
 	public function set_group_full_name($full_name){
48 52
 		$this->group_full_name = $full_name;
49 53
 	}
54
+
55
+	/**
56
+	 * @param Jabber $jab
57
+	 */
50 58
 	public function set_jab_connector(&$jab){
51 59
 		$this->jab = &$jab;
52 60
 	}
Please login to merge, or discard this patch.
plugins/IM/include/jabbex_api/lib/jabberclass-0.9/class_Jabber.php 1 patch
Doc Comments   +48 added lines patch added patch discarded remove patch
@@ -188,6 +188,10 @@  discard block
 block discarded – undo
188 188
 	if (function_exists('mhash')) { // is the Mhash extension installed?
189 189
 
190 190
 		// implement the sha1() function using mhash
191
+
192
+		/**
193
+		 * @param string $str
194
+		 */
191 195
 		function sha1($str) {
192 196
 			return bin2hex(mhash(MHASH_SHA1, $str));
193 197
 		}
@@ -360,12 +364,20 @@  discard block
 block discarded – undo
360 364
 	
361 365
 
362 366
 	// returns a unique ID to be sent with packets
367
+
368
+	/**
369
+	 * @param string $prefix
370
+	 */
363 371
 	function _unique_id($prefix) {
364 372
 		$this->_unique_counter++;
365 373
 		return $prefix."_" . md5(time() . $this->_remote_ip . $this->_unique_counter);
366 374
 	}
367 375
 	
368 376
 	// public method for creating a log entry
377
+
378
+	/**
379
+	 * @param string $msg
380
+	 */
369 381
 	function log($msg,$level=1) {
370 382
 		$this->_log($msg,$level);
371 383
 	}
@@ -449,6 +461,10 @@  discard block
 block discarded – undo
449 461
 	//                    specify the correct IP to connect to here
450 462
 	//	
451 463
 	//
464
+
465
+	/**
466
+	 * @param string $server_host
467
+	 */
452 468
 	function connect($server_host,$server_port=5222,$connect_timeout=null,$alternate_ip=false) {
453 469
 		
454 470
 		if (is_null($connect_timeout)) $connect_timeout = DEFAULT_CONNECT_TIMEOUT;
@@ -545,11 +561,20 @@  discard block
 block discarded – undo
545 561
 	
546 562
 	// sets a user's presence (when simply used to set your availability, it's more convenient
547 563
 	// to call this way, as usually only the first 2 fields are necessary)
564
+
565
+	/**
566
+	 * @param string $show
567
+	 * @param string $status
568
+	 */
548 569
 	function set_presence($show = NULL, $status = NULL, $to = NULL, $priority = NULL) {
549 570
 		return $this->send_presence(NULL,$to,$show,$status,$priority);
550 571
 	}
551 572
 	
552 573
 	// sends presence to another contact/entity
574
+
575
+	/**
576
+	 * @param string $type
577
+	 */
553 578
 	function send_presence($type = NULL, $to = NULL, $show = NULL, $status = NULL, $priority = NULL) {
554 579
 		$xml = "<presence";
555 580
 		$xml .= ($to) ? " to='$to'" : '';
@@ -586,6 +611,9 @@  discard block
 block discarded – undo
586 611
 	   return strtr($string, $trans);
587 612
 	}	
588 613
 	
614
+	/**
615
+	 * @param string $payload
616
+	 */
589 617
 	function message($to, $type = "normal", $id = NULL, $body = NULL, $thread = NULL, $subject = NULL, $payload = NULL, $raw = false) {
590 618
 		if ($to && ($body || $subject || $payload)) {
591 619
 			if (!$id) $id = $this->_unique_id("msg");
@@ -939,6 +967,11 @@  discard block
 block discarded – undo
939 967
 	
940 968
 	// Sets a handler for a particular IQ packet ID (and optionally packet type).
941 969
 	// Assumes that $method is the name of a method of $this
970
+
971
+	/**
972
+	 * @param string $method
973
+	 * @param string $type
974
+	 */
942 975
 	function _set_iq_handler($method,$id,$type=NULL) {
943 976
 		if (is_null($type)) $type = "_all";
944 977
 		$this->_iq_handlers[$id][$type] = array(&$this,$method);
@@ -1477,6 +1510,10 @@  discard block
 block discarded – undo
1477 1510
 	}
1478 1511
 	
1479 1512
 	// request software version from a JabberID
1513
+
1514
+	/**
1515
+	 * @param string $jid
1516
+	 */
1480 1517
 	function request_version($jid) {
1481 1518
 		
1482 1519
 		$this->_log('Requesting version information from '.$jid);
@@ -2048,6 +2085,9 @@  discard block
 block discarded – undo
2048 2085
 		return $transport;
2049 2086
 	}
2050 2087
 		
2088
+	/**
2089
+	 * @param string $domain
2090
+	 */
2051 2091
 	function get_transport($domain) {
2052 2092
 		$transport = @$this->services[$domain]["type"];
2053 2093
 		return $this->standardize_transport($transport);
@@ -2060,6 +2100,11 @@  discard block
 block discarded – undo
2060 2100
 	// ==== Packet Handling & Connection Methods =============================================
2061 2101
 
2062 2102
 	// generates and transmits an IQ packet
2103
+
2104
+	/**
2105
+	 * @param string $xmlns
2106
+	 * @param string $from
2107
+	 */
2063 2108
 	function _send_iq($to = NULL, $type = 'get', $id = NULL, $xmlns = NULL, $payload = NULL, $from = NULL) {
2064 2109
 		if (!preg_match("/^(get|set|result|error)$/", $type)) {
2065 2110
 			unset($type);
@@ -2166,6 +2211,9 @@  discard block
 block discarded – undo
2166 2211
 		return array_shift($this->_packet_queue);
2167 2212
 	}
2168 2213
 	
2214
+	/**
2215
+	 * @param string $incoming
2216
+	 */
2169 2217
 	function _split_incoming($incoming) {
2170 2218
 		$temp = preg_split("/<(message|iq|presence|stream)(?=[\:\s\>])/", $incoming, -1, PREG_SPLIT_DELIM_CAPTURE);
2171 2219
 		$array = array();
Please login to merge, or discard this patch.
plugins/IM/include/jabbex_api/lib/jabberclass-0.9/class_SHA1Library.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -129,6 +129,10 @@  discard block
 block discarded – undo
129 129
 	 * Perform the appropriate triplet combination function for the current
130 130
 	 * iteration
131 131
 	 */
132
+
133
+	/**
134
+	 * @param integer $t
135
+	 */
132 136
 	function sha1_ft($t, $b, $c, $d)
133 137
 	{
134 138
 		if($t < 20) return ($b & $c) | ((~$b) & $d);
@@ -142,6 +146,10 @@  discard block
 block discarded – undo
142 146
 	 * Silly php does not understand the inline-if operator well when nested,
143 147
 	 * so that's why it's ()ed now.
144 148
 	 */
149
+
150
+	/**
151
+	 * @param integer $t
152
+	 */
145 153
 	function sha1_kt($t)
146 154
 	{
147 155
 		return ($t < 20) ?  1518500249 : (($t < 40) ?  1859775393 :
@@ -183,6 +191,10 @@  discard block
 block discarded – undo
183 191
 	/*
184 192
 	 * Bitwise rotate a 32-bit number to the left.
185 193
 	 */
194
+
195
+	/**
196
+	 * @param integer $cnt
197
+	 */
186 198
 	function rol($num, $cnt)
187 199
 	{
188 200
 		return ($num << $cnt) | $this->zerofill_rightshift($num, (32 - $cnt));
@@ -254,6 +266,9 @@  discard block
 block discarded – undo
254 266
 
255 267
 if ( !function_exists('sha1') )
256 268
 {
269
+	/**
270
+	 * @param string $string
271
+	 */
257 272
 	function sha1( $string, $raw_output = false )
258 273
 	{
259 274
 		$library = &new SHA1Library();
Please login to merge, or discard this patch.
plugins/IM/include/jabbex_api/lib/jabberclass-0.9/class_XMLParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
 	// _xml_depth()
74 74
 	// (c) Hans Anderson / http://www.hansanderson.com/php/xml/
75 75
 
76
+	/**
77
+	 * @param integer $i
78
+	 */
76 79
 	function _xml_depth($vals, &$i) {
77 80
 		$children = array();
78 81
 
Please login to merge, or discard this patch.
plugins/IM/www/webmuc/lib/jsjac/utils/packer/class.JavaScriptPacker.php 1 patch
Doc Comments   +38 added lines patch added patch discarded remove patch
@@ -102,6 +102,10 @@  discard block
 block discarded – undo
102 102
 	}
103 103
 	
104 104
 	// apply all parsing routines
105
+
106
+	/**
107
+	 * @param string $script
108
+	 */
105 109
 	private function _pack($script) {
106 110
 		for ($i = 0; isset($this->_parsers[$i]); $i++) {
107 111
 			$script = call_user_func(array(&$this,$this->_parsers[$i]), $script);
@@ -111,6 +115,10 @@  discard block
 block discarded – undo
111 115
 	
112 116
 	// keep a list of parsing functions, they'll be executed all at once
113 117
 	private $_parsers = array();
118
+
119
+	/**
120
+	 * @param string $parser
121
+	 */
114 122
 	private function _addParser($parser) {
115 123
 		$this->_parsers[] = $parser;
116 124
 	}
@@ -196,6 +204,10 @@  discard block
 block discarded – undo
196 204
 		}
197 205
 	}
198 206
 	
207
+	/**
208
+	 * @param string $regexp
209
+	 * @param string $encode
210
+	 */
199 211
 	private function _analyze($script, $regexp, $encode) {
200 212
 		// analyse
201 213
 		// retreive all words in the script
@@ -362,6 +374,10 @@  discard block
 block discarded – undo
362 374
 	}
363 375
 	
364 376
 	// mmm.. ..which one do i need ??
377
+
378
+	/**
379
+	 * @param integer $ascii
380
+	 */
365 381
 	private function _getEncoder($ascii) {
366 382
 		return $ascii > 10 ? $ascii > 36 ? $ascii > 62 ?
367 383
 		       '_encode95' : '_encode62' : '_encode36' : '_encode10';
@@ -404,6 +420,9 @@  discard block
 block discarded – undo
404 420
 		return $res . chr(($charCode % $this->_encoding) + 161);
405 421
 	}
406 422
 	
423
+	/**
424
+	 * @param string $string
425
+	 */
407 426
 	private function _safeRegExp($string) {
408 427
 		return '/'.preg_replace('/\$/', '\\\$', $string).'/';
409 428
 	}
@@ -430,6 +449,9 @@  discard block
 block discarded – undo
430 449
 	}
431 450
 	
432 451
 	
452
+	/**
453
+	 * @param string $aName
454
+	 */
433 455
 	private function _getJSFunction($aName) {
434 456
 		if (defined('self::JSFUNCTION'.$aName))
435 457
 			return constant('self::JSFUNCTION'.$aName);
@@ -552,6 +574,9 @@  discard block
 block discarded – undo
552 574
 	private $QUOTE = '/\'/';
553 575
 	private $DELETED = '/\\x01[^\\x01]*\\x01/';//g
554 576
 	
577
+	/**
578
+	 * @param string $expression
579
+	 */
555 580
 	public function add($expression, $replacement = '') {
556 581
 		// count the number of sub-expressions
557 582
 		//  - add one because each pattern is itself a sub-expression
@@ -685,6 +710,10 @@  discard block
 block discarded – undo
685 710
 	private $buffer;
686 711
 	
687 712
 	// encode escaped characters
713
+
714
+	/**
715
+	 * @param string $escapeChar
716
+	 */
688 717
 	private function _escape($string, $escapeChar) {
689 718
 		if ($escapeChar) {
690 719
 			$this->buffer = $escapeChar;
@@ -704,6 +733,10 @@  discard block
 block discarded – undo
704 733
 	}
705 734
 	
706 735
 	// decode escaped characters
736
+
737
+	/**
738
+	 * @param string $escapeChar
739
+	 */
707 740
 	private function _unescape($string, $escapeChar) {
708 741
 		if ($escapeChar) {
709 742
 			$regexp = '/'.'\\'.$escapeChar.'/';
@@ -729,6 +762,11 @@  discard block
 block discarded – undo
729 762
 		return $this->buffer['escapeChar'] . $temp;
730 763
 	}
731 764
 	
765
+	/**
766
+	 * @param string $string
767
+	 *
768
+	 * @return string
769
+	 */
732 770
 	private function _internalEscape($string) {
733 771
 		return preg_replace($this->ESCAPE, '', $string);
734 772
 	}
Please login to merge, or discard this patch.
plugins/ldap/include/LDAP.class.php 1 patch
Doc Comments   +23 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,6 +129,11 @@  discard block
 block discarded – undo
129 129
         }
130 130
     }
131 131
 
132
+    /**
133
+     * @param string $servers
134
+     * @param string $binddn
135
+     * @param string $bindpwd
136
+     */
132 137
     private function authenticatedBindConnect($servers, $binddn, $bindpwd) {
133 138
         $ds = false;
134 139
         foreach (split('[,;]', $servers) as $ldap_server) {
@@ -332,7 +337,7 @@  discard block
 block discarded – undo
332 337
      * Search a specific Distinguish Name
333 338
      *
334 339
      * @param String $dn         DN to retreive
335
-     * @param Array  $attributes Restrict the LDAP fields to fetch
340
+     * @param string[]  $attributes Restrict the LDAP fields to fetch
336 341
      * 
337 342
      * @return LDAPResultIterator
338 343
      */
@@ -438,7 +443,7 @@  discard block
 block discarded – undo
438 443
      * @param String   $name      Name of the group to look for
439 444
      * @param Integer  $sizeLimit Limit the amount of result sent
440 445
      * 
441
-     * @return LDAPResultIterator
446
+     * @return AppendIterator
442 447
      */
443 448
     function searchUserAsYouType($name, $sizeLimit, $validEmail=false) {
444 449
         $apIt  = new AppendIterator();
@@ -529,6 +534,9 @@  discard block
 block discarded – undo
529 534
         }
530 535
     }
531 536
 
537
+    /**
538
+     * @param string $dn
539
+     */
532 540
     public function add($dn, array $info) {
533 541
         $ds = $this->getWriteConnexion();
534 542
         if (@ldap_add($ds, $dn, $info)) {
@@ -537,6 +545,9 @@  discard block
 block discarded – undo
537 545
         throw new LDAP_Exception_AddException(ldap_error($ds), $dn);
538 546
     }
539 547
 
548
+    /**
549
+     * @param string $dn
550
+     */
540 551
     public function update($dn, array $info) {
541 552
         $ds = $this->getWriteConnexion();
542 553
         if (@ldap_modify($ds, $dn, $info)) {
@@ -545,6 +556,9 @@  discard block
 block discarded – undo
545 556
         throw new LDAP_Exception_UpdateException(ldap_error($ds), $dn);
546 557
     }
547 558
 
559
+    /**
560
+     * @param string $dn
561
+     */
548 562
     public function delete($dn) {
549 563
         $ds = $this->getWriteConnexion();
550 564
         if (@ldap_delete($ds, $dn)) {
@@ -553,10 +567,17 @@  discard block
 block discarded – undo
553 567
         throw new LDAP_Exception_DeleteException(ldap_error($ds), $dn);
554 568
     }
555 569
 
570
+    /**
571
+     * @param string $old_dn
572
+     * @param string $new_root_dn
573
+     */
556 574
     public function renameUser($old_dn, $new_root_dn) {
557 575
         return $this->rename($old_dn, $new_root_dn, $this->getLDAPParam('write_people_dn'));
558 576
     }
559 577
 
578
+    /**
579
+     * @param string $newparent
580
+     */
560 581
     private function rename($old_dn, $newrdn, $newparent) {
561 582
         $ds = $this->getWriteConnexion();
562 583
         if (@ldap_rename($ds, $old_dn, $newrdn, $newparent, true)) {
Please login to merge, or discard this patch.
plugins/ldap/include/LDAP_CleanUpManager.class.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
      */
29 29
     private $retentionPeriod;
30 30
 
31
+    /**
32
+     * @param string $period
33
+     */
31 34
     public function __construct($period) {
32 35
         $this->retentionPeriod = $period;
33 36
     }
@@ -112,8 +115,9 @@  discard block
 block discarded – undo
112 115
      * Retrieve a collection of active projects of a given user
113 116
      *
114 117
      * @param Integer userId
118
+     * @param PFUser $userId
115 119
      *
116
-     * @return Array
120
+     * @return Project[]
117 121
      */
118 122
     private function getUserProjects($userId) {
119 123
         $pm = $this->_getProjectManager();
Please login to merge, or discard this patch.
plugins/ldap/include/LDAP_DirectoryCleanUpDao.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,8 @@  discard block
 block discarded – undo
32 32
      * @param Integer userId
33 33
      *
34 34
      * @param Integer deletionDate date on which suspended user will be deleted
35
+     * @param integer $userId
36
+     * @param double $deletionDate
35 37
      *
36 38
      * @return Boolean
37 39
      */
@@ -47,6 +49,7 @@  discard block
 block discarded – undo
47 49
      * @param Integer userId
48 50
      *
49 51
      * @param Integer deletionDate
52
+     * @param integer $userId
50 53
      *
51 54
      * @return Boolean
52 55
      */
Please login to merge, or discard this patch.
plugins/ldap/include/LDAP_DirectorySynchronization.class.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -148,6 +148,8 @@  discard block
 block discarded – undo
148 148
     /**
149 149
      * Wrapper for LDAP_SyncReminderNotificationManager object
150 150
      *
151
+     * @param ProjectManager $projectManager
152
+     * @param UserManager $userManager
151 153
      * @return LDAP_SyncReminderNotificationManager
152 154
      */
153 155
     protected function getLdapSyncReminderNotificationManager($projectManager, $userManager) {
@@ -173,6 +175,9 @@  discard block
 block discarded – undo
173 175
         return LDAP_UserSync::instance();
174 176
     }
175 177
 
178
+    /**
179
+     * @param string $retentionPeriod
180
+     */
176 181
     protected function getLdapSyncNotificationManager(ProjectManager $projectManager, $retentionPeriod){
177 182
         return new LDAP_SyncNotificationManager($projectManager, $retentionPeriod);
178 183
     }
Please login to merge, or discard this patch.