@@ -45,89 +45,89 @@ class Store extends AbstractExtensibleModel implements
45
45
/**
46
46
* Store Id key name
47
47
*/
48
- const STORE_ID = 'store_id ' ;
48
+ public const STORE_ID = 'store_id ' ;
49
49
50
50
/**
51
51
* Entity name
52
52
*/
53
- const ENTITY = 'store ' ;
53
+ public const ENTITY = 'store ' ;
54
54
55
55
/**
56
56
* Parameter used to determine app context.
57
57
*/
58
- const CUSTOM_ENTRY_POINT_PARAM = 'custom_entry_point ' ;
58
+ public const CUSTOM_ENTRY_POINT_PARAM = 'custom_entry_point ' ;
59
59
60
60
/**#@+
61
61
* Configuration paths
62
62
*/
63
- const XML_PATH_STORE_IN_URL = 'web/url/use_store ' ;
63
+ public const XML_PATH_STORE_IN_URL = 'web/url/use_store ' ;
64
64
65
- const XML_PATH_USE_REWRITES = 'web/seo/use_rewrites ' ;
65
+ public const XML_PATH_USE_REWRITES = 'web/seo/use_rewrites ' ;
66
66
67
- const XML_PATH_UNSECURE_BASE_URL = 'web/unsecure/base_url ' ;
67
+ public const XML_PATH_UNSECURE_BASE_URL = 'web/unsecure/base_url ' ;
68
68
69
- const XML_PATH_SECURE_BASE_URL = 'web/secure/base_url ' ;
69
+ public const XML_PATH_SECURE_BASE_URL = 'web/secure/base_url ' ;
70
70
71
- const XML_PATH_SECURE_IN_FRONTEND = 'web/secure/use_in_frontend ' ;
71
+ public const XML_PATH_SECURE_IN_FRONTEND = 'web/secure/use_in_frontend ' ;
72
72
73
- const XML_PATH_SECURE_IN_ADMINHTML = 'web/secure/use_in_adminhtml ' ;
73
+ public const XML_PATH_SECURE_IN_ADMINHTML = 'web/secure/use_in_adminhtml ' ;
74
74
75
- const XML_PATH_ENABLE_HSTS = 'web/secure/enable_hsts ' ;
75
+ public const XML_PATH_ENABLE_HSTS = 'web/secure/enable_hsts ' ;
76
76
77
- const XML_PATH_ENABLE_UPGRADE_INSECURE = 'web/secure/enable_upgrade_insecure ' ;
77
+ public const XML_PATH_ENABLE_UPGRADE_INSECURE = 'web/secure/enable_upgrade_insecure ' ;
78
78
79
- const XML_PATH_SECURE_BASE_LINK_URL = 'web/secure/base_link_url ' ;
79
+ public const XML_PATH_SECURE_BASE_LINK_URL = 'web/secure/base_link_url ' ;
80
80
81
- const XML_PATH_UNSECURE_BASE_LINK_URL = 'web/unsecure/base_link_url ' ;
81
+ public const XML_PATH_UNSECURE_BASE_LINK_URL = 'web/unsecure/base_link_url ' ;
82
82
83
- const XML_PATH_SECURE_BASE_STATIC_URL = 'web/secure/base_static_url ' ;
83
+ public const XML_PATH_SECURE_BASE_STATIC_URL = 'web/secure/base_static_url ' ;
84
84
85
- const XML_PATH_UNSECURE_BASE_STATIC_URL = 'web/unsecure/base_static_url ' ;
85
+ public const XML_PATH_UNSECURE_BASE_STATIC_URL = 'web/unsecure/base_static_url ' ;
86
86
87
- const XML_PATH_SECURE_BASE_MEDIA_URL = 'web/secure/base_media_url ' ;
87
+ public const XML_PATH_SECURE_BASE_MEDIA_URL = 'web/secure/base_media_url ' ;
88
88
89
- const XML_PATH_UNSECURE_BASE_MEDIA_URL = 'web/unsecure/base_media_url ' ;
89
+ public const XML_PATH_UNSECURE_BASE_MEDIA_URL = 'web/unsecure/base_media_url ' ;
90
90
91
- const XML_PATH_PRICE_SCOPE = 'catalog/price/scope ' ;
91
+ public const XML_PATH_PRICE_SCOPE = 'catalog/price/scope ' ;
92
92
93
93
/**#@-*/
94
94
95
95
/**#@+
96
96
* Price scope constants
97
97
*/
98
- const PRICE_SCOPE_GLOBAL = 0 ;
98
+ public const PRICE_SCOPE_GLOBAL = 0 ;
99
99
100
- const PRICE_SCOPE_WEBSITE = 1 ;
100
+ public const PRICE_SCOPE_WEBSITE = 1 ;
101
101
102
102
/**#@-*/
103
103
104
- const ADMIN_CODE = 'admin ' ;
104
+ public const ADMIN_CODE = 'admin ' ;
105
105
106
106
/**
107
107
* Tag to use to cache stores.
108
108
*/
109
- const CACHE_TAG = 'store ' ;
109
+ public const CACHE_TAG = 'store ' ;
110
110
111
111
/**
112
112
* Script name, which returns all the images
113
113
*/
114
- const MEDIA_REWRITE_SCRIPT = 'get.php/ ' ;
114
+ public const MEDIA_REWRITE_SCRIPT = 'get.php/ ' ;
115
115
116
116
/**
117
117
* A placeholder for generating base URL
118
118
*/
119
- const BASE_URL_PLACEHOLDER = '{{base_url}} ' ;
119
+ public const BASE_URL_PLACEHOLDER = '{{base_url}} ' ;
120
120
121
121
/**
122
122
* Identifier of default store
123
123
* used for loading data of default scope
124
124
*/
125
- const DEFAULT_STORE_ID = 0 ;
125
+ public const DEFAULT_STORE_ID = 0 ;
126
126
127
127
/**
128
128
* Default store Id (for install)
129
129
*/
130
- const DISTRO_STORE_ID = 1 ;
130
+ public const DISTRO_STORE_ID = 1 ;
131
131
132
132
/**
133
133
* @var \Magento\Framework\App\Cache\Type\Config
@@ -156,8 +156,6 @@ class Store extends AbstractExtensibleModel implements
156
156
protected $ _eventObject = 'store ' ;
157
157
158
158
/**
159
- * Price filter
160
- *
161
159
* @var \Magento\Directory\Model\Currency\Filter
162
160
*/
163
161
protected $ _priceFilter ;
@@ -184,15 +182,11 @@ class Store extends AbstractExtensibleModel implements
184
182
protected $ _dirCache = [];
185
183
186
184
/**
187
- * URL cache
188
- *
189
185
* @var array
190
186
*/
191
187
protected $ _urlCache = [];
192
188
193
189
/**
194
- * Base URL cache
195
- *
196
190
* @var array
197
191
*/
198
192
protected $ _baseUrlCache = [];
@@ -256,8 +250,6 @@ class Store extends AbstractExtensibleModel implements
256
250
protected $ _configDataResource ;
257
251
258
252
/**
259
- * Core file storage database
260
- *
261
253
* @var \Magento\MediaStorage\Helper\File\Storage\Database
262
254
*/
263
255
protected $ _coreFileStorageDatabase = null ;
@@ -666,7 +658,7 @@ public function getBaseUrl($type = UrlInterface::URL_TYPE_LINK, $secure = null)
666
658
throw new \InvalidArgumentException ('Invalid base url type ' );
667
659
}
668
660
669
- if (is_string ($ url ) && false !== strpos ($ url , self ::BASE_URL_PLACEHOLDER )) {
661
+ if (is_string ($ url ) && strpos ($ url , self ::BASE_URL_PLACEHOLDER ) !== false ) {
670
662
$ url = str_replace (self ::BASE_URL_PLACEHOLDER , $ this ->_request ->getDistroBaseUrl (), $ url );
671
663
}
672
664
0 commit comments