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/45list-and-view-staff-profile.js   A

Complexity

Total Complexity 9
Complexity/F 1.29

Size

Lines of Code 48
Function Count 7

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 28
dl 0
loc 48
rs 10
c 0
b 0
f 0
wmc 9
mnd 2
bc 2
fnc 7
bpm 0.2857
cpm 1.2857
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A 45list-and-view-staff-profile.js ➔ Initialize 0 8 2
1
"use strict";
2
app.controller('staffProfileViewController', ['$scope', '$element', function($scope, $element, $rootScope) {
3
    function Initialize() {
4
        var entryForm = {};
5
        $scope.entryForm = entryForm;
6
        $scope.directiveScopeDict = {};
7
8
        $scope.deptEditBox = {};
9
        $scope.sectionEditBox = {};
10
    }
11
    Initialize();
12
13
    $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller) {
14
        controller.ngModel.DateOfBirth = new Date(0, 0, 0);
15
        controller.ngModel.EmploymentDate = new Date(0, 0, 0);
16
    }
17
18
    $scope.EventListener = function(scope, iElement, iAttrs, controller) {
19
        var prgmID = scope.programId;
20
        var tagName = iElement[0].tagName;
21
        if ($scope.directiveScopeDict[prgmID] == null || typeof($scope.directiveScopeDict[prgmID]) == "undefined") {
22
            $scope.directiveScopeDict[prgmID] = scope;
23
        }
24
		
25
        iElement.ready(function() {
26
27
        })
28
    }
29
30
    $scope.CustomSelectedToRecord = function(sRecord, rowScope, scope, iElement, controller) {
31
        console.log("<" + iElement[0].tagName + ">" + " Directive overried CustomPointedToRecord()");
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
32
33
        var tagName = iElement[0].tagName.toLowerCase();
34
        var prgmID = scope.programId.toLowerCase();
35
36
        if (prgmID == "dw02sp") {
37
            // asign the selected record to ng-model
38
            $.extend(true, $scope.entryForm, sRecord)
39
        }
40
    }
41
42
    $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller) {
43
        controller.ngModel.FullName = controller.ngModel.LastName + ' ' + controller.ngModel.FirstName;
44
45
        return true;
46
    };
47
48
}]);