@@ -75,11 +75,11 @@ public function __construct($name, $directory, $directorySeparator) {
7575 public function run () {
7676 echo 'Run test ' .self ::TEST_MKDIR .PHP_EOL ;
7777 $ this ->results [self ::TEST_MKDIR ] = $ this ->stopwatch (function () { $ this ->testMkdir ($ this ->directory ,3 ); });
78-
78+
7979 echo 'Run test ' .self ::TEST_WRITE1 .PHP_EOL ;
8080 $ data = str_repeat ('abcdefghij ' , 1024 );
8181 $ this ->results [self ::TEST_WRITE1 ] = $ this ->stopwatch (function () use ($ data ) { $ this ->testWrite ('append.bin ' , $ data , 1024 ); });
82-
82+
8383 echo 'Run test ' .self ::TEST_WRITE2 .PHP_EOL ;
8484 $ data = str_repeat ('abcdefghij ' , 1024 *1024 );
8585 $ this ->results [self ::TEST_WRITE2 ] = $ this ->stopwatch (function () use ($ data ) { $ this ->testWrite ('big.bin ' ,$ data , 1 ); });
@@ -99,19 +99,19 @@ private function stopwatch($callable) {
9999 }
100100
101101 public function testRmdir ($ dir ) {
102- if (is_dir ($ dir )) {
103- $ objects = scandir ($ dir );
104- foreach ($ objects as $ object ) {
105- if ($ object === ". " || $ object === ".. " ) {
102+ if (is_dir ($ dir )) {
103+ $ objects = scandir ($ dir );
104+ foreach ($ objects as $ object ) {
105+ if ($ object === ". " || $ object === ".. " ) {
106106 continue ;
107107 }
108108 if (filetype ($ dir ."/ " .$ object ) == "dir " ) {
109109 $ this ->testRmdir ($ dir ."/ " .$ object );
110110 }
111- else unlink ($ dir ."/ " .$ object );
111+ else unlink ($ dir ."/ " .$ object );
112112 }
113- reset ($ objects );
114- rmdir ($ dir );
113+ reset ($ objects );
114+ rmdir ($ dir );
115115 }
116116 }
117117
@@ -147,7 +147,7 @@ public function testRead($filename, $filesize, $step) {
147147 fread ($ handle , $ step );
148148 }
149149 fclose ($ handle );
150-
150+
151151 }
152152
153153 /**
0 commit comments