pgb_liv\php_ms\Search\MascotSearch
Client to perform Mascot search and results retrieval
- Author: Andrew Collins
Synopsis
- // constants
- const FILE_NAME = 'filename';
- const MIME_TYPE = 'mime';
- const FILE_DATA = 'data';
- // methods
- public void __construct()
- private void getCookieHeader()
- private void sendPost()
- private void sendGet()
- private void readResponse()
- public void authenticate()
- public void getXml()
- public void getSearches()
- public void search()
Coverage
| Methods | 100% | 9 / 9 |
| Lines | 100% | 294 / 294 |
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. |
| 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. |
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 |
| 365 | 497 | warning | Line exceeds 120 characters; contains 497 characters |
Constants
| Name | Value |
|---|---|
| FILE_NAME | 'filename' |
| MIME_TYPE | 'mime' |
| FILE_DATA | 'data' |
Members
private
- $host
- $path
- $port
Methods
private
public
- __construct() — Create a new instance of this class.
- authenticate()
- getSearches()
- getXml()
- search()
History
-
2019-04-02T11:54:45+01:00 (commit #c7d351b)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Code tidy
-
2018-06-25T15:44:04+01:00 (commit #1fdebe8)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Fixed tests for previous mz changes Added support for chunked http response in mascot search
-
2017-10-25T09:20:00+01:00 (commit #57f57a0)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Minor code tidy
-
2017-04-19T16:43:03+01:00 (commit #ba22061)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Fixed unit tests
-
2017-04-04T17:41:32+01:00 (commit #831a98c)
Author: Andrew Collins (detritus@blueyonder.co.uk) / Commiter: Andrew Collins (detritus@blueyonder.co.uk)
Required Search tolerances to use Tolerance class Added additional validation
-
2017-04-04T15:47:43+01:00 (commit #f1a1e63)
Author: Andrew Collins (detritus@blueyonder.co.uk) / Commiter: Andrew Collins (detritus@blueyonder.co.uk)
Add complete implementation of MS-GF+ search
-
2017-03-30T13:49:20+01:00 (commit #e1ebd39)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Added additional tests sites Fixed sonar issues
-
2017-03-28T15:36:12+01:00 (commit #7197298)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Added tolerance class
-
2017-03-20T16:42:01+00:00 (commit #0c3635a)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Added Mascot job submission code and tests
-
2017-03-14T16:04:04+00:00 (commit #3a2d320)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Updated boundary to use mt_rand
-
2017-03-07T16:28:58+00:00 (commit #59a129a)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Added path to Mascot to allow for custom paths
-
2017-03-07T13:32:23+00:00 (commit #43de510)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Removed hardcoding of limit
-
2017-03-07T13:20:34+00:00 (commit #a09e237)
Author: detritus (detritus@blueyonder.co.uk) / Commiter: detritus (detritus@blueyonder.co.uk)
Added Mascot results fetching