original_string: protected function applyExcludes(array $dataTypes): array
      {
          $exclusions = explode(',', $this->exclude);
          // Find any invalid data to exclude.
          $invalidExcludes = array_diff($exclusions, $dataTypes);
          if (count($invalidExcludes) > 0) {
              $errorMessage = 'WARNING: Invalid exlude(s)';
              $errorMessage .= ': '.implode(', ', $invalidExcludes).'.'.PHP_EOL;
              $errorMessage .= ' Valid exclusions are '.implode(', ', $dataTypes);
  
              // Output an error message outlining what invalid exclusions were specified.
              Schematic::warning($errorMessage);
          }
          // Remove any explicitly excluded data types from the list of data types to export.
          return array_diff($dataTypes, $exclusions);
      }
code: protected function applyExcludes(array $dataTypes): array
      {
          $exclusions = explode(',', $this->exclude);
          // Find any invalid data to exclude.
          $invalidExcludes = array_diff($exclusions, $dataTypes);
          if (count($invalidExcludes) > 0) {
              $errorMessage = 'WARNING: Invalid exlude(s)';
              $errorMessage .= ': '.implode(', ', $invalidExcludes).'.'.PHP_EOL;
              $errorMessage .= ' Valid exclusions are '.implode(', ', $dataTypes);
  
              // Output an error message outlining what invalid exclusions were specified.
              Schematic::warning($errorMessage);
          }
          // Remove any explicitly excluded data types from the list of data types to export.
          return array_diff($dataTypes, $exclusions);
      }
code_tokens: protected function applyExcludes ( array $ dataTypes ) : array { $ exclusions = explode ( ',' , $ this -> exclude ) ; // Find any invalid data to exclude. $ invalidExcludes = array_diff ( $ exclusions , $ dataTypes ) ; if ( count ( $ invalidExcludes ) > 0 ) { $ errorMessage = 'WARNING: Invalid exlude(s)' ; $ errorMessage .= ': ' . implode ( ', ' , $ invalidExcludes ) . '.' . PHP_EOL ; $ errorMessage .= ' Valid exclusions are ' . implode ( ', ' , $ dataTypes ) ; // Output an error message outlining what invalid exclusions were specified. Schematic :: warning ( $ errorMessage ) ; } // Remove any explicitly excluded data types from the list of data types to export. return array_diff ( $ dataTypes , $ exclusions ) ; }
docstring: Apply given excludes.
  
  @param array $dataTypes
  
  @return array
docstring_tokens: Apply given excludes .