Conditions | 1 |
Paths | 1 |
Total Lines | 27 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function doPostRequest() { |
||
15 | $url = 'http://www.mvg-live.de/MvgLive/mvglive/rpc/newstickerService'; |
||
|
|||
16 | $client = new Client(); |
||
17 | $client->setUri($url); |
||
18 | $client->setMethod(\Zend\Http\Request::METHOD_POST); |
||
19 | |||
20 | $headers = array( |
||
21 | 'Origin' => 'http://www.mvg-live.de' |
||
22 | , 'Accept-Encoding' => 'gzip, deflate' |
||
23 | , 'Accept-Language' => 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4,da;q=0.2' |
||
24 | , 'X-GWT-Module-Base' => 'http://www.mvg-live.de/MvgLive/mvglive/' |
||
25 | , 'Connection' => 'keep-alive' |
||
26 | , 'Cache-Control' => 'no-cache' |
||
27 | , 'Pragma' => 'no-cache' |
||
28 | , 'User-Agent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' |
||
29 | , 'Content-Type' => 'text/x-gwt-rpc; charset=UTF-8' |
||
30 | , 'Accept' => '*/*' |
||
31 | , 'X-GWT-Permutation' => '1DD521F1FA9966B50432692AB421CD55' |
||
32 | , 'Referer' => 'http://www.mvg-live.de/MvgLive/MvgLive.jsp' |
||
33 | , 'DNT' => '1' |
||
34 | |||
35 | ); |
||
36 | $client->setHeaders($headers); |
||
37 | $client->setRawBody('7|0|4|http://www.mvg-live.de/MvgLive/mvglive/|7690A2A77A0295D3EC713772A06B8898|de.swm.mvglive.gwt.client.newsticker.GuiNewstickerService|getNewsticker|1|2|3|4|0|'); |
||
38 | $response = $client->send(); |
||
39 | return $response->getBody(); |
||
40 | } |
||
41 | } |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.