File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -82,27 +82,10 @@ public function receive(&$header)
82
82
* @param string|null $header
83
83
*/
84
84
public function send (string $ payload = null , string $ header = null ): void
85
- {
86
- if ($ header === null ) {
87
- $ this ->relay ->send ('' , Relay::PAYLOAD_CONTROL | Relay::PAYLOAD_NONE );
88
- } else {
89
- $ this ->relay ->send ($ header , Relay::PAYLOAD_CONTROL | Relay::PAYLOAD_RAW );
90
- }
91
-
92
- $ this ->relay ->send ((string )$ payload , Relay::PAYLOAD_RAW );
93
- }
94
-
95
- /**
96
- * Respond to the server with result of task execution and execution context. Uses less amount of sys_calls.
97
- *
98
- * @param string|null $payload
99
- * @param string|null $header
100
- */
101
- public function sendPackage (string $ payload = null , string $ header = null ): void
102
85
{
103
86
$ this ->relay ->sendPackage (
104
87
(string )$ header ,
105
- Relay::PAYLOAD_CONTROL | ($ header ? Relay::PAYLOAD_NONE : Relay::PAYLOAD_RAW ),
88
+ Relay::PAYLOAD_CONTROL | ($ header === null ? Relay::PAYLOAD_NONE : Relay::PAYLOAD_RAW ),
106
89
(string )$ payload ,
107
90
Relay::PAYLOAD_RAW
108
91
);
You can’t perform that action at this time.
0 commit comments