original_string: public static function convertStringHeadersToArray($headers)
      {
          $lines = explode("\r\n", $headers);
          $headers = [];
          foreach ($lines as $line) {
              if (strpos($line, ':')) {
                  $headerParts = explode(':', $line);
                  $headers[$headerParts[0]] = trim(implode(':', array_slice($headerParts, 1)));
              }
          }
          return $headers;
      }
code: public static function convertStringHeadersToArray($headers)
      {
          $lines = explode("\r\n", $headers);
          $headers = [];
          foreach ($lines as $line) {
              if (strpos($line, ':')) {
                  $headerParts = explode(':', $line);
                  $headers[$headerParts[0]] = trim(implode(':', array_slice($headerParts, 1)));
              }
          }
          return $headers;
      }
code_tokens: public static function convertStringHeadersToArray ( $ headers ) { $ lines = explode ( "\r\n" , $ headers ) ; $ headers = [ ] ; foreach ( $ lines as $ line ) { if ( strpos ( $ line , ':' ) ) { $ headerParts = explode ( ':' , $ line ) ; $ headers [ $ headerParts [ 0 ] ] = trim ( implode ( ':' , array_slice ( $ headerParts , 1 ) ) ) ; } } return $ headers ; }
docstring: Returns an associative array between the headers name and their respective values
  @param string $headers
  @return string[]
docstring_tokens: Returns an associative array between the headers name and their respective values