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-51-entry-license-terms.js   A

Complexity

Total Complexity 9
Complexity/F 1.13

Size

Lines of Code 53
Function Count 8

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A rc-51-entry-license-terms.js ➔ Initialize 0 5 2
1
"use strict";
2
app.controller('licenseEntryController', ['$scope', '$state', 'Security', function ($scope, $state, Security, $rootScope) {
3
	$scope.directiveScopeDict = {};
4
    $scope.directiveCtrlDict = {};
5
	
6
	$scope.licenseID = $scope.$resolve.licenseID;
7
	//console.dir($scope);
8
	//console.dir($state.params);
9
	
10
	$scope.licenseID = $state.params.licenseID;
11
	
12
    function Initialize(){
13
        var entryForm = {};
14
15
        $scope.entryForm = entryForm;
16
    }
17
    Initialize();
18
	
19
	$scope.BackToParentState = function(){
20
		//$state.go('rc-51-list-license-terms');
21
		$state.go('^');
22
	}
23
24
    $scope.EventListener = function(scope, iElement, iAttrs, controller){
25
		var tagName = iElement[0].tagName.toLowerCase();
26
		var prgmID = scope.programId;
27
		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...
28
		var hashID = tagName + '_' + prgmID;
29
30
		if($scope.directiveScopeDict[hashID] == null || typeof($scope.directiveScopeDict[hashID]) == "undefined"){
31
			$scope.directiveScopeDict[hashID] = scope;
32
			$scope.directiveCtrlDict[hashID] = controller;
33
34
		}
35
		
36
        iElement.ready(function() {
37
        })
38
    }
39
40
    $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){
41
		var name = "entry_ds50lt"
42
		$scope.directiveCtrlDict[name].ngModel.LicenseID = $scope.licenseID;
43
		
44
		$scope.directiveScopeDict[name].FindData();
45
    }
46
47
    $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){
48
    }
49
50
    $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){
51
        return true;
52
    }
53
}]);
54