Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lowercase null everywhere

  • Loading branch information...
commit c2f8dcacf1353276574f24216e97c405069d8501 1 parent 88e77a0
Cristi Burcă authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 Forms.php
18 Forms.php
View
@@ -12,14 +12,14 @@ static function input_with_value( $args, $value ) {
return $field->render( $value );
}
- static function input( $args, $formdata = NULL ) {
+ static function input( $args, $formdata = null ) {
$field = scbFormField::create( $args );
return $field->render( scbForms::get_value( $args['name'], $formdata ) );
}
// Generates a table wrapped in a form
- static function form_table( $rows, $formdata = NULL ) {
+ static function form_table( $rows, $formdata = null ) {
$output = '';
foreach ( $rows as $row )
$output .= self::table_row( $row, $formdata );
@@ -30,7 +30,7 @@ static function form_table( $rows, $formdata = NULL ) {
}
// Generates a form
- static function form( $inputs, $formdata = NULL, $nonce ) {
+ static function form( $inputs, $formdata = null, $nonce ) {
$output = '';
foreach ( $inputs as $input )
$output .= self::input( $input, $formdata );
@@ -41,7 +41,7 @@ static function form( $inputs, $formdata = NULL, $nonce ) {
}
// Generates a table
- static function table( $rows, $formdata = NULL ) {
+ static function table( $rows, $formdata = null ) {
$output = '';
foreach ( $rows as $row )
$output .= self::table_row( $row, $formdata );
@@ -52,7 +52,7 @@ static function table( $rows, $formdata = NULL ) {
}
// Generates a table row
- static function table_row( $args, $formdata = NULL ) {
+ static function table_row( $args, $formdata = null ) {
return self::row_wrap( $args['title'], self::input( $args, $formdata ) );
}
@@ -363,7 +363,7 @@ public function render( $value = null ) {
protected static function _checkbox( $args ) {
$args = wp_parse_args( $args, array(
'value' => true,
- 'desc' => NULL,
+ 'desc' => null,
'checked' => false,
'extra' => array(),
) );
@@ -383,8 +383,8 @@ protected static function _checkbox( $args ) {
// Generate html with the final args
protected static function _input_gen( $args ) {
extract( wp_parse_args( $args, array(
- 'value' => NULL,
- 'desc' => NULL,
+ 'value' => null,
+ 'desc' => null,
'extra' => array()
) ) );
@@ -612,7 +612,7 @@ public function validate( $value ) {
protected function _render( $args ) {
$args = wp_parse_args( $args, array(
'value' => true,
- 'desc' => NULL,
+ 'desc' => null,
'checked' => false,
'extra' => array(),
) );
Please sign in to comment.
Something went wrong with that request. Please try again.