1
0
mirror of https://github.com/danog/process.git synced 2024-11-26 20:24:43 +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 <?php
$config = new Amp\CodeStyle\Config(); $config = new Amp\CodeStyle\Config;
$config->getFinder() $config->getFinder()
->in(__DIR__ . '/examples') ->in(__DIR__ . '/examples')
->in(__DIR__ . '/lib') ->in(__DIR__ . '/lib')
->in(__DIR__ . '/test'); ->in(__DIR__ . '/test');
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__; $config->setCacheFile(__DIR__ . '/.php_cs.cache');
$config->setCacheFile($cacheDir . '/.php_cs.cache');
return $config; return $config;

View File

@ -311,7 +311,7 @@ final class SocketConnector
// Explicitly \fclose() sockets, as resource streams shut only one side down. // Explicitly \fclose() sockets, as resource streams shut only one side down.
foreach ($handle->sockets as $sock) { foreach ($handle->sockets as $sock) {
// Ensure socket is still open before attempting to close. // Ensure socket is still open before attempting to close.
if (is_resource($sock)) { if (\is_resource($sock)) {
@\fclose($sock); @\fclose($sock);
} }
} }