code: public function fixFileSlashes($file, &$contents)
      {
          $changed = false;
          foreach ($contents as $lineNumber => $line) {
              if (preg_match('/(psesd|canis|cascade)\\\\\\\/', $line) === 1) {
                  $fixedLine = preg_replace('/\\\\\\\/', '\\', $line);
                  if ($fixedLine !== $line) {
                      $contents[$lineNumber] = $fixedLine;
                      $changed = true;
                  }
              }
          }
  
          return $changed;
      }
docs: Fixes slashes inside namespace strings.
  
  @param string     $file     file name of the file being fixed
  @param array $contents array of the file contents
  
  @return bool if the file changed