original_string: public static function nulls(array $data, $keys = null)
      {
          if ($keys === null) {
              $keys = array_keys($data);
          }
  
          if (!Arrays::isArray($keys)) {
              $keys = array($keys);
          }
  
          foreach ($keys as $key) {
              if (array_key_exists($key, $data) && empty($data[$key])) {
                  $data[$key] = null;
              }
          }
  
          return $data;
      }
code: public static function nulls(array $data, $keys = null)
      {
          if ($keys === null) {
              $keys = array_keys($data);
          }
  
          if (!Arrays::isArray($keys)) {
              $keys = array($keys);
          }
  
          foreach ($keys as $key) {
              if (array_key_exists($key, $data) && empty($data[$key])) {
                  $data[$key] = null;
              }
          }
  
          return $data;
      }
code_tokens: public static function nulls ( array $ data , $ keys = null ) { if ( $ keys === null ) { $ keys = array_keys ( $ data ) ; } if ( ! Arrays :: isArray ( $ keys ) ) { $ keys = array ( $ keys ) ; } foreach ( $ keys as $ key ) { if ( array_key_exists ( $ key , $ data ) && empty ( $ data [ $ key ] ) ) { $ data [ $ key ] = null ; } } return $ data ; }
docstring: Filter empty values to be treated as nulls
  
  @param mixed $keys
  @param array $data
  
  @return array
docstring_tokens: Filter empty values to be treated as nulls