6
6
7
7
namespace Magento \Store \Model ;
8
8
9
+ use Magento \Framework \App \Config ;
9
10
use Magento \Framework \App \ObjectManager ;
10
11
use Magento \Framework \Exception \NoSuchEntityException ;
11
12
use Magento \Store \Model \ResourceModel \Website \CollectionFactory ;
12
- use Magento \Framework \App \Config ;
13
13
14
14
/**
15
15
* Information Expert in store websites handling
@@ -64,7 +64,7 @@ public function __construct(
64
64
}
65
65
66
66
/**
67
- * { @inheritdoc}
67
+ * @inheritdoc
68
68
*/
69
69
public function get ($ code )
70
70
{
@@ -79,7 +79,12 @@ public function get($code)
79
79
80
80
if ($ website ->getId () === null ) {
81
81
throw new NoSuchEntityException (
82
- __ (sprintf ("The website with code %s that was requested wasn't found. Verify the website and try again. " , $ code ))
82
+ __ (
83
+ sprintf (
84
+ "The website with code %s that was requested wasn't found. Verify the website and try again. " ,
85
+ $ code
86
+ )
87
+ )
83
88
);
84
89
}
85
90
$ this ->entities [$ code ] = $ website ;
@@ -88,7 +93,7 @@ public function get($code)
88
93
}
89
94
90
95
/**
91
- * { @inheritdoc}
96
+ * @inheritdoc
92
97
*/
93
98
public function getById ($ id )
94
99
{
@@ -103,7 +108,12 @@ public function getById($id)
103
108
104
109
if ($ website ->getId () === null ) {
105
110
throw new NoSuchEntityException (
106
- __ (sprintf ("The website with id %s that was requested wasn't found. Verify the website and try again. " , $ id ))
111
+ __ (
112
+ sprintf (
113
+ "The website with id %s that was requested wasn't found. Verify the website and try again. " ,
114
+ $ id
115
+ )
116
+ )
107
117
);
108
118
}
109
119
$ this ->entities [$ website ->getCode ()] = $ website ;
@@ -112,7 +122,7 @@ public function getById($id)
112
122
}
113
123
114
124
/**
115
- * { @inheritdoc}
125
+ * @inheritdoc
116
126
*/
117
127
public function getList ()
118
128
{
@@ -131,7 +141,7 @@ public function getList()
131
141
}
132
142
133
143
/**
134
- * { @inheritdoc}
144
+ * @inheritdoc
135
145
*/
136
146
public function getDefault ()
137
147
{
@@ -154,7 +164,7 @@ public function getDefault()
154
164
}
155
165
156
166
/**
157
- * { @inheritdoc}
167
+ * @inheritdoc
158
168
*/
159
169
public function clean ()
160
170
{
@@ -180,6 +190,7 @@ private function getAppConfig()
180
190
181
191
/**
182
192
* Initialize default website.
193
+ *
183
194
* @return void
184
195
*/
185
196
private function initDefaultWebsite ()
0 commit comments