robotcoral/coral-app

View on GitHub
src/app/common/editor.controller.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

zoomOut() {
const fontSize = this.settingsService.settings.globalSettings.fontSize - 2;
this.settingsService.saveEditorSettings({ fontSize });
}
Severity: Major
Found in src/app/common/editor.controller.ts and 1 other location - About 1 hr to fix
src/app/common/editor.controller.ts on lines 29..32

Similar blocks of code found in 2 locations. Consider refactoring.
Open

zoomIn() {
const fontSize = this.settingsService.settings.globalSettings.fontSize + 2;
this.settingsService.saveEditorSettings({ fontSize });
}
Severity: Major
Found in src/app/common/editor.controller.ts and 1 other location - About 1 hr to fix
src/app/common/editor.controller.ts on lines 34..37
Category
Status