Code (PHP) pasted on 2018-11-18, 23:42 Raw Source
- public function add($file, $duplicateFile)
- {
- $found = false;
- $this->duplicates[$file][] = $duplicateFile;
- }
- $found = true;
- $this->duplicates[$duplicateFile][] = $file;
- }
- $found = true;
- } else {
- foreach($this->duplicates as $key => $duplicates){
- $this->duplicates[$key][] = $duplicateFile;
- $found = true;
- break;
- $this->duplicates[$key][] = $file;
- $found = true;
- break;
- }
- }
- }
- if ($found != true) {
- $this->duplicates[$file][] = $duplicateFile;
- $this->duplicates[$file][] = $file;
- }
- }