Completed
Push — master ( 9c6e06...c902e1 )
by Aimeos
01:46
created
lib/custom/src/MShop/Customer/Manager/Property/Type/FosUser.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 		'customer.property.type.id' => array(
26 26
 			'code' => 'customer.property.type.id',
27 27
 			'internalcode' => 'fosprty."id"',
28
-			'internaldeps' => array( 'LEFT JOIN "fos_user_property_type" AS fosprty ON ( fospr."typeid" = fosprty."id" )' ),
28
+			'internaldeps' => array('LEFT JOIN "fos_user_property_type" AS fosprty ON ( fospr."typeid" = fosprty."id" )'),
29 29
 			'label' => 'Property type ID',
30 30
 			'type' => 'integer',
31 31
 			'internaltype' => \Aimeos\MW\DB\Statement\Base::PARAM_INT,
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
 	 *
100 100
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object
101 101
 	 */
102
-	public function __construct( \Aimeos\MShop\Context\Item\Iface $context )
102
+	public function __construct(\Aimeos\MShop\Context\Item\Iface $context)
103 103
 	{
104
-		parent::__construct( $context );
105
-		$this->setResourceName( 'db-customer' );
104
+		parent::__construct($context);
105
+		$this->setResourceName('db-customer');
106 106
 	}
107 107
 
108 108
 
@@ -111,14 +111,14 @@  discard block
 block discarded – undo
111 111
 	 *
112 112
 	 * @param array $siteids List of IDs for sites whose entries should be deleted
113 113
 	 */
114
-	public function cleanup( array $siteids )
114
+	public function cleanup(array $siteids)
115 115
 	{
116 116
 		$path = 'mshop/customer/manager/property/type/submanagers';
117
-		foreach( $this->getContext()->getConfig()->get( $path, [] ) as $domain ) {
118
-			$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
117
+		foreach ($this->getContext()->getConfig()->get($path, []) as $domain) {
118
+			$this->getObject()->getSubManager($domain)->cleanup($siteids);
119 119
 		}
120 120
 
121
-		$this->cleanupBase( $siteids, 'mshop/customer/manager/property/type/fosuser/delete' );
121
+		$this->cleanupBase($siteids, 'mshop/customer/manager/property/type/fosuser/delete');
122 122
 	}
123 123
 
124 124
 
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
 	 * @param boolean $withsub Return also the resource type of sub-managers if true
129 129
 	 * @return array Type of the manager and submanagers, subtypes are separated by slashes
130 130
 	 */
131
-	public function getResourceType( $withsub = true )
131
+	public function getResourceType($withsub = true)
132 132
 	{
133 133
 		$path = 'mshop/customer/manager/property/type/submanagers';
134 134
 
135
-		return $this->getResourceTypeBase( 'customer/property/type', $path, [], $withsub );
135
+		return $this->getResourceTypeBase('customer/property/type', $path, [], $withsub);
136 136
 	}
137 137
 
138 138
 
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
 	 * @param boolean $withsub Return also attributes of sub-managers if true
143 143
 	 * @return array List of attribute items implementing \Aimeos\MW\Criteria\Attribute\Iface
144 144
 	 */
145
-	public function getSearchAttributes( $withsub = true )
145
+	public function getSearchAttributes($withsub = true)
146 146
 	{
147 147
 		$path = 'mshop/customer/manager/property/type/submanagers';
148 148
 
149
-		return $this->getSearchAttributesBase( $this->searchConfig, $path, [], $withsub );
149
+		return $this->getSearchAttributesBase($this->searchConfig, $path, [], $withsub);
150 150
 	}
151 151
 
152 152
 
@@ -157,9 +157,9 @@  discard block
 block discarded – undo
157 157
 	 * @param string|null $name Name of the implementation, will be from configuration (or Default) if null
158 158
 	 * @return \Aimeos\MShop\Common\Manager\Iface Manager for different extensions, e.g types, lists etc.
159 159
 	 */
160
-	public function getSubManager( $manager, $name = null )
160
+	public function getSubManager($manager, $name = null)
161 161
 	{
162
-		return $this->getSubManagerBase( 'customer', 'property/type/' . $manager, ( $name === null ? 'FosUser' : $name ) );
162
+		return $this->getSubManagerBase('customer', 'property/type/' . $manager, ($name === null ? 'FosUser' : $name));
163 163
 	}
164 164
 
165 165
 
Please login to merge, or discard this patch.