1 | <?php |
||
15 | class Transport implements TransportInterface |
||
16 | { |
||
17 | use LoggerAwareTrait; |
||
18 | use ElasticSearchWriterTrait; |
||
19 | |||
20 | const LIVE_PRICING = '/apiservices/pricing/v1.0'; |
||
|
|||
21 | const WAITING_TIME_IN_MILLIS = 500000; |
||
22 | |||
23 | /** |
||
24 | * @var \GuzzleHttp\Client |
||
25 | */ |
||
26 | private $client; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $pollUrl; |
||
32 | |||
33 | /** |
||
34 | * @param ClientInterface $client |
||
35 | */ |
||
36 | public function __construct(ClientInterface $client) |
||
40 | |||
41 | /** |
||
42 | * @param SessionParameters $parameters |
||
43 | * @param bool $newSession |
||
44 | * @return \stdClass |
||
45 | */ |
||
46 | public function findQuotes(SessionParameters $parameters, $newSession) |
||
54 | |||
55 | /** |
||
56 | * @param SessionParameters $parameters |
||
57 | * @throws \Exception |
||
58 | */ |
||
59 | private function createSession(SessionParameters $parameters) |
||
86 | |||
87 | /** |
||
88 | * @return \stdClass |
||
89 | */ |
||
90 | private function poll() |
||
137 | |||
138 | /** |
||
139 | * @param string $url |
||
140 | * @param string $apiKey |
||
141 | */ |
||
142 | private function setPollUrl($url, $apiKey) |
||
147 | } |
||
148 |
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.