@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * @var array name=>value request defaults used for every request |
42 | 42 | */ |
43 | - private $default=[]; |
|
43 | + private $default = []; |
|
44 | 44 | |
45 | 45 | //----------------------------------------------------- |
46 | 46 | // connection handling |
@@ -132,11 +132,11 @@ discard block |
||
132 | 132 | } |
133 | 133 | //@codeCoverageIgnoreEnd |
134 | 134 | |
135 | - $result = $result . $terminator; |
|
135 | + $result = $result.$terminator; |
|
136 | 136 | } |
137 | 137 | //if the remote end uses CRLF as a terminator, we might have a stray LF in our buffer - by trimming |
138 | 138 | //the responses, we ensure those don't upset us |
139 | - $result=trim($result); |
|
139 | + $result = trim($result); |
|
140 | 140 | |
141 | 141 | $this->logger->info("SIP2: result={$result}"); |
142 | 142 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->logger->warning("SIP2: Message failed CRC check, retry {$depth})"); |
151 | 151 | $result = $this->getRawResponse($request, $depth); |
152 | 152 | } else { |
153 | - $errMsg="SIP2: Failed to get valid CRC after {$this->maxretry} retries."; |
|
153 | + $errMsg = "SIP2: Failed to get valid CRC after {$this->maxretry} retries."; |
|
154 | 154 | $this->logger->critical($errMsg); |
155 | 155 | throw new RuntimeException($errMsg); |
156 | 156 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $this->socket = $this->createClient($address, $bind, $timeout); |
178 | 178 | } catch (\Exception $e) { |
179 | 179 | $this->socket = null; |
180 | - $this->logger->error("SIP2Client: Failed to connect: " . $e->getMessage()); |
|
180 | + $this->logger->error("SIP2Client: Failed to connect: ".$e->getMessage()); |
|
181 | 181 | throw new RuntimeException("Connection failure", 0, $e); |
182 | 182 | } |
183 | 183 |