mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
formatting
This commit is contained in:
parent
a0abe86651
commit
fdc0e3f113
21 changed files with 118 additions and 111 deletions
|
|
@ -8,7 +8,7 @@
|
|||
namespace Icewind\Streams\Tests;
|
||||
|
||||
class UrlCallback extends \PHPUnit_Framework_TestCase {
|
||||
protected $tempDirs = array();
|
||||
protected $tempDirs = [];
|
||||
|
||||
protected function getTempDir() {
|
||||
$dir = sys_get_temp_dir() . '/streams_' . uniqid();
|
||||
|
|
@ -30,7 +30,7 @@ class UrlCallback extends \PHPUnit_Framework_TestCase {
|
|||
* @var \SplFileInfo $file
|
||||
*/
|
||||
foreach ($iterator as $file) {
|
||||
if (in_array($file->getBasename(), array('.', '..'))) {
|
||||
if (in_array($file->getBasename(), ['.', '..'])) {
|
||||
continue;
|
||||
} elseif ($file->isDir()) {
|
||||
rmdir($file->getPathname());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue