GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 4f400b...27c2a7 )
by Keith
80:08
created

demo/v2/js/controller/rc-52-create-computer-language.js   A

Complexity

Total Complexity 9
Complexity/F 1.13

Size

Lines of Code 32
Function Count 8

Duplication

Duplicated Lines 32
Ratio 100 %

Importance

Changes 0
Metric Value
eloc 18
dl 32
loc 32
rs 10
c 0
b 0
f 0
wmc 9
mnd 1
bc 1
fnc 8
bpm 0.125
cpm 1.125
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A rc-52-create-computer-language.js ➔ Initialize 5 5 2

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1 View Code Duplication
"use strict";
2
app.controller('computerLanguageCreateController', ['$scope', '$state', 'Security', function ($scope, $state, Security, $rootScope) {
3
    function Initialize(){
4
        var entryForm = {};
5
6
        $scope.entryForm = entryForm;
7
    }
8
    Initialize();
9
	
10
	$scope.BackToParentState = function(){
11
		$state.go('rc-52-list-computer-language');
12
	}
13
14
    $scope.EventListener = function(scope, iElement, iAttrs, controller){
15
        iElement.ready(function() {
16
17
        })
18
    }
19
20
    $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){
21
		
22
    }
23
24
    $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){
25
        if(fieldName == "ShortForm")
26
            newObj.ShortForm = newObj.ShortForm.toUpperCase(); 
27
    }
28
29
    $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){
30
        return true;
31
    }
32
}]);
33