Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ClassMap.php

function ClassMap::clearPsrViolationsByPath

File

vendor/composer/class-map-generator/src/ClassMap.php, line 155

Class

ClassMap
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\ClassMapGenerator

Code

public function clearPsrViolationsByPath(string $pathPrefix) : void {
    $pathPrefix = rtrim(strtr($pathPrefix, '\\', '/'), '/');
    foreach ($this->psrViolations as $path => $violations) {
        if ($path === $pathPrefix || 0 === \strpos($path, $pathPrefix . '/')) {
            unset($this->psrViolations[$path]);
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal