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-54-entry-third-party.js   A

Complexity

Total Complexity 10
Complexity/F 1.25

Size

Lines of Code 52
Function Count 8

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 30
dl 0
loc 52
rs 10
c 0
b 0
f 0
wmc 10
mnd 2
bc 2
fnc 8
bpm 0.25
cpm 1.25
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A rc-54-entry-third-party.js ➔ Initialize 0 5 2
1
"use strict";
2
app.controller('thirdPartyEntryController', ['$scope', '$state', 'Security', function ($scope, $state, Security, $rootScope) {
3
	$scope.directiveScopeDict = {};
4
    $scope.directiveCtrlDict = {};
5
	
6
	$scope.thirdPartyID = $state.params.thirdPartyID;
7
	
8
    function Initialize(){
9
        var entryForm = {};
10
11
        $scope.entryForm = entryForm;
12
    }
13
    Initialize();
14
	
15
	$scope.BackToParentState = function(){
16
		//$state.go('rc-51-list-license-terms');
17
		$state.go('^');
18
	}
19
20
    $scope.EventListener = function(scope, iElement, iAttrs, controller){
21
		var tagName = iElement[0].tagName.toLowerCase();
22
		var prgmID = scope.programId;
23
		var scopeID = scope.$id;
0 ignored issues
show
Unused Code introduced by
The variable scopeID seems to be never used. Consider removing it.
Loading history...
24
		var hashID = tagName + '_' + prgmID;
25
26
		if($scope.directiveScopeDict[hashID] == null || typeof($scope.directiveScopeDict[hashID]) == "undefined"){
27
			$scope.directiveScopeDict[hashID] = scope;
28
			$scope.directiveCtrlDict[hashID] = controller;
29
30
		}
31
		
32
        iElement.ready(function() {
33
        })
34
    }
35
36
    $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){
37
		var name = "entry_ds53tp"
38
		$scope.directiveCtrlDict[name].ngModel.ThirdPartyID = $scope.thirdPartyID;
39
		
40
		$scope.directiveScopeDict[name].FindData();
41
		
42
    }
43
44
    $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){
45
        if(fieldName == "ShortForm")
46
            newObj.ShortForm = newObj.ShortForm.toUpperCase(); 
47
    }
48
49
    $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){
50
        return true;
51
    }
52
}]);
53