myems-admin/app/controllers/settings/space/spacecombinedequipment.controller.js
Function getAllSpaces
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.getAllSpaces = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;
Function refreshSpaceTree
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.refreshSpaceTree = function() {
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
SpaceService.getAllSpaces(headers, function (response) {
if (angular.isDefined(response.status) && response.status === 200) {
$scope.spaces = response.data;