Completed
Push — master ( f136ad...452e16 )
by Aimeos
02:28
created
controller/frontend/src/Controller/Frontend/Customer/Standard.php 1 patch
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
 	 * @return \Aimeos\MShop\Customer\Item\Iface Customer item
29 29
 	 * @since 2017.04
30 30
 	 */
31
-	public function addItem( array $values )
31
+	public function addItem(array $values)
32 32
 	{
33
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer' );
33
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer');
34 34
 
35 35
 		$item = $manager->createItem();
36
-		$item->fromArray( $values );
37
-		$manager->saveItem( $item );
36
+		$item->fromArray($values);
37
+		$manager->saveItem($item);
38 38
 
39 39
 		return $item;
40 40
 	}
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
 	 *
46 46
 	 * @return \Aimeos\MShop\Customer\Item\Iface Customer item
47 47
 	 */
48
-	public function createItem( array $values = [] )
48
+	public function createItem(array $values = [])
49 49
 	{
50
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer' );
50
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer');
51 51
 
52 52
 		$item = $manager->createItem();
53
-		$item->fromArray( $values );
54
-		$item->setStatus( 1 );
53
+		$item->fromArray($values);
54
+		$item->setStatus(1);
55 55
 
56 56
 		return $item;
57 57
 	}
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
 	 * @param string $id Unique customer ID
64 64
 	 * @since 2017.04
65 65
 	 */
66
-	public function deleteItem( $id )
66
+	public function deleteItem($id)
67 67
 	{
68
-		$this->checkUser( $id );
68
+		$this->checkUser($id);
69 69
 
70
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer' );
71
-		$manager->deleteItem( $id );
70
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer');
71
+		$manager->deleteItem($id);
72 72
 	}
73 73
 
74 74
 
@@ -80,15 +80,15 @@  discard block
 block discarded – undo
80 80
 	 * @return \Aimeos\MShop\Customer\Item\Iface Customer item
81 81
 	 * @since 2017.04
82 82
 	 */
83
-	public function editItem( $id, array $values )
83
+	public function editItem($id, array $values)
84 84
 	{
85
-		$this->checkUser( $id );
85
+		$this->checkUser($id);
86 86
 
87
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer' );
87
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer');
88 88
 
89
-		$item = $manager->getItem( $id, [], true );
90
-		$item->fromArray( $values );
91
-		$manager->saveItem( $item );
89
+		$item = $manager->getItem($id, [], true);
90
+		$item->fromArray($values);
91
+		$manager->saveItem($item);
92 92
 
93 93
 		return $item;
94 94
 	}
@@ -102,17 +102,17 @@  discard block
 block discarded – undo
102 102
 	 * @return \Aimeos\MShop\Customer\Item\Iface Customer item including the referenced domains items
103 103
 	 * @since 2017.04
104 104
 	 */
105
-	public function getItem( $id = null, array $domains = [] )
105
+	public function getItem($id = null, array $domains = [])
106 106
 	{
107
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer' );
107
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer');
108 108
 
109
-		if( $id === null ) {
110
-			return $manager->getItem( $this->getContext()->getUserId(), $domains, true );
109
+		if ($id === null) {
110
+			return $manager->getItem($this->getContext()->getUserId(), $domains, true);
111 111
 		}
112 112
 
113
-		$this->checkUser( $id );
113
+		$this->checkUser($id);
114 114
 
115
-		return $manager->getItem( $id, $domains, true );
115
+		return $manager->getItem($id, $domains, true);
116 116
 	}
117 117
 
118 118
 
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
 	 * @return \Aimeos\MShop\Customer\Item\Iface Customer item including the referenced domains items
127 127
 	 * @since 2017.04
128 128
 	 */
129
-	public function findItem( $code, array $domains = [] )
129
+	public function findItem($code, array $domains = [])
130 130
 	{
131
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer' )->findItem( $code, $domains );
131
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer')->findItem($code, $domains);
132 132
 	}
133 133
 
134 134
 
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
 	 *
138 138
 	 * @param \Aimeos\MShop\Customer\Item\Iface Customer item
139 139
 	 */
140
-	public function saveItem( \Aimeos\MShop\Customer\Item\Iface $item )
140
+	public function saveItem(\Aimeos\MShop\Customer\Item\Iface $item)
141 141
 	{
142
-		\Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer' )->saveItem( $item );
142
+		\Aimeos\MShop\Factory::createManager($this->getContext(), 'customer')->saveItem($item);
143 143
 	}
144 144
 
145 145
 
@@ -150,15 +150,15 @@  discard block
 block discarded – undo
150 150
 	 * @return \Aimeos\MShop\Customer\Item\Address\Iface Customer address item
151 151
 	 * @since 2017.04
152 152
 	 */
153
-	public function addAddressItem( array $values )
153
+	public function addAddressItem(array $values)
154 154
 	{
155 155
 		$context = $this->getContext();
156
-		$manager = \Aimeos\MShop\Factory::createManager( $context, 'customer/address' );
156
+		$manager = \Aimeos\MShop\Factory::createManager($context, 'customer/address');
157 157
 
158 158
 		$item = $manager->createItem();
159
-		$item->fromArray( $values );
160
-		$item->setParentId( $context->getUserId() );
161
-		$manager->saveItem( $item );
159
+		$item->fromArray($values);
160
+		$item->setParentId($context->getUserId());
161
+		$manager->saveItem($item);
162 162
 
163 163
 		return $item;
164 164
 	}
@@ -169,14 +169,14 @@  discard block
 block discarded – undo
169 169
 	 *
170 170
 	 * @return \Aimeos\MShop\Customer\Item\Address\Iface Customer address item
171 171
 	 */
172
-	public function createAddressItem( array $values = [] )
172
+	public function createAddressItem(array $values = [])
173 173
 	{
174 174
 		$context = $this->getContext();
175
-		$manager = \Aimeos\MShop\Factory::createManager( $context, 'customer/address' );
175
+		$manager = \Aimeos\MShop\Factory::createManager($context, 'customer/address');
176 176
 
177 177
 		$item = $manager->createItem();
178
-		$item->fromArray( $values );
179
-		$item->setParentId( $context->getUserId() );
178
+		$item->fromArray($values);
179
+		$item->setParentId($context->getUserId());
180 180
 
181 181
 		return $item;
182 182
 	}
@@ -188,13 +188,13 @@  discard block
 block discarded – undo
188 188
 	 * @param string $id Unique customer address ID
189 189
 	 * @since 2017.04
190 190
 	 */
191
-	public function deleteAddressItem( $id )
191
+	public function deleteAddressItem($id)
192 192
 	{
193
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer/address' );
193
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer/address');
194 194
 
195
-		$this->checkUser( $manager->getItem( $id, [], true )->getParentId() );
195
+		$this->checkUser($manager->getItem($id, [], true)->getParentId());
196 196
 
197
-		$manager->deleteItem( $id );
197
+		$manager->deleteItem($id);
198 198
 	}
199 199
 
200 200
 
@@ -206,15 +206,15 @@  discard block
 block discarded – undo
206 206
 	 * @return \Aimeos\MShop\Customer\Item\Address\Iface Customer address item
207 207
 	 * @since 2017.04
208 208
 	 */
209
-	public function editAddressItem( $id, array $values )
209
+	public function editAddressItem($id, array $values)
210 210
 	{
211
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer/address' );
211
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer/address');
212 212
 
213
-		$item = $manager->getItem( $id, [], true );
214
-		$this->checkUser( $item->getParentId() );
213
+		$item = $manager->getItem($id, [], true);
214
+		$this->checkUser($item->getParentId());
215 215
 
216
-		$item->fromArray( $values );
217
-		$manager->saveItem( $item );
216
+		$item->fromArray($values);
217
+		$manager->saveItem($item);
218 218
 
219 219
 		return $item;
220 220
 	}
@@ -227,12 +227,12 @@  discard block
 block discarded – undo
227 227
 	 * @return \Aimeos\MShop\Customer\Item\Address\Iface Customer address item
228 228
 	 * @since 2017.04
229 229
 	 */
230
-	public function getAddressItem( $id )
230
+	public function getAddressItem($id)
231 231
 	{
232
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer/address' );
233
-		$item = $manager->getItem( $id );
232
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'customer/address');
233
+		$item = $manager->getItem($id);
234 234
 
235
-		$this->checkUser( $item->getParentId() );
235
+		$this->checkUser($item->getParentId());
236 236
 
237 237
 		return $item;
238 238
 	}
@@ -243,9 +243,9 @@  discard block
 block discarded – undo
243 243
 	 *
244 244
 	 * @param \Aimeos\MShop\Customer\Item\Address\Iface Customer address item
245 245
 	 */
246
-	public function saveAddressItem( \Aimeos\MShop\Customer\Item\Address\Iface $item )
246
+	public function saveAddressItem(\Aimeos\MShop\Customer\Item\Address\Iface $item)
247 247
 	{
248
-		\Aimeos\MShop\Factory::createManager( $this->getContext(), 'customer/address' )->saveItem( $item );
248
+		\Aimeos\MShop\Factory::createManager($this->getContext(), 'customer/address')->saveItem($item);
249 249
 	}
250 250
 
251 251
 
@@ -255,12 +255,12 @@  discard block
 block discarded – undo
255 255
 	 * @param string $id Unique customer ID
256 256
 	 * @throws \Aimeos\Controller\Frontend\Customer\Exception If access isn't allowed
257 257
 	 */
258
-	protected function checkUser( $id )
258
+	protected function checkUser($id)
259 259
 	{
260
-		if( $id !== $this->getContext()->getUserId() )
260
+		if ($id !== $this->getContext()->getUserId())
261 261
 		{
262
-			$msg = sprintf( 'Not allowed to access customer data for ID "%1$s"', $id );
263
-			throw new \Aimeos\Controller\Frontend\Customer\Exception( $msg );
262
+			$msg = sprintf('Not allowed to access customer data for ID "%1$s"', $id);
263
+			throw new \Aimeos\Controller\Frontend\Customer\Exception($msg);
264 264
 		}
265 265
 	}
266 266
 }
Please login to merge, or discard this patch.
frontend/tests/Controller/Frontend/Customer/Decorator/BaseTest.php 1 patch
Spacing   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -20,76 +20,76 @@  discard block
 block discarded – undo
20 20
 	{
21 21
 		$this->context = \TestHelperFrontend::getContext();
22 22
 
23
-		$this->stub = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Customer\Standard' )
23
+		$this->stub = $this->getMockBuilder('\Aimeos\Controller\Frontend\Customer\Standard')
24 24
 			->disableOriginalConstructor()
25 25
 			->getMock();
26 26
 
27
-		$this->object = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Customer\Decorator\Base' )
28
-			->setConstructorArgs( [$this->stub, $this->context] )
27
+		$this->object = $this->getMockBuilder('\Aimeos\Controller\Frontend\Customer\Decorator\Base')
28
+			->setConstructorArgs([$this->stub, $this->context])
29 29
 			->getMockForAbstractClass();
30 30
 	}
31 31
 
32 32
 
33 33
 	protected function tearDown()
34 34
 	{
35
-		unset( $this->context, $this->object, $this->stub );
35
+		unset($this->context, $this->object, $this->stub);
36 36
 	}
37 37
 
38 38
 
39 39
 	public function testConstructException()
40 40
 	{
41
-		$stub = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Iface' )->getMock();
41
+		$stub = $this->getMockBuilder('\Aimeos\Controller\Frontend\Iface')->getMock();
42 42
 
43
-		$this->setExpectedException( '\Aimeos\Controller\Frontend\Exception' );
43
+		$this->setExpectedException('\Aimeos\Controller\Frontend\Exception');
44 44
 
45
-		$this->getMockBuilder( '\Aimeos\Controller\Frontend\Customer\Decorator\Base' )
46
-			->setConstructorArgs( [$stub, $this->context] )
45
+		$this->getMockBuilder('\Aimeos\Controller\Frontend\Customer\Decorator\Base')
46
+			->setConstructorArgs([$stub, $this->context])
47 47
 			->getMockForAbstractClass();
48 48
 	}
49 49
 
50 50
 
51 51
 	public function testCall()
52 52
 	{
53
-		$stub = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Customer\Standard' )
53
+		$stub = $this->getMockBuilder('\Aimeos\Controller\Frontend\Customer\Standard')
54 54
 			->disableOriginalConstructor()
55
-			->setMethods( ['invalid'] )
55
+			->setMethods(['invalid'])
56 56
 			->getMock();
57 57
 
58
-		$object = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Customer\Decorator\Base' )
59
-			->setConstructorArgs( [$stub, $this->context] )
58
+		$object = $this->getMockBuilder('\Aimeos\Controller\Frontend\Customer\Decorator\Base')
59
+			->setConstructorArgs([$stub, $this->context])
60 60
 			->getMockForAbstractClass();
61 61
 
62
-		$stub->expects( $this->once() )->method( 'invalid' )->will( $this->returnValue( true ) );
62
+		$stub->expects($this->once())->method('invalid')->will($this->returnValue(true));
63 63
 
64
-		$this->assertTrue( $object->invalid() );
64
+		$this->assertTrue($object->invalid());
65 65
 	}
66 66
 
67 67
 
68 68
 	public function testAddItem()
69 69
 	{
70
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer' )->createItem();
70
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer')->createItem();
71 71
 
72
-		$this->stub->expects( $this->once() )->method( 'addItem' )
73
-			->will( $this->returnValue( $item ) );
72
+		$this->stub->expects($this->once())->method('addItem')
73
+			->will($this->returnValue($item));
74 74
 
75
-		$this->assertInstanceOf( '\Aimeos\MShop\Customer\Item\Iface', $this->object->addItem( [] ) );
75
+		$this->assertInstanceOf('\Aimeos\MShop\Customer\Item\Iface', $this->object->addItem([]));
76 76
 	}
77 77
 
78 78
 
79 79
 	public function testCreateItem()
80 80
 	{
81
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer' )->createItem();
81
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer')->createItem();
82 82
 
83
-		$this->stub->expects( $this->once() )->method( 'createItem' )
84
-			->will( $this->returnValue( $item ) );
83
+		$this->stub->expects($this->once())->method('createItem')
84
+			->will($this->returnValue($item));
85 85
 
86
-		$this->assertInstanceOf( '\Aimeos\MShop\Customer\Item\Iface', $this->object->createItem() );
86
+		$this->assertInstanceOf('\Aimeos\MShop\Customer\Item\Iface', $this->object->createItem());
87 87
 	}
88 88
 
89 89
 
90 90
 	public function testDeleteItem()
91 91
 	{
92
-		$this->stub->expects( $this->once() )->method( 'deleteItem' );
92
+		$this->stub->expects($this->once())->method('deleteItem');
93 93
 
94 94
 		$this->object->deleteItem( -1 );
95 95
 	}
@@ -97,61 +97,61 @@  discard block
 block discarded – undo
97 97
 
98 98
 	public function testEditItem()
99 99
 	{
100
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer' )->createItem();
100
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer')->createItem();
101 101
 
102
-		$this->stub->expects( $this->once() )->method( 'editItem' )
103
-			->will( $this->returnValue( $item ) );
102
+		$this->stub->expects($this->once())->method('editItem')
103
+			->will($this->returnValue($item));
104 104
 
105
-		$this->assertInstanceOf( '\Aimeos\MShop\Customer\Item\Iface', $this->object->editItem( -1, [] ) );
105
+		$this->assertInstanceOf('\Aimeos\MShop\Customer\Item\Iface', $this->object->editItem( -1, [] ));
106 106
 	}
107 107
 
108 108
 
109 109
 	public function testGetItem()
110 110
 	{
111
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer' )->createItem();
111
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer')->createItem();
112 112
 
113
-		$this->stub->expects( $this->once() )->method( 'getItem' )
114
-			->will( $this->returnValue( $item ) );
113
+		$this->stub->expects($this->once())->method('getItem')
114
+			->will($this->returnValue($item));
115 115
 
116
-		$this->assertInstanceOf( '\Aimeos\MShop\Customer\Item\Iface', $this->object->getItem( -1 ) );
116
+		$this->assertInstanceOf('\Aimeos\MShop\Customer\Item\Iface', $this->object->getItem( -1 ));
117 117
 	}
118 118
 
119 119
 
120 120
 	public function testFindItem()
121 121
 	{
122
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer' )->createItem();
122
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer')->createItem();
123 123
 
124
-		$this->stub->expects( $this->once() )->method( 'findItem' )
125
-			->will( $this->returnValue( $item ) );
124
+		$this->stub->expects($this->once())->method('findItem')
125
+			->will($this->returnValue($item));
126 126
 
127
-		$this->assertInstanceOf( '\Aimeos\MShop\Customer\Item\Iface', $this->object->findItem( 'test' ) );
127
+		$this->assertInstanceOf('\Aimeos\MShop\Customer\Item\Iface', $this->object->findItem('test'));
128 128
 	}
129 129
 
130 130
 
131 131
 	public function testSaveItem()
132 132
 	{
133
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer' )->createItem();
133
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer')->createItem();
134 134
 
135
-		$this->stub->expects( $this->once() )->method( 'saveItem' );
135
+		$this->stub->expects($this->once())->method('saveItem');
136 136
 
137
-		$this->object->saveItem( $item );
137
+		$this->object->saveItem($item);
138 138
 	}
139 139
 
140 140
 
141 141
 	public function testCreateAddressItem()
142 142
 	{
143
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer/address' )->createItem();
143
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer/address')->createItem();
144 144
 
145
-		$this->stub->expects( $this->once() )->method( 'createAddressItem' )
146
-			->will( $this->returnValue( $item ) );
145
+		$this->stub->expects($this->once())->method('createAddressItem')
146
+			->will($this->returnValue($item));
147 147
 
148
-		$this->assertInstanceOf( '\Aimeos\MShop\Customer\Item\Address\Iface', $this->object->createAddressItem() );
148
+		$this->assertInstanceOf('\Aimeos\MShop\Customer\Item\Address\Iface', $this->object->createAddressItem());
149 149
 	}
150 150
 
151 151
 
152 152
 	public function testDeleteAddressItem()
153 153
 	{
154
-		$this->stub->expects( $this->once() )->method( 'deleteAddressItem' );
154
+		$this->stub->expects($this->once())->method('deleteAddressItem');
155 155
 
156 156
 		$this->object->deleteAddressItem( -1 );
157 157
 	}
@@ -159,49 +159,49 @@  discard block
 block discarded – undo
159 159
 
160 160
 	public function testEditAddressItem()
161 161
 	{
162
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer/address' )->createItem();
162
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer/address')->createItem();
163 163
 
164
-		$this->stub->expects( $this->once() )->method( 'editAddressItem' )
165
-			->will( $this->returnValue( $item ) );
164
+		$this->stub->expects($this->once())->method('editAddressItem')
165
+			->will($this->returnValue($item));
166 166
 
167
-		$this->assertInstanceOf( '\Aimeos\MShop\Customer\Item\Address\Iface', $this->object->editAddressItem( -1, [] ) );
167
+		$this->assertInstanceOf('\Aimeos\MShop\Customer\Item\Address\Iface', $this->object->editAddressItem( -1, [] ));
168 168
 	}
169 169
 
170 170
 
171 171
 	public function testGetAddressItem()
172 172
 	{
173
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer/address' )->createItem();
173
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer/address')->createItem();
174 174
 
175
-		$this->stub->expects( $this->once() )->method( 'getAddressItem' )
176
-			->will( $this->returnValue( $item ) );
175
+		$this->stub->expects($this->once())->method('getAddressItem')
176
+			->will($this->returnValue($item));
177 177
 
178
-		$this->assertInstanceOf( '\Aimeos\MShop\Customer\Item\Address\Iface', $this->object->getAddressItem( -1 ) );
178
+		$this->assertInstanceOf('\Aimeos\MShop\Customer\Item\Address\Iface', $this->object->getAddressItem( -1 ));
179 179
 	}
180 180
 
181 181
 
182 182
 	public function testSaveAddressItem()
183 183
 	{
184
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'customer/address' )->createItem();
184
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'customer/address')->createItem();
185 185
 
186
-		$this->stub->expects( $this->once() )->method( 'saveAddressItem' );
186
+		$this->stub->expects($this->once())->method('saveAddressItem');
187 187
 
188
-		$this->object->saveAddressItem( $item );
188
+		$this->object->saveAddressItem($item);
189 189
 	}
190 190
 
191 191
 
192 192
 	public function testGetController()
193 193
 	{
194
-		$result = $this->access( 'getController' )->invokeArgs( $this->object, [] );
194
+		$result = $this->access('getController')->invokeArgs($this->object, []);
195 195
 
196
-		$this->assertSame( $this->stub, $result );
196
+		$this->assertSame($this->stub, $result);
197 197
 	}
198 198
 
199 199
 
200
-	protected function access( $name )
200
+	protected function access($name)
201 201
 	{
202
-		$class = new \ReflectionClass( '\Aimeos\Controller\Frontend\Customer\Decorator\Base' );
203
-		$method = $class->getMethod( $name );
204
-		$method->setAccessible( true );
202
+		$class = new \ReflectionClass('\Aimeos\Controller\Frontend\Customer\Decorator\Base');
203
+		$method = $class->getMethod($name);
204
+		$method->setAccessible(true);
205 205
 
206 206
 		return $method;
207 207
 	}
Please login to merge, or discard this patch.