lib/commands/ToolsController.php
public function fixFile($file)
    {
        $contents = preg_split("/\\r\\n|\\r|\\n/", file_get_contents($file));
        $changed = false;
        if ($this->fixFileSlashes($file, $contents)) {
            $changed = true;
        }
        // if ($this->fixDocBlockPlaceholder($file, $contents)) {
        //     $changed = true;
        // }
        if ($changed) {
            file_put_contents($file, implode("\n", $contents));
        }

        return $changed;
    }
public function fixFile($file)
    {
        $contents = preg_split("/\\r\\n|\\r|\\n/", file_get_contents($file));
        $changed = false;
        if ($this->fixFileSlashes($file, $contents)) {
            $changed = true;
        }
        // if ($this->fixDocBlockPlaceholder($file, $contents)) {
        //     $changed = true;
        // }
        if ($changed) {
            file_put_contents($file, implode("\n", $contents));
        }

        return $changed;
    }
Run a series of fixes on a file's code formatting.

@param string $file file name of the file being checked

@return bool if the file was changed