1
0
mirror of https://github.com/danog/process.git synced 2024-11-29 20:29:16 +01:00

Fix code style

This commit is contained in:
Niklas Keller 2021-03-30 18:47:01 +02:00
parent 41403400d1
commit df35dc1b39
2 changed files with 3 additions and 5 deletions

View File

@ -1,13 +1,11 @@
<?php
$config = new Amp\CodeStyle\Config();
$config = new Amp\CodeStyle\Config;
$config->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;

View File

@ -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);
}
}