| @@ 820-863 (lines=44) @@ | ||
| 817 | /** |
|
| 818 | * |
|
| 819 | */ |
|
| 820 | private function deleteError() { |
|
| 821 | $current = current($this->errors); |
|
| 822 | if ($current === false) { |
|
| 823 | return; |
|
| 824 | } |
|
| 825 | ||
| 826 | $this->runner->setInfoArray( |
|
| 827 | [ |
|
| 828 | 'errorMessageA' => '', |
|
| 829 | 'errorMessageB' => '', |
|
| 830 | 'errorMessageC' => '', |
|
| 831 | 'errorException' => '', |
|
| 832 | 'errorIndex' => '' |
|
| 833 | ] |
|
| 834 | ); |
|
| 835 | ||
| 836 | $pos = key($this->errors); |
|
| 837 | ||
| 838 | /** @var ModelIndex $index */ |
|
| 839 | $index = $current['index']; |
|
| 840 | $this->indexService->resetErrorFromIndex($index); |
|
| 841 | ||
| 842 | $errors = []; |
|
| 843 | foreach ($this->errors as $error) { |
|
| 844 | /** @var ModelIndex $errorIndex */ |
|
| 845 | $errorIndex = $error['index']; |
|
| 846 | if ($index->getProviderId() === $errorIndex->getProviderId() |
|
| 847 | && $index->getDocumentId() === $errorIndex->getDocumentId()) { |
|
| 848 | continue; |
|
| 849 | } |
|
| 850 | ||
| 851 | $errors[] = $error; |
|
| 852 | } |
|
| 853 | ||
| 854 | $this->errors = $errors; |
|
| 855 | while (key($this->errors) < $pos) { |
|
| 856 | if (next($this->errors) === false) { |
|
| 857 | end($this->errors); |
|
| 858 | break; |
|
| 859 | } |
|
| 860 | } |
|
| 861 | ||
| 862 | $this->displayError(); |
|
| 863 | } |
|
| 864 | ||
| 865 | ||
| 866 | /** |
|
| @@ 714-757 (lines=44) @@ | ||
| 711 | /** |
|
| 712 | * |
|
| 713 | */ |
|
| 714 | private function deleteError() { |
|
| 715 | $current = current($this->errors); |
|
| 716 | if ($current === false) { |
|
| 717 | return; |
|
| 718 | } |
|
| 719 | ||
| 720 | $this->runner->setInfoArray( |
|
| 721 | [ |
|
| 722 | 'errorMessageA' => '', |
|
| 723 | 'errorMessageB' => '', |
|
| 724 | 'errorMessageC' => '', |
|
| 725 | 'errorException' => '', |
|
| 726 | 'errorIndex' => '' |
|
| 727 | ] |
|
| 728 | ); |
|
| 729 | ||
| 730 | $pos = key($this->errors); |
|
| 731 | ||
| 732 | /** @var ModelIndex $index */ |
|
| 733 | $index = $current['index']; |
|
| 734 | $this->indexService->resetErrorFromIndex($index); |
|
| 735 | ||
| 736 | $errors = []; |
|
| 737 | foreach ($this->errors as $error) { |
|
| 738 | /** @var ModelIndex $errorIndex */ |
|
| 739 | $errorIndex = $error['index']; |
|
| 740 | if ($index->getProviderId() === $errorIndex->getProviderId() |
|
| 741 | && $index->getDocumentId() === $errorIndex->getDocumentId()) { |
|
| 742 | continue; |
|
| 743 | } |
|
| 744 | ||
| 745 | $errors[] = $error; |
|
| 746 | } |
|
| 747 | ||
| 748 | $this->errors = $errors; |
|
| 749 | while (key($this->errors) < $pos) { |
|
| 750 | if (next($this->errors) === false) { |
|
| 751 | end($this->errors); |
|
| 752 | break; |
|
| 753 | } |
|
| 754 | } |
|
| 755 | ||
| 756 | $this->displayError(); |
|
| 757 | } |
|
| 758 | ||
| 759 | ||
| 760 | /** |
|