Completed
Pull Request — master (#532)
06:37
created
functions/classes/class.Radius.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -355,30 +355,45 @@  discard block
 block discarded – undo
355 355
     }
356 356
 
357 357
 
358
+    /**
359
+     * @param integer $packet_code
360
+     */
358 361
     function SetPacketCodeToSend($packet_code)
359 362
     {
360 363
         $this->_radius_packet_to_send = $packet_code;
361 364
     }
362 365
 
363 366
 
367
+    /**
368
+     * @param boolean $debug_mode
369
+     */
364 370
     function SetDebugMode($debug_mode)
365 371
     {
366 372
         $this->_debug_mode = (TRUE === $debug_mode);
367 373
     }
368 374
 
369 375
 
376
+    /**
377
+     * @param string $ip_radius_server
378
+     */
370 379
     function SetIpRadiusServer($ip_radius_server)
371 380
     {
372 381
         $this->_ip_radius_server = gethostbyname($ip_radius_server);
373 382
     }
374 383
 
375 384
 
385
+    /**
386
+     * @param string $shared_secret
387
+     */
376 388
     function SetSharedSecret($shared_secret)
377 389
     {
378 390
         $this->_shared_secret = $shared_secret;
379 391
     }
380 392
 
381 393
 
394
+    /**
395
+     * @param string $radius_suffix
396
+     */
382 397
     function SetRadiusSuffix($radius_suffix)
383 398
     {
384 399
         $this->_radius_suffix = $radius_suffix;
@@ -468,6 +483,9 @@  discard block
 block discarded – undo
468 483
     }
469 484
 
470 485
 
486
+    /**
487
+     * @param integer $authentication_port
488
+     */
471 489
     function SetAuthenticationPort($authentication_port)
472 490
     {
473 491
         if ((intval($authentication_port) > 0) && (intval($authentication_port) < 65536))
@@ -477,6 +495,9 @@  discard block
 block discarded – undo
477 495
     }
478 496
 
479 497
 
498
+    /**
499
+     * @param integer $accounting_port
500
+     */
480 501
     function SetAccountingPort($accounting_port)
481 502
     {
482 503
         if ((intval($accounting_port) > 0) && (intval($accounting_port) < 65536))
@@ -541,6 +562,9 @@  discard block
 block discarded – undo
541 562
     }
542 563
 
543 564
 
565
+    /**
566
+     * @param integer $info_index
567
+     */
544 568
     function GetRadiusPacketInfo($info_index)
545 569
     {
546 570
         if (isset($this->_radius_packet_info[intval($info_index)]))
@@ -567,6 +591,9 @@  discard block
 block discarded – undo
567 591
     }
568 592
 
569 593
 
594
+    /**
595
+     * @param string $debug_info
596
+     */
570 597
     function DebugInfo($debug_info)
571 598
     {
572 599
         if ($this->_debug_mode)
@@ -577,6 +604,9 @@  discard block
 block discarded – undo
577 604
     }
578 605
 
579 606
 
607
+    /**
608
+     * @param integer $type
609
+     */
580 610
     function SetAttribute($type, $value)
581 611
     {
582 612
         $attribute_index = -1;
@@ -631,6 +661,10 @@  discard block
 block discarded – undo
631 661
     }
632 662
 
633 663
 
664
+    /**
665
+     * @param string $attribute_raw_value
666
+     * @param integer $attribute_format
667
+     */
634 668
     function DecodeAttribute($attribute_raw_value, $attribute_format)
635 669
     {
636 670
         $attribute_value = NULL;
Please login to merge, or discard this patch.
functions/classes/class.Result.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 *
72 72
 	 * @access public
73 73
 	 * @param string $text (default: "No value provided")
74
-	 * @return void
74
+	 * @return string
75 75
 	 */
76 76
 	public function show_cli_message ($text="No value provided") {
77 77
 		// array - join
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
 	 * Show GUI result
96 96
 	 *
97 97
 	 * @access public
98
-	 * @param mixed $class
99
-	 * @param mixed $text
100
-	 * @param mixed $popup
101
-	 * @param mixed $popup2
102
-	 * @return void
98
+	 * @param string $class
99
+	 * @param string $text
100
+	 * @param boolean $popup
101
+	 * @param boolean $popup2
102
+	 * @return string
103 103
 	 */
104 104
 	public function show_message ($class, $text, $popup, $popup2) {
105 105
 		// format if array
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * Exists with exception for API
145 145
 	 *
146 146
 	 * @access public
147
-	 * @param mixed $content
147
+	 * @param string $content
148 148
 	 * @return void
149 149
 	 */
150 150
 	public function throw_exception ($content) {
Please login to merge, or discard this patch.
functions/classes/class.Scan.php 1 patch
Doc Comments   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * Returns all possible ping types / apps
63 63
 	 *
64 64
 	 * @access public
65
-	 * @return array
65
+	 * @return string[]
66 66
 	 */
67 67
 	public function ping_fetch_types () {
68 68
 		return array("ping", "pear", "fping");
@@ -152,7 +152,6 @@  discard block
 block discarded – undo
152 152
 	 * @param mixed $address
153 153
 	 * @param int $count (default: 1)
154 154
 	 * @param int $timeout (default: 1)
155
-	 * @param bool $exit (default: false)
156 155
 	 * @return void
157 156
 	 */
158 157
 	public function ping_address ($address, $count=1, $timeout = 1) {
@@ -178,7 +177,7 @@  discard block
 block discarded – undo
178 177
 	 *
179 178
 	 * @access protected
180 179
 	 * @param ip $address
181
-	 * @return void
180
+	 * @return null|integer
182 181
 	 */
183 182
 	protected function ping_address_method_ping ($address) {
184 183
 		# verify ping path
@@ -276,8 +275,7 @@  discard block
 block discarded – undo
276 275
 	 *	fping cannot be run from web, it needs root privileges to be able to open raw socket :/
277 276
 	 *
278 277
 	 * @access public
279
-	 * @param mixed $subnet 	//CIDR
280
-	 * @return void
278
+	 * @return null|integer
281 279
 	 */
282 280
 	public function ping_address_method_fping ($address) {
283 281
 		# verify ping path
@@ -329,7 +327,7 @@  discard block
 block discarded – undo
329 327
 	 *	fping cannot be run from web, it needs root privileges to be able to open raw socket :/
330 328
 	 *
331 329
 	 * @access public
332
-	 * @param mixed $subnet 	//CIDR
330
+	 * @param mixed $subnet_cidr 	//CIDR
333 331
 	 * @return void
334 332
 	 */
335 333
 	public function ping_address_method_fping_subnet ($subnet_cidr, $return_result = false) {
@@ -377,8 +375,8 @@  discard block
 block discarded – undo
377 375
 	 * Explains invalid error codes
378 376
 	 *
379 377
 	 * @access public
380
-	 * @param mixed $code
381
-	 * @return void
378
+	 * @param null|integer $code
379
+	 * @return string|false
382 380
 	 */
383 381
 	public function ping_exit_explain ($code) {
384 382
 		# fetch explain codes
@@ -396,7 +394,7 @@  discard block
 block discarded – undo
396 394
 	 *	extend if needed for future scripts
397 395
 	 *
398 396
 	 * @access public
399
-	 * @return void
397
+	 * @return string[]
400 398
 	 */
401 399
 	public function ping_set_exit_code_explains () {
402 400
 		$explain_codes[0]  = "SUCCESS";
@@ -523,6 +521,7 @@  discard block
 block discarded – undo
523 521
 	 *
524 522
 	 * @access public
525 523
 	 * @param mixed $subnetId
524
+	 * @param boolean $die
526 525
 	 * @return void
527 526
 	 */
528 527
 	public function prepare_addresses_to_discover_subnetId ($subnetId, $die) {
Please login to merge, or discard this patch.
functions/classes/class.Thread.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
248 248
 	/**
249 249
 	* alias of stop();
250 250
 	*
251
-	* @return boolean
251
+	* @return boolean|null
252 252
 	*/
253 253
     public function kill( $_signal = SIGKILL, $_wait = false ) {
254 254
         return $this->stop( $_signal, $_wait );
Please login to merge, or discard this patch.
functions/classes/class.Install.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 * @param bool $drop_database (default: false)
68 68
 	 * @param bool $create_database (default: false)
69 69
 	 * @param bool $create_grants (default: false)
70
-	 * @return void
70
+	 * @return boolean|null
71 71
 	 */
72 72
 	public function install_database ($rootuser, $rootpass, $drop_database = false, $create_database = false, $create_grants = false) {
73 73
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 	 * Execute files installation
146 146
 	 *
147 147
 	 * @access private
148
-	 * @return void
148
+	 * @return false|null
149 149
 	 */
150 150
 	private function install_database_execute () {
151 151
 	    # import SCHEMA file queries
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	 *
198 198
 	 * @access public
199 199
 	 * @param bool $redirect
200
-	 * @return void
200
+	 * @return boolean
201 201
 	 */
202 202
 	public function check_db_connection ($redirect = false) {
203 203
 		# try to connect
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	 *
218 218
 	 * @access public
219 219
 	 * @param mixed $table
220
-	 * @return void
220
+	 * @return boolean
221 221
 	 */
222 222
 	public function check_table ($table, $redirect = false) {
223 223
 		# set query
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 	 * @param mixed $adminpass
285 285
 	 * @param mixed $siteTitle
286 286
 	 * @param mixed $siteURL
287
-	 * @return void
287
+	 * @return boolean
288 288
 	 */
289 289
 	function postauth_update($adminpass, $siteTitle, $siteURL) {
290 290
 		# update Admin pass
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 	 *
301 301
 	 * @access public
302 302
 	 * @param mixed $adminpass
303
-	 * @return void
303
+	 * @return boolean
304 304
 	 */
305 305
 	public function postauth_update_admin_pass ($adminpass) {
306 306
 		try { $this->Database->updateObject("users", array("password"=>$adminpass, "passChange"=>"No","username"=>"Admin"), "username"); }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 	 * @access private
315 315
 	 * @param mixed $siteTitle
316 316
 	 * @param mixed $siteURL
317
-	 * @return void
317
+	 * @return boolean
318 318
 	 */
319 319
 	private function postauth_update_settings ($siteTitle, $siteURL) {
320 320
 		try { $this->Database->updateObject("settings", array("siteTitle"=>$siteTitle, "siteURL"=>$siteURL,"id"=>1), "id"); }
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 	 * Upgrade database checks and executes.
341 341
 	 *
342 342
 	 * @access public
343
-	 * @return void
343
+	 * @return null|boolean
344 344
 	 */
345 345
 	public function upgrade_database () {
346 346
 		# first check version
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 	 * Execute database upgrade.
362 362
 	 *
363 363
 	 * @access private
364
-	 * @return void
364
+	 * @return boolean
365 365
 	 */
366 366
 	private function upgrade_database_execute () {
367 367
 		# set queries
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 	 * Fetch all upgrade queries from DB files
409 409
 	 *
410 410
 	 * @access public
411
-	 * @return void
411
+	 * @return string
412 412
 	 */
413 413
 	public function get_upgrade_queries () {
414 414
 		// save all queries fro UPDATE.sql file
Please login to merge, or discard this patch.
api/controllers/Responses.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,6 @@  discard block
 block discarded – undo
80 80
 	 * Sets header based on provided HTTP code
81 81
 	 *
82 82
 	 * @access private
83
-	 * @param mixed $code
84 83
 	 * @return void
85 84
 	 */
86 85
 	private function set_header () {
@@ -99,7 +98,7 @@  discard block
 block discarded – undo
99 98
 	 *
100 99
 	 * @access public
101 100
 	 * @param mixed $result
102
-	 * @return void
101
+	 * @return string
103 102
 	 */
104 103
 	public function formulate_result ($result) {
105 104
 		// make sure result is array
@@ -210,7 +209,7 @@  discard block
 block discarded – undo
210 209
 	 * Outputs result
211 210
 	 *
212 211
 	 * @access private
213
-	 * @return void
212
+	 * @return string
214 213
 	 */
215 214
 	private function create_result () {
216 215
 		// reorder
@@ -239,7 +238,7 @@  discard block
 block discarded – undo
239 238
 	 * Creates XML result
240 239
 	 *
241 240
 	 * @access private
242
-	 * @return void
241
+	 * @return string|false
243 242
 	 */
244 243
 	private function create_xml () {
245 244
 		// convert whole object to array
@@ -329,7 +328,7 @@  discard block
 block discarded – undo
329 328
 	 * Creates JSON result
330 329
 	 *
331 330
 	 * @access private
332
-	 * @return void
331
+	 * @return string
333 332
 	 */
334 333
 	private function create_json () {
335 334
 		return json_encode((array) $this->result);
Please login to merge, or discard this patch.
api/controllers/User.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 	 * Validates users token from database
331 331
 	 *
332 332
 	 * @access private
333
-	 * @return void
333
+	 * @return boolean
334 334
 	 */
335 335
 	private function validate_user_token () {
336 336
 		// is set
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
 	 * Checks if token has expired
413 413
 	 *
414 414
 	 * @access private
415
-	 * @return void
415
+	 * @return boolean
416 416
 	 */
417 417
 	private function validate_token_expiration () {
418 418
 		return strtotime($this->token_expires) < time() ? true : false;
Please login to merge, or discard this patch.
functions/classes/class.Rackspace.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      * Fetches details about specific rack
153 153
      *
154 154
      * @access public
155
-     * @param mixed $id
155
+     * @param integer $id
156 156
      * @return void
157 157
      */
158 158
     public function fetch_rack_details ($id) {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * Fetches all devices attached to rack
170 170
      *
171 171
      * @access public
172
-     * @param mixed $id
172
+     * @param integer $id
173 173
      * @return void
174 174
      */
175 175
     public function fetch_rack_devices ($id) {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * Set active rack devide.
248 248
      *
249 249
      * @access public
250
-     * @param mixed $id         // device id
250
+     * @param boolean $id         // device id
251 251
      * @return void
252 252
      */
253 253
     public function set_active_rack_device ($id) {
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      *
384 384
      * @access private
385 385
      * @param RackContent $content
386
-     * @param mixed $img
386
+     * @param resource $img
387 387
      * @param mixed $name
388 388
      * @return void
389 389
      */
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
      * getSpace function.
502 502
      *
503 503
      * @access public
504
-     * @return void
504
+     * @return integer
505 505
      */
506 506
     public function getSpace() {
507 507
         return $this->space;
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
      * Checks if item is active
544 544
      *
545 545
      * @access public
546
-     * @return void
546
+     * @return boolean
547 547
      */
548 548
     public function isActive() {
549 549
         return $this->active;
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
      * returns id
615 615
      *
616 616
      * @access public
617
-     * @return void
617
+     * @return integer
618 618
      */
619 619
     public function getId() {
620 620
         return $this->id;
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
      * Checks if item is active
657 657
      *
658 658
      * @access public
659
-     * @return void
659
+     * @return boolean
660 660
      */
661 661
     public function isActive() {
662 662
         return $this->active;
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
      * Returns start position
678 678
      *
679 679
      * @access public
680
-     * @return void
680
+     * @return integer
681 681
      */
682 682
     public function getStartLocation() {
683 683
         return $this->startLocation;
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
      * Gets rack size.
699 699
      *
700 700
      * @access public
701
-     * @return void
701
+     * @return integer
702 702
      */
703 703
     public function getSize() {
704 704
         return $this->size;
Please login to merge, or discard this patch.
functions/classes/class.FirewallZones.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
 	 * Fetches zone mapping from database, depending on id
240 240
 	 *
241 241
 	 * @access public
242
-	 * @param mixed $id
242
+	 * @param string $id
243 243
 	 * @return void
244 244
 	 */
245 245
 	public function get_zone_mapping ($id) {
Please login to merge, or discard this patch.