original_string: public function postProcess()
      {
          foreach ($this->info as $key => $v) {
              if (count((array) $v) == 1) {
                  $this->info[$key] = $v->type;
              } elseif (count((array) $v) == 2 && isset($v->allow_null)) {
                  $this->info[$key] = -$v->type;
              }
          }
      }
code: public function postProcess()
      {
          foreach ($this->info as $key => $v) {
              if (count((array) $v) == 1) {
                  $this->info[$key] = $v->type;
              } elseif (count((array) $v) == 2 && isset($v->allow_null)) {
                  $this->info[$key] = -$v->type;
              }
          }
      }
code_tokens: public function postProcess ( ) { foreach ( $ this -> info as $ key => $ v ) { if ( count ( ( array ) $ v ) == 1 ) { $ this -> info [ $ key ] = $ v -> type ; } elseif ( count ( ( array ) $ v ) == 2 && isset ( $ v -> allow_null ) ) { $ this -> info [ $ key ] = - $ v -> type ; } } }
docstring: Replaces any stdClass that only has the type property with type integer.
docstring_tokens: Replaces any stdClass that only has the type property with type integer .