part_of_speech()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 2
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
if (! function_exists('part_of_speech')) {
4
    function part_of_speech($word)
5
    {
6
        return (new \Djunehor\Grammar\Word())->getWordPartOfSpeech($word);
7
    }
8
}
9
10
if (! function_exists('parts_of_speech')) {
11
    function parts_of_speech()
12
    {
13
        return (new \Djunehor\Grammar\Word())->getPartsOfSpeech();
14
    }
15
}
16