From f22b26d4a35a76a6a61e67b5ecd4d9c907918170 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 16 Dec 2017 19:01:35 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Socket.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Socket.php b/src/Socket.php index 738c8c74..476491ae 100644 --- a/src/Socket.php +++ b/src/Socket.php @@ -134,8 +134,12 @@ if (!extension_loaded('pthreads')) { { $this->protocol = getprotobynumber($protocol); } - public function __destruct() { - if ($this->sock !== NULL) fclose($this->sock); + + public function __destruct() + { + if ($this->sock !== null) { + fclose($this->sock); + } } public function setOption(int $level, int $name, $value)