original_string: public function repr($value)
      {
          if (\is_int($value) || \is_float($value)) {
              if (false !== $locale = setlocale(LC_NUMERIC, 0)) {
                  setlocale(LC_NUMERIC, 'C');
              }
  
              $this->raw($value);
  
              if (false !== $locale) {
                  setlocale(LC_NUMERIC, $locale);
              }
          } elseif (null === $value) {
              $this->raw('null');
          } elseif (\is_bool($value)) {
              $this->raw($value ? 'true' : 'false');
          } elseif (\is_array($value)) {
              $this->raw('[');
              $first = true;
              foreach ($value as $key => $value) {
                  if (!$first) {
                      $this->raw(', ');
                  }
                  $first = false;
                  $this->repr($key);
                  $this->raw(' => ');
                  $this->repr($value);
              }
              $this->raw(']');
          } else {
              $this->string($value);
          }
  
          return $this;
      }
code: public function repr($value)
      {
          if (\is_int($value) || \is_float($value)) {
              if (false !== $locale = setlocale(LC_NUMERIC, 0)) {
                  setlocale(LC_NUMERIC, 'C');
              }
  
              $this->raw($value);
  
              if (false !== $locale) {
                  setlocale(LC_NUMERIC, $locale);
              }
          } elseif (null === $value) {
              $this->raw('null');
          } elseif (\is_bool($value)) {
              $this->raw($value ? 'true' : 'false');
          } elseif (\is_array($value)) {
              $this->raw('[');
              $first = true;
              foreach ($value as $key => $value) {
                  if (!$first) {
                      $this->raw(', ');
                  }
                  $first = false;
                  $this->repr($key);
                  $this->raw(' => ');
                  $this->repr($value);
              }
              $this->raw(']');
          } else {
              $this->string($value);
          }
  
          return $this;
      }
code_tokens: public function repr ( $ value ) { if ( \ is_int ( $ value ) || \ is_float ( $ value ) ) { if ( false !== $ locale = setlocale ( LC_NUMERIC , 0 ) ) { setlocale ( LC_NUMERIC , 'C' ) ; } $ this -> raw ( $ value ) ; if ( false !== $ locale ) { setlocale ( LC_NUMERIC , $ locale ) ; } } elseif ( null === $ value ) { $ this -> raw ( 'null' ) ; } elseif ( \ is_bool ( $ value ) ) { $ this -> raw ( $ value ? 'true' : 'false' ) ; } elseif ( \ is_array ( $ value ) ) { $ this -> raw ( '[' ) ; $ first = true ; foreach ( $ value as $ key => $ value ) { if ( ! $ first ) { $ this -> raw ( ', ' ) ; } $ first = false ; $ this -> repr ( $ key ) ; $ this -> raw ( ' => ' ) ; $ this -> repr ( $ value ) ; } $ this -> raw ( ']' ) ; } else { $ this -> string ( $ value ) ; } return $ this ; }
docstring: Returns a PHP representation of a given value.
  
  @param mixed $value The value to convert
  
  @return $this
docstring_tokens: Returns a PHP representation of a given value .