@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $this->storage_filesystem_append = new Filesystem($this->storage_adapter, new Config([ |
103 | 103 | 'disable_asserts' => true, |
104 | 104 | ])); |
105 | - }catch (Exception $e) { |
|
105 | + } catch (Exception $e) { |
|
106 | 106 | $this->logger->error("Filesystem Initialization Error: ".$e->getMessage()); |
107 | 107 | } |
108 | 108 | |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | |
511 | 511 | try{ |
512 | 512 | rmdir($this->xcloner_settings->get_xcloner_tmp_path()); |
513 | - }catch(Exception $e){ |
|
513 | + } catch(Exception $e){ |
|
514 | 514 | //silent continue |
515 | 515 | } |
516 | 516 | |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | } |
650 | 650 | } |
651 | 651 | |
652 | - }catch (Exception $e) { |
|
652 | + } catch (Exception $e) { |
|
653 | 653 | |
654 | 654 | $this->logger->error($e->getMessage()); |
655 | 655 | |
@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | |
677 | 677 | $this->tmp_filesystem->delete($tmp_file); |
678 | 678 | |
679 | - }catch (Exception $e) { |
|
679 | + } catch (Exception $e) { |
|
680 | 680 | |
681 | 681 | $this->logger->error($e->getMessage()); |
682 | 682 | |
@@ -714,9 +714,11 @@ discard block |
||
714 | 714 | foreach ($_backup_files_list as $file) { |
715 | 715 | //processing rule folder capacity |
716 | 716 | if ($this->xcloner_settings->get_xcloner_option('xcloner_cleanup_capacity_limit') && |
717 | - $_storage_size >= ($set_storage_limit = 1024 * 1024 * $this->xcloner_settings->get_xcloner_option('xcloner_cleanup_capacity_limit'))) //bytes |
|
717 | + $_storage_size >= ($set_storage_limit = 1024 * 1024 * $this->xcloner_settings->get_xcloner_option('xcloner_cleanup_capacity_limit'))) { |
|
718 | + //bytes |
|
718 | 719 | { |
719 | 720 | $this->storage_filesystem->delete($file['path']); |
721 | + } |
|
720 | 722 | $_storage_size -= $file['size']; |
721 | 723 | $this->logger->info("Deleting backup ".$file['path']." matching rule", array( |
722 | 724 | "STORAGE SIZE LIMIT", |
@@ -983,7 +985,7 @@ discard block |
||
983 | 985 | if ($file['type'] == "dir") { |
984 | 986 | try { |
985 | 987 | $this->tmp_filesystem_append->write($this->get_temp_dir_handler(), $file['path']."\n"); |
986 | - }catch (Exception $e) { |
|
988 | + } catch (Exception $e) { |
|
987 | 989 | $this->logger->error($e->getMessage()); |
988 | 990 | } |
989 | 991 | } |
@@ -1009,7 +1011,7 @@ discard block |
||
1009 | 1011 | |
1010 | 1012 | $this->tmp_filesystem_append->write($this->get_included_files_handler(), $line); |
1011 | 1013 | |
1012 | - }catch (Exception $e) { |
|
1014 | + } catch (Exception $e) { |
|
1013 | 1015 | |
1014 | 1016 | $this->logger->error($e->getMessage()); |
1015 | 1017 | } |