@@ -259,12 +259,12 @@ discard block |
||
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | public function getMetadataFull($adapter = "storage_adapter" , $path) |
| 262 | - { |
|
| 263 | - $location = $this->$adapter->applyPathPrefix($path); |
|
| 264 | - $spl_info = new SplFileInfo($location); |
|
| 262 | + { |
|
| 263 | + $location = $this->$adapter->applyPathPrefix($path); |
|
| 264 | + $spl_info = new SplFileInfo($location); |
|
| 265 | 265 | |
| 266 | - return ($spl_info); |
|
| 267 | - } |
|
| 266 | + return ($spl_info); |
|
| 267 | + } |
|
| 268 | 268 | |
| 269 | 269 | |
| 270 | 270 | public function get_backup_archives_list() |
@@ -619,28 +619,28 @@ discard block |
||
| 619 | 619 | global $field, $direction; |
| 620 | 620 | |
| 621 | 621 | $a = $a["' . $field . '"]; |
| 622 | - $b = $b["' . $field . '"]; |
|
| 622 | + $b = $b["' . $field . '"]; |
|
| 623 | 623 | |
| 624 | - if ($a == $b) |
|
| 625 | - { |
|
| 626 | - return 0; |
|
| 627 | - } |
|
| 624 | + if ($a == $b) |
|
| 625 | + { |
|
| 626 | + return 0; |
|
| 627 | + } |
|
| 628 | 628 | |
| 629 | 629 | if(strlower($direction) == 'desc' ) |
| 630 | 630 | return ($a > $b) ? -1 : 1; |
| 631 | 631 | else |
| 632 | 632 | return ($a < $b) ? -1 : 1; |
| 633 | 633 | |
| 634 | - //return ($a ($direction == 'desc' ? '>' : '<') $b) ? -1 : 1; |
|
| 634 | + //return ($a ($direction == 'desc' ? '>' : '<') $b) ? -1 : 1; |
|
| 635 | 635 | } |
| 636 | 636 | |
| 637 | 637 | public function sort_by( &$array, $field, $direction = 'asc') |
| 638 | 638 | { |
| 639 | 639 | $direction = strtolower($direction); |
| 640 | 640 | |
| 641 | - usort($array, array($this, sort_by_usort)); |
|
| 641 | + usort($array, array($this, sort_by_usort)); |
|
| 642 | 642 | |
| 643 | - return true; |
|
| 643 | + return true; |
|
| 644 | 644 | } |
| 645 | 645 | |
| 646 | 646 | public function is_excluded($file) |