1
1
<?php
2
+ /**
3
+ * Copyright © 2015 Magento. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
2
6
namespace Magento \Framework \UrlInterface ;
3
7
4
8
/**
@@ -41,8 +45,11 @@ class Proxy implements \Magento\Framework\UrlInterface
41
45
* @param string $instanceName
42
46
* @param bool $shared
43
47
*/
44
- public function __construct (\Magento \Framework \ObjectManagerInterface $ objectManager , $ instanceName = '\\Magento \\Framework \\UrlInterface ' , $ shared = true )
45
- {
48
+ public function __construct (
49
+ \Magento \Framework \ObjectManagerInterface $ objectManager ,
50
+ $ instanceName = '\\Magento \\Framework \\UrlInterface ' ,
51
+ $ shared = true
52
+ ) {
46
53
$ this ->_objectManager = $ objectManager ;
47
54
$ this ->_instanceName = $ instanceName ;
48
55
$ this ->_isShared = $ shared ;
@@ -53,11 +60,13 @@ public function __construct(\Magento\Framework\ObjectManagerInterface $objectMan
53
60
*/
54
61
public function __sleep ()
55
62
{
56
- return array ( '_subject ' , '_isShared ' ) ;
63
+ return [ '_subject ' , '_isShared ' ] ;
57
64
}
58
65
59
66
/**
60
67
* Retrieve ObjectManager from global scope
68
+ *
69
+ * @return void
61
70
*/
62
71
public function __wakeup ()
63
72
{
@@ -66,6 +75,8 @@ public function __wakeup()
66
75
67
76
/**
68
77
* Clone proxied instance
78
+ *
79
+ * @return void
69
80
*/
70
81
public function __clone ()
71
82
{
@@ -98,7 +109,7 @@ public function getUseSession()
98
109
/**
99
110
* {@inheritdoc}
100
111
*/
101
- public function getBaseUrl ($ params = array () )
112
+ public function getBaseUrl ($ params = [] )
102
113
{
103
114
return $ this ->_getSubject ()->getBaseUrl ($ params );
104
115
}
@@ -162,7 +173,7 @@ public function escape($value)
162
173
/**
163
174
* {@inheritdoc}
164
175
*/
165
- public function getDirectUrl ($ url , $ params = array () )
176
+ public function getDirectUrl ($ url , $ params = [] )
166
177
{
167
178
return $ this ->_getSubject ()->getDirectUrl ($ url , $ params );
168
179
}
0 commit comments