original_string: private function parseDirectives($header)
      {
          $directives = [];
  
          foreach (explode(';', $header) as $directive) {
              $parts = explode(' ', trim($directive));
              if (\count($parts) < 1) {
                  continue;
              }
              $name = array_shift($parts);
              $directives[$name] = $parts;
          }
  
          return $directives;
      }
code: private function parseDirectives($header)
      {
          $directives = [];
  
          foreach (explode(';', $header) as $directive) {
              $parts = explode(' ', trim($directive));
              if (\count($parts) < 1) {
                  continue;
              }
              $name = array_shift($parts);
              $directives[$name] = $parts;
          }
  
          return $directives;
      }
code_tokens: private function parseDirectives ( $ header ) { $ directives = [ ] ; foreach ( explode ( ';' , $ header ) as $ directive ) { $ parts = explode ( ' ' , trim ( $ directive ) ) ; if ( \ count ( $ parts ) < 1 ) { continue ; } $ name = array_shift ( $ parts ) ; $ directives [ $ name ] = $ parts ; } return $ directives ; }
docstring: Converts a Content-Security-Policy header value into a directive set array.
  
  @param string $header The header value
  
  @return array The directive set
docstring_tokens: Converts a Content - Security - Policy header value into a directive set array .