diff --git a/.php_cs b/.php_cs index 8d02bce..f470df8 100644 --- a/.php_cs +++ b/.php_cs @@ -1,13 +1,11 @@ getFinder() ->in(__DIR__ . '/examples') ->in(__DIR__ . '/lib') ->in(__DIR__ . '/test'); -$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__; - -$config->setCacheFile($cacheDir . '/.php_cs.cache'); +$config->setCacheFile(__DIR__ . '/.php_cs.cache'); return $config; diff --git a/lib/Internal/Windows/SocketConnector.php b/lib/Internal/Windows/SocketConnector.php index 9d326a7..da5e250 100644 --- a/lib/Internal/Windows/SocketConnector.php +++ b/lib/Internal/Windows/SocketConnector.php @@ -311,7 +311,7 @@ final class SocketConnector // Explicitly \fclose() sockets, as resource streams shut only one side down. foreach ($handle->sockets as $sock) { // Ensure socket is still open before attempting to close. - if (is_resource($sock)) { + if (\is_resource($sock)) { @\fclose($sock); } }