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
Pull Request — master (#2)
by Bekh-Ivanov
02:58
created

functions.php ➔ containsStringIgnoringWhiteSpace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
use Hamcrest\Matcher;
3
4
if (!function_exists('htmlPiece')) {
5
    /**
6
     * @param mixed $elementMatcher
7
     *
8
     * @return \WMDE\HamcrestHtml\HtmlMatcher
9
     */
10
    function htmlPiece(Matcher $elementMatcher = null) {
11 31
        return \WMDE\HamcrestHtml\HtmlMatcher::htmlPiece($elementMatcher);
12
    }
13
}
14
15
if (!function_exists('havingRootElement')) {
16
    function havingRootElement(Matcher $matcher = null) {
17 1
        return \WMDE\HamcrestHtml\RootElementMatcher::havingRootElement($matcher);
18
    }
19
}
20
21
if (!function_exists('havingDirectChild')) {
22
    function havingDirectChild(Matcher $elementMatcher = null) {
23
        return \WMDE\HamcrestHtml\DirectChildElementMatcher::havingDirectChild($elementMatcher);
24
    }
25
}
26
27
if (!function_exists('havingChild')) {
28
    function havingChild(Matcher $elementMatcher = null) {
29
        return \WMDE\HamcrestHtml\ChildElementMatcher::havingChild($elementMatcher);
30
    }
31
}
32
33
if (!function_exists('withTagName')) {
34
    /**
35
     * @param Matcher|string $tagName
36
     *
37
     * @return \WMDE\HamcrestHtml\TagNameMatcher
38
     */
39
    function withTagName($tagName) {
40
        return \WMDE\HamcrestHtml\TagNameMatcher::withTagName($tagName);
41
    }
42
}
43
44
if (!function_exists('withAttribute')) {
45
    /**
46
     * @param Matcher|string $attributeName
47
     *
48
     * @return \WMDE\HamcrestHtml\AttributeMatcher
49
     */
50
    function withAttribute($attributeName) {
51
        return \WMDE\HamcrestHtml\AttributeMatcher::withAttribute($attributeName);
52
    }
53
}
54
55
if (!function_exists('withClass')) {
56
    /**
57
     * @param Matcher|string $class
58
     *
59
     * @return \WMDE\HamcrestHtml\ClassMatcher
60
     */
61
    function withClass($class) {
62
        //TODO don't allow to call with empty string
63
64
        return \WMDE\HamcrestHtml\ClassMatcher::withClass($class);
65
    }
66
}
67
68
if (!function_exists('havingTextContents')) {
69
    /**
70
     * @param Matcher|string $text
71
     *
72
     * @return \WMDE\HamcrestHtml\TextContentsMatcher
73
     */
74
    function havingTextContents($text) {
75
        return \WMDE\HamcrestHtml\TextContentsMatcher::havingTextContents($text);
76
    }
77
}
78
79
if (!function_exists('tagMatchingOutline')) {
80
    /**
81
     * @param string $htmlOutline
82
     *
83
     * @return \WMDE\HamcrestHtml\ComplexTagMatcher
84
     */
85
    function tagMatchingOutline($htmlOutline) {
86
        return \WMDE\HamcrestHtml\ComplexTagMatcher::tagMatchingOutline($htmlOutline);
87
    }
88
}
89
90
if (!function_exists('containsStringIgnoringWhiteSpace')) {
91
    /**
92
     * @param $substring
93
     *
94
     * @return \WMDE\HamcrestHtml\StringContainsIgnoringWhiteSpace
95
     */
96
    function containsStringIgnoringWhiteSpace($substring) {
97 9
        return \WMDE\HamcrestHtml\StringContainsIgnoringWhiteSpace::containsStringIgnoringWhiteSpace($substring);
98
    }
99
}
100