| @@ 824-867 (lines=44) @@ | ||
| 821 | /** |
|
| 822 | * |
|
| 823 | */ |
|
| 824 | private function deleteError() { |
|
| 825 | $current = current($this->errors); |
|
| 826 | if ($current === false) { |
|
| 827 | return; |
|
| 828 | } |
|
| 829 | ||
| 830 | $this->runner->setInfoArray( |
|
| 831 | [ |
|
| 832 | 'errorMessageA' => '', |
|
| 833 | 'errorMessageB' => '', |
|
| 834 | 'errorMessageC' => '', |
|
| 835 | 'errorException' => '', |
|
| 836 | 'errorIndex' => '' |
|
| 837 | ] |
|
| 838 | ); |
|
| 839 | ||
| 840 | $pos = key($this->errors); |
|
| 841 | ||
| 842 | /** @var ModelIndex $index */ |
|
| 843 | $index = $current['index']; |
|
| 844 | $this->indexService->resetErrorFromIndex($index); |
|
| 845 | ||
| 846 | $errors = []; |
|
| 847 | foreach ($this->errors as $error) { |
|
| 848 | /** @var ModelIndex $errorIndex */ |
|
| 849 | $errorIndex = $error['index']; |
|
| 850 | if ($index->getProviderId() === $errorIndex->getProviderId() |
|
| 851 | && $index->getDocumentId() === $errorIndex->getDocumentId()) { |
|
| 852 | continue; |
|
| 853 | } |
|
| 854 | ||
| 855 | $errors[] = $error; |
|
| 856 | } |
|
| 857 | ||
| 858 | $this->errors = $errors; |
|
| 859 | while (key($this->errors) < $pos) { |
|
| 860 | if (next($this->errors) === false) { |
|
| 861 | end($this->errors); |
|
| 862 | break; |
|
| 863 | } |
|
| 864 | } |
|
| 865 | ||
| 866 | $this->displayError(); |
|
| 867 | } |
|
| 868 | ||
| 869 | ||
| 870 | /** |
|
| @@ 735-778 (lines=44) @@ | ||
| 732 | /** |
|
| 733 | * |
|
| 734 | */ |
|
| 735 | private function deleteError() { |
|
| 736 | $current = current($this->errors); |
|
| 737 | if ($current === false) { |
|
| 738 | return; |
|
| 739 | } |
|
| 740 | ||
| 741 | $this->runner->setInfoArray( |
|
| 742 | [ |
|
| 743 | 'errorMessageA' => '', |
|
| 744 | 'errorMessageB' => '', |
|
| 745 | 'errorMessageC' => '', |
|
| 746 | 'errorException' => '', |
|
| 747 | 'errorIndex' => '' |
|
| 748 | ] |
|
| 749 | ); |
|
| 750 | ||
| 751 | $pos = key($this->errors); |
|
| 752 | ||
| 753 | /** @var ModelIndex $index */ |
|
| 754 | $index = $current['index']; |
|
| 755 | $this->indexService->resetErrorFromIndex($index); |
|
| 756 | ||
| 757 | $errors = []; |
|
| 758 | foreach ($this->errors as $error) { |
|
| 759 | /** @var ModelIndex $errorIndex */ |
|
| 760 | $errorIndex = $error['index']; |
|
| 761 | if ($index->getProviderId() === $errorIndex->getProviderId() |
|
| 762 | && $index->getDocumentId() === $errorIndex->getDocumentId()) { |
|
| 763 | continue; |
|
| 764 | } |
|
| 765 | ||
| 766 | $errors[] = $error; |
|
| 767 | } |
|
| 768 | ||
| 769 | $this->errors = $errors; |
|
| 770 | while (key($this->errors) < $pos) { |
|
| 771 | if (next($this->errors) === false) { |
|
| 772 | end($this->errors); |
|
| 773 | break; |
|
| 774 | } |
|
| 775 | } |
|
| 776 | ||
| 777 | $this->displayError(); |
|
| 778 | } |
|
| 779 | ||
| 780 | ||
| 781 | /** |
|