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:
parent
41403400d1
commit
df35dc1b39
6
.php_cs
6
.php_cs
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user