resources/js/widget/_nav.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 10
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
nc 1
dl 0
loc 10
c 0
b 0
f 0
cc 0
rs 10
wmc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 2
1
export default (app, i18n, newPostsCount, pendingPostsCount) => {
0 ignored issues
show
Unused Code introduced by
The parameter newPostsCount is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
Unused Code introduced by
The parameter pendingPostsCount is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
2
  return [
3
    {
4
      name: i18n.t('labels.client.titles.main'),
5
      url: '/campaign/1/donate',
6
      icon: 'fe fe-trending-up',
7
      access: true
8
    }
9
  ]
10
}
11