original_string: private function authorizesInline(array $directivesSet, $type)
      {
          if (isset($directivesSet[$type])) {
              $directives = $directivesSet[$type];
          } elseif (isset($directivesSet['default-src'])) {
              $directives = $directivesSet['default-src'];
          } else {
              return false;
          }
  
          return \in_array('\'unsafe-inline\'', $directives, true) && !$this->hasHashOrNonce($directives);
      }
code: private function authorizesInline(array $directivesSet, $type)
      {
          if (isset($directivesSet[$type])) {
              $directives = $directivesSet[$type];
          } elseif (isset($directivesSet['default-src'])) {
              $directives = $directivesSet['default-src'];
          } else {
              return false;
          }
  
          return \in_array('\'unsafe-inline\'', $directives, true) && !$this->hasHashOrNonce($directives);
      }
code_tokens: private function authorizesInline ( array $ directivesSet , $ type ) { if ( isset ( $ directivesSet [ $ type ] ) ) { $ directives = $ directivesSet [ $ type ] ; } elseif ( isset ( $ directivesSet [ 'default-src' ] ) ) { $ directives = $ directivesSet [ 'default-src' ] ; } else { return false ; } return \ in_array ( '\'unsafe-inline\'' , $ directives , true ) && ! $ this -> hasHashOrNonce ( $ directives ) ; }
docstring: Detects if the 'unsafe-inline' is prevented for a directive within the directive set.
  
  @param array  $directivesSet The directive set
  @param string $type          The name of the directive to check
  
  @return bool
docstring_tokens: Detects if the unsafe - inline is prevented for a directive within the directive set .