Skip to content

Commit a197aff

Browse files
committed
Fix typo on email type field, complete PHPdoc
1 parent da03cc5 commit a197aff

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

phpwpinfo.php

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,11 @@ public function get_footer( ) {
548548

549549
/**
550550
* Open a HTML table
551+
*
552+
* @param string $title
553+
* @param string $col1
554+
* @param string $col2
555+
* @param string $col3
551556
*/
552557
public function html_table_open( $title = '', $col1 = '', $col2 = '', $col3 = '' ) {
553558
$output = '';
@@ -583,6 +588,12 @@ public function html_table_close( ) {
583588
/**
584589
* Add table row
585590
* Status available : success, error, warning, info
591+
*
592+
* @param string $col1
593+
* @param string $col2
594+
* @param string $col3
595+
* @param string $status
596+
* @param bool $colspan
586597
*/
587598
public function html_table_row( $col1 = '', $col2 = '', $col3 = '', $status = 'success', $colspan = false ) {
588599
$output = '';
@@ -654,7 +665,7 @@ public function html_form_email( ) {
654665
}
655666

656667
$output .= '<form id="form-email" class="form-inline" method="post" action="#form-email">' . "\n";
657-
$output .= '<i class="icon-envelope"></i> <input type="mail" class="input-large" name="mail" placeholder="[email protected]" value="">' . "\n";
668+
$output .= '<i class="icon-envelope"></i> <input type="email" class="input-large" name="mail" placeholder="[email protected]" value="">' . "\n";
658669
$output .= '<button name="test-email" type="submit" class="btn">Send mail</button>' . "\n";
659670
$output .= '<span class="help-inline">Send a test email to check that server is doing its job</span>' . "\n";
660671
$output .= '</form>' . "\n";
@@ -666,8 +677,10 @@ public function html_form_email( ) {
666677

667678
/**
668679
* Stripslashes array
680+
*
669681
* @param [type] $value [description]
670-
* @return [type] [description]
682+
*
683+
* @return array|string [type] [description]
671684
*/
672685
public function stripslashes_deep( $value ) {
673686
return is_array( $value ) ? array_map( array( &$this, 'stripslashes_deep' ), $value ) : stripslashes( $value );
@@ -734,8 +747,11 @@ private function _get_apache_modules( ) {
734747

735748
/**
736749
* Get humans values, take from http://php.net/manual/de/function.filesize.php
737-
* @param integer $bytes [description]
738-
* @return string [description]
750+
*
751+
* @param $size
752+
*
753+
* @return string [description]
754+
* @internal param int $bytes [description]
739755
*/
740756
private function _format_bytes( $size ) {
741757
$units = array( ' B', ' KB', ' MB', ' GB', ' TB' );

0 commit comments

Comments
 (0)