Index: trunk/extensions/Deployment/includes/filesystems/Ssh2Filesystem.php |
— | — | @@ -362,13 +362,13 @@ |
363 | 363 | return false; |
364 | 364 | } |
365 | 365 | |
366 | | - while (false !== ( $entry = $dir->read() ) ) { |
| 366 | + while ( ( $entry = $dir->read() ) !== false ) { |
367 | 367 | $struc = array(); |
368 | 368 | $struc['name'] = $entry; |
369 | 369 | |
370 | 370 | if ( |
371 | | - ('.' == $struc['name'] || '..' == $struc['name'] ) |
372 | | - || ( !$includeHidden && '.' == $struc['name'][0] ) |
| 371 | + ( $struc['name'] == '.' || $struc['name'] == '..' ) |
| 372 | + || ( !$includeHidden && $struc['name'][0] == '.' ) |
373 | 373 | || ( $limit_file && $struc['name'] != $limit_file ) |
374 | 374 | ) { |
375 | 375 | continue; // Do not care about these folders. |
— | — | @@ -386,7 +386,7 @@ |
387 | 387 | $struc['time'] = date( 'h:i:s', $struc['lastmodunix'] ); |
388 | 388 | $struc['type'] = $this->isDir( $entryPath ) ? 'd' : 'f'; |
389 | 389 | |
390 | | - if ( 'd' == $struc['type'] ) { |
| 390 | + if ( $struc['type'] == 'd' ) { |
391 | 391 | if ( $recursive ) { |
392 | 392 | $struc['files'] = $this->listDir( $path . '/' . $struc['name'], $includeHidden, $recursive ); |
393 | 393 | } |