Passed
Push — master ( edfc1e...a26bd7 )
by Vitor
59s queued 10s
created

src/providers/getSiteMetadataProvider.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 17
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 1
eloc 4
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 17
bpm 1
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A getSiteMetadataProvider.js ➔ ??? 0 15 1
1
import { useStaticQuery, graphql } from 'gatsby';
2
3
export const getSiteMetadataProvider = () => {
4
    const { site } = useStaticQuery(graphql`
5
        query SiteMetaData {
6
            site {
7
                siteMetadata {
8
                    title
9
                    description
10
                    author
11
                }
12
            }
13
        }
14
    `);
15
16
    return site.siteMetadata;
17
};
18