original_string: private function getNativeValueFromDefinition($value)
      {
          if ($this->strStartsWith($value, "'") && $this->strEndsWith($value, "'")) {
              $value = trim(trim($value, "'")); // single quote
          } else {
              if ($this->strStartsWith($value, '"') && $this->strEndsWith($value, '"')) {
                  $value = trim(trim($value, '"')); // double quote
              } else {
                  if ($value == 'true') {
                      $value = true;
                  } else {
                      if ($value == 'false') {
                          $value = false;
                      } else {
                          if (is_numeric($value)) {
                              if (ctype_digit($value)) {
                                  return (integer)$value;
                              } else {
                                  return (float)$value;
                              }
                          }
                      }
                  }
              }
          }
  
          return $value;
      }
code: private function getNativeValueFromDefinition($value)
      {
          if ($this->strStartsWith($value, "'") && $this->strEndsWith($value, "'")) {
              $value = trim(trim($value, "'")); // single quote
          } else {
              if ($this->strStartsWith($value, '"') && $this->strEndsWith($value, '"')) {
                  $value = trim(trim($value, '"')); // double quote
              } else {
                  if ($value == 'true') {
                      $value = true;
                  } else {
                      if ($value == 'false') {
                          $value = false;
                      } else {
                          if (is_numeric($value)) {
                              if (ctype_digit($value)) {
                                  return (integer)$value;
                              } else {
                                  return (float)$value;
                              }
                          }
                      }
                  }
              }
          }
  
          return $value;
      }
code_tokens: private function getNativeValueFromDefinition ( $ value ) { if ( $ this -> strStartsWith ( $ value , "'" ) && $ this -> strEndsWith ( $ value , "'" ) ) { $ value = trim ( trim ( $ value , "'" ) ) ; // single quote } else { if ( $ this -> strStartsWith ( $ value , '"' ) && $ this -> strEndsWith ( $ value , '"' ) ) { $ value = trim ( trim ( $ value , '"' ) ) ; // double quote } else { if ( $ value == 'true' ) { $ value = true ; } else { if ( $ value == 'false' ) { $ value = false ; } else { if ( is_numeric ( $ value ) ) { if ( ctype_digit ( $ value ) ) { return ( integer ) $ value ; } else { return ( float ) $ value ; } } } } } } return $ value ; }
docstring: Cast declared value to internal type
  
  @param  string $value
  @return mixed
docstring_tokens: Cast declared value to internal type