@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | public function getCommandLine(): string |
15 | 15 | { |
16 | - return 'watch ' . $this->tube; |
|
16 | + return 'watch '.$this->tube; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | public function parseResponse(string $responseLine, ?string $responseData): ArrayResponse |
@@ -49,7 +49,7 @@ |
||
49 | 49 | } elseif ($responseLine == ResponseInterface::RESPONSE_PAUSED) { |
50 | 50 | return $this->createResponse(ResponseInterface::RESPONSE_PAUSED); |
51 | 51 | } else { |
52 | - throw new Exception('Unhandled response: "' . $responseLine . '"'); |
|
52 | + throw new Exception('Unhandled response: "'.$responseLine.'"'); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | public function getCommandLine(): string |
28 | 28 | { |
29 | - return 'kick ' . $this->max; |
|
29 | + return 'kick '.$this->max; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /* (non-phpdoc) |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | { |
24 | 24 | public function getCommandLine(): string |
25 | 25 | { |
26 | - return 'kick-job ' . $this->jobId; |
|
26 | + return 'kick-job '.$this->jobId; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /* (non-phpdoc) |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } elseif ($responseLine == ResponseInterface::RESPONSE_KICKED) { |
41 | 41 | return $this->createResponse(ResponseInterface::RESPONSE_KICKED); |
42 | 42 | } else { |
43 | - throw new Exception('Unhandled response: ' . $responseLine); |
|
43 | + throw new Exception('Unhandled response: '.$responseLine); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | public function getCommandLine(): string |
18 | 18 | { |
19 | - return 'delete ' . $this->jobId; |
|
19 | + return 'delete '.$this->jobId; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function parseResponse(string $responseLine, ?string $responseData): ArrayResponse |
@@ -73,10 +73,10 @@ |
||
73 | 73 | { |
74 | 74 | $socket = $this->getSocket(); |
75 | 75 | |
76 | - $to_send = $command->getCommandLine() . self::CRLF; |
|
76 | + $to_send = $command->getCommandLine().self::CRLF; |
|
77 | 77 | |
78 | 78 | if ($command->hasData()) { |
79 | - $to_send .= $command->getData() . self::CRLF; |
|
79 | + $to_send .= $command->getData().self::CRLF; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | $socket->write($to_send); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | public function getCommandLine(): string |
19 | 19 | { |
20 | - return 'ignore ' . $this->tube; |
|
20 | + return 'ignore '.$this->tube; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function parseResponse(string $responseLine, ?string $responseData): ArrayResponse |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | ]); |
29 | 29 | } elseif ($responseLine == ResponseInterface::RESPONSE_NOT_IGNORED) { |
30 | 30 | throw new Exception\ServerException( |
31 | - $responseLine . ': cannot ignore last tube in watchlist' |
|
31 | + $responseLine.': cannot ignore last tube in watchlist' |
|
32 | 32 | ); |
33 | 33 | } else { |
34 | - throw new Exception('Unhandled response: ' . $responseLine); |
|
34 | + throw new Exception('Unhandled response: '.$responseLine); |
|
35 | 35 | } |
36 | 36 | } |
37 | 37 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | } elseif ($responseLine == ResponseInterface::RESPONSE_BURIED) { |
45 | 45 | return $this->createResponse(ResponseInterface::RESPONSE_BURIED); |
46 | 46 | } else { |
47 | - throw new Exception('Unhandled response: ' . $responseLine); |
|
47 | + throw new Exception('Unhandled response: '.$responseLine); |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | public function getCommandLine(): string |
20 | 20 | { |
21 | - return 'use ' . $this->tube; |
|
21 | + return 'use '.$this->tube; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function parseResponse(string $responseLine, ?string $responseData): ArrayResponse |