pgb_liv\php_ms\Search\MascotSearch::sendPost
Signature
private function sendPost(
$path,
$args )
Parameters
$path
—
$args
—
Test Coverage
Information
- Coverage: 52/52 Lines (100%)
- Tests: 4
- Passed: 4 (100%)
Tests
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MascotSearchTest::testCanGetValidAuthentication
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MascotSearchTest::testCanGetInvalidAuthentication
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MascotSearchTest::testCanGetValidRecentSearchData
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MascotSearchTest::testCanSubmitValidJob
Violations
PHPMessDetector
Line |
Rule |
Message |
71 - 140 |
CyclomaticComplexity
|
The method sendPost() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10. |
97 - 100 |
ElseExpression
|
The method sendPost uses an else expression. Else is never necessary and you can simplify the code to work without else. |
131 - 134 |
ElseExpression
|
The method sendPost uses an else expression. Else is never necessary and you can simplify the code to work without else. |
Checkstyle
Line |
Column |
Severity |
Message |
111 |
17 |
error
|
Opening parenthesis of a multi-line function call must be the last content on the line |
112 |
121 |
warning
|
Line exceeds 120 characters; contains 121 characters |
113 |
1 |
error
|
Multi-line function call not indented correctly; expected 16 spaces but found 20 |
113 |
33 |
error
|
Closing parenthesis of a multi-line function call must be on a line by itself |
128 |
21 |
error
|
Opening parenthesis of a multi-line function call must be the last content on the line |
129 |
1 |
error
|
Multi-line function call not indented correctly; expected 20 spaces but found 24 |
129 |
110 |
error
|
Closing parenthesis of a multi-line function call must be on a line by itself |