code: protected function applyFix(\SplFileInfo $file, Tokens $tokens)
      {
          if ('all' === $this->configuration['scope']) {
              $this->fixConstantInvocations($tokens, 0, \count($tokens) - 1);
  
              return;
          }
  
          $namespaces = (new NamespacesAnalyzer())->getDeclarations($tokens);
  
          // 'scope' is 'namespaced' here
          /** @var NamespaceAnalysis $namespace */
          foreach (array_reverse($namespaces) as $namespace) {
              if ('' === $namespace->getFullName()) {
                  continue;
              }
  
              $this->fixConstantInvocations($tokens, $namespace->getScopeStartIndex(), $namespace->getScopeEndIndex());
          }
      }
docs: {@inheritdoc}