pgb_liv\php_ms\Search\MascotSearch::readResponse

Signature

private function readResponse( $socket )

Parameters

$socket

Test Coverage

Information

  • Coverage: 54/54 Lines (100%)
  • Tests: 5
  • Passed: 5 (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::testCanGetValidRecentSearches
  • [ PASSED ] — pgb_liv\php_ms\Test\Unit\MascotSearchTest::testCanGetValidRecentSearchData
  • [ PASSED ] — pgb_liv\php_ms\Test\Unit\MascotSearchTest::testCanSubmitValidJob

Violations

PHPMessDetector

Line Rule Message
166 - 242 CyclomaticComplexity The method readResponse() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
225 - 227 ElseExpression The method readResponse uses an else expression. Else is never necessary and you can simplify the code to work without else.