Code Duplication    Length = 9-9 lines in 5 locations

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

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

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

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

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

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

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

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

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

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