code: public function load($file, $type = null): string
      {
          [$code, $namespace] = $this->parseFile((string) $file);
  
          $code = $this->stripLegacyCheck($code);
  
          if (false !== $namespace && 'namespaced' === $type) {
              $code = sprintf("\nnamespace %s {%s}\n", $namespace, $code);
          }
  
          return $code;
      }
docs: {@inheritdoc}