original_string: public function marshal($value)
      {
          if ($value === null) {
              return null;
          }
          if ($value === 'true') {
              return true;
          }
          if ($value === 'false') {
              return false;
          }
          if (!is_scalar($value)) {
              return null;
          }
  
          return !empty($value);
      }
code: public function marshal($value)
      {
          if ($value === null) {
              return null;
          }
          if ($value === 'true') {
              return true;
          }
          if ($value === 'false') {
              return false;
          }
          if (!is_scalar($value)) {
              return null;
          }
  
          return !empty($value);
      }
code_tokens: public function marshal ( $ value ) { if ( $ value === null ) { return null ; } if ( $ value === 'true' ) { return true ; } if ( $ value === 'false' ) { return false ; } if ( ! is_scalar ( $ value ) ) { return null ; } return ! empty ( $ value ) ; }
docstring: Marshalls request data into PHP booleans.
  
  @param mixed $value The value to convert.
  @return bool|null Converted value.
docstring_tokens: Marshalls request data into PHP booleans .