@@ -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() |
@@ -620,19 +620,19 @@ discard block |
||
| 620 | 620 | $direction = $this->sort_direction; |
| 621 | 621 | |
| 622 | 622 | $a = $a["' . $field . '"]; |
| 623 | - $b = $b["' . $field . '"]; |
|
| 623 | + $b = $b["' . $field . '"]; |
|
| 624 | 624 | |
| 625 | - if ($a == $b) |
|
| 626 | - { |
|
| 627 | - return 0; |
|
| 628 | - } |
|
| 625 | + if ($a == $b) |
|
| 626 | + { |
|
| 627 | + return 0; |
|
| 628 | + } |
|
| 629 | 629 | |
| 630 | 630 | if(strlower($direction) == 'desc' ) |
| 631 | 631 | return ($a > $b) ? -1 : 1; |
| 632 | 632 | else |
| 633 | 633 | return ($a < $b) ? -1 : 1; |
| 634 | 634 | |
| 635 | - //return ($a ($direction == 'desc' ? '>' : '<') $b) ? -1 : 1; |
|
| 635 | + //return ($a ($direction == 'desc' ? '>' : '<') $b) ? -1 : 1; |
|
| 636 | 636 | } |
| 637 | 637 | |
| 638 | 638 | public function sort_by( &$array, $field, $direction = 'asc') |
@@ -640,9 +640,9 @@ discard block |
||
| 640 | 640 | $this->sort_direction = strtolower($direction); |
| 641 | 641 | $this->sort_field = $field; |
| 642 | 642 | |
| 643 | - usort($array, array($this, sort_by_usort)); |
|
| 643 | + usort($array, array($this, sort_by_usort)); |
|
| 644 | 644 | |
| 645 | - return true; |
|
| 645 | + return true; |
|
| 646 | 646 | } |
| 647 | 647 | |
| 648 | 648 | public function is_excluded($file) |