Code Duplication    Length = 9-9 lines in 5 locations

lib/custom/src/MShop/Customer/Manager/Address/Laravel.php 1 location

@@ 218-226 (lines=9) @@
215
	 *
216
	 * @param array $siteids List of IDs for sites whose entries should be deleted
217
	 */
218
	public function cleanup( array $siteids )
219
	{
220
		$path = 'mshop/customer/manager/address/submanagers';
221
		foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) {
222
			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
223
		}
224
225
		$this->cleanupBase( $siteids, 'mshop/customer/manager/address/laravel/delete' );
226
	}
227
228
229
	/**

lib/custom/src/MShop/Customer/Manager/Lists/Laravel.php 1 location

@@ 134-142 (lines=9) @@
131
	 *
132
	 * @param array $siteids List of IDs for sites whose entries should be deleted
133
	 */
134
	public function cleanup( array $siteids )
135
	{
136
		$path = 'mshop/customer/manager/lists/submanagers';
137
		foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) {
138
			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
139
		}
140
141
		$this->cleanupBase( $siteids, 'mshop/customer/manager/lists/laravel/delete' );
142
	}
143
144
145
	/**

lib/custom/src/MShop/Customer/Manager/Lists/Type/Laravel.php 1 location

@@ 104-112 (lines=9) @@
101
	 *
102
	 * @param array $siteids List of IDs for sites whose entries should be deleted
103
	 */
104
	public function cleanup( array $siteids )
105
	{
106
		$path = 'mshop/customer/manager/lists/type/submanagers';
107
		foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) {
108
			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
109
		}
110
111
		$this->cleanupBase( $siteids, 'mshop/customer/manager/lists/type/laravel/delete' );
112
	}
113
114
115
	/**

lib/custom/src/MShop/Customer/Manager/Property/Laravel.php 1 location

@@ 102-110 (lines=9) @@
99
	 *
100
	 * @param integer[] $siteids List of IDs for sites whose entries should be deleted
101
	 */
102
	public function cleanup( array $siteids )
103
	{
104
		$path = 'mshop/customer/manager/property/submanagers';
105
		foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) {
106
			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
107
		}
108
109
		$this->cleanupBase( $siteids, 'mshop/customer/manager/property/laravel/delete' );
110
	}
111
112
113
	/**

lib/custom/src/MShop/Customer/Manager/Property/Type/Laravel.php 1 location

@@ 107-115 (lines=9) @@
104
	 *
105
	 * @param array $siteids List of IDs for sites whose entries should be deleted
106
	 */
107
	public function cleanup( array $siteids )
108
	{
109
		$path = 'mshop/customer/manager/property/type/submanagers';
110
		foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) {
111
			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
112
		}
113
114
		$this->cleanupBase( $siteids, 'mshop/customer/manager/property/type/laravel/delete' );
115
	}
116
117
118
	/**