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