Code Duplication    Length = 7-9 lines in 6 locations

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

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

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

@@ 244-250 (lines=7) @@
241
	 *
242
	 * @param array $siteids List of IDs for sites whose entries should be deleted
243
	 */
244
	public function cleanup( array $siteids )
245
	{
246
		$path = 'mshop/customer/manager/submanagers';
247
		foreach( $this->getContext()->getConfig()->get( $path, array( 'address', 'lists' ) ) as $domain ) {
248
			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
249
		}
250
	}
251
252
253
	/**

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

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

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

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

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

@@ 116-124 (lines=9) @@
113
	 *
114
	 * @param integer[] $siteids List of IDs for sites whose entries should be deleted
115
	 */
116
	public function cleanup( array $siteids )
117
	{
118
		$path = 'mshop/customer/manager/property/submanagers';
119
		foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) {
120
			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
121
		}
122
123
		$this->cleanupBase( $siteids, 'mshop/customer/manager/property/laravel/delete' );
124
	}
125
126
127
	/**

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

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