@@ -223,177 +223,177 @@ class AccountManagement implements AccountManagementInterface
223
223
/**
224
224
* @var CustomerFactory
225
225
*/
226
- private CustomerFactory $ customerFactory ;
226
+ private $ customerFactory ;
227
227
228
228
/**
229
229
* @var ValidationResultsInterfaceFactory
230
230
*/
231
- private ValidationResultsInterfaceFactory $ validationResultsDataFactory ;
231
+ private $ validationResultsDataFactory ;
232
232
233
233
/**
234
234
* @var ManagerInterface
235
235
*/
236
- private ManagerInterface $ eventManager ;
236
+ private $ eventManager ;
237
237
238
238
/**
239
239
* @var StoreManagerInterface
240
240
*/
241
- private StoreManagerInterface $ storeManager ;
241
+ private $ storeManager ;
242
242
243
243
/**
244
244
* @var Random
245
245
*/
246
- private Random $ mathRandom ;
246
+ private $ mathRandom ;
247
247
248
248
/**
249
249
* @var Validator
250
250
*/
251
- private Validator $ validator ;
251
+ private $ validator ;
252
252
253
253
/**
254
254
* @var AddressRepositoryInterface
255
255
*/
256
- private AddressRepositoryInterface $ addressRepository ;
256
+ private $ addressRepository ;
257
257
258
258
/**
259
259
* @var CustomerMetadataInterface
260
260
*/
261
- private CustomerMetadataInterface $ customerMetadataService ;
261
+ private $ customerMetadataService ;
262
262
263
263
/**
264
264
* @var PsrLogger
265
265
*/
266
- protected PsrLogger $ logger ;
266
+ protected $ logger ;
267
267
268
268
/**
269
269
* @var Encryptor
270
270
*/
271
- private Encryptor $ encryptor ;
271
+ private $ encryptor ;
272
272
273
273
/**
274
274
* @var CustomerRegistry
275
275
*/
276
- private CustomerRegistry $ customerRegistry ;
276
+ private $ customerRegistry ;
277
277
278
278
/**
279
279
* @var ConfigShare
280
280
*/
281
- private ConfigShare $ configShare ;
281
+ private $ configShare ;
282
282
283
283
/**
284
284
* @var StringHelper
285
285
*/
286
- protected StringHelper $ stringHelper ;
286
+ protected $ stringHelper ;
287
287
288
288
/**
289
289
* @var CustomerRepositoryInterface
290
290
*/
291
- private CustomerRepositoryInterface $ customerRepository ;
291
+ private $ customerRepository ;
292
292
293
293
/**
294
294
* @var ScopeConfigInterface
295
295
*/
296
- private ScopeConfigInterface $ scopeConfig ;
296
+ private $ scopeConfig ;
297
297
298
298
/**
299
299
* @var TransportBuilder
300
300
*/
301
- private TransportBuilder $ transportBuilder ;
301
+ private $ transportBuilder ;
302
302
303
303
/**
304
304
* @var DataObjectProcessor
305
305
*/
306
- protected DataObjectProcessor $ dataProcessor ;
306
+ protected $ dataProcessor ;
307
307
308
308
/**
309
309
* @var Registry
310
310
*/
311
- protected Registry $ registry ;
311
+ protected $ registry ;
312
312
313
313
/**
314
314
* @var CustomerViewHelper
315
315
*/
316
- protected CustomerViewHelper $ customerViewHelper ;
316
+ protected $ customerViewHelper ;
317
317
318
318
/**
319
319
* @var DateTime
320
320
*/
321
- protected DateTime $ dateTime ;
321
+ protected $ dateTime ;
322
322
323
323
/**
324
324
* @var ObjectFactory
325
325
*/
326
- protected ObjectFactory $ objectFactory ;
326
+ protected $ objectFactory ;
327
327
328
328
/**
329
329
* @var ExtensibleDataObjectConverter
330
330
*/
331
- protected ExtensibleDataObjectConverter $ extensibleDataObjectConverter ;
331
+ protected $ extensibleDataObjectConverter ;
332
332
333
333
/**
334
334
* @var CustomerModel
335
335
*/
336
- protected CustomerModel $ customerModel ;
336
+ protected $ customerModel ;
337
337
338
338
/**
339
339
* @var AuthenticationInterface
340
340
*/
341
- protected AuthenticationInterface $ authentication ;
341
+ protected $ authentication ;
342
342
343
343
/**
344
344
* @var EmailNotificationInterface
345
345
*/
346
- private EmailNotificationInterface $ emailNotification ;
346
+ private $ emailNotification ;
347
347
348
348
/**
349
349
* @var Backend
350
350
*/
351
- private Backend $ eavValidator ;
351
+ private $ eavValidator ;
352
352
353
353
/**
354
354
* @var CredentialsValidator
355
355
*/
356
- private CredentialsValidator $ credentialsValidator ;
356
+ private $ credentialsValidator ;
357
357
358
358
/**
359
359
* @var DateTimeFactory
360
360
*/
361
- private DateTimeFactory $ dateTimeFactory ;
361
+ private $ dateTimeFactory ;
362
362
363
363
/**
364
364
* @var AccountConfirmation
365
365
*/
366
- private AccountConfirmation $ accountConfirmation ;
366
+ private $ accountConfirmation ;
367
367
368
368
/**
369
369
* @var SearchCriteriaBuilder
370
370
*/
371
- private SearchCriteriaBuilder $ searchCriteriaBuilder ;
371
+ private $ searchCriteriaBuilder ;
372
372
373
373
/**
374
374
* @var AddressRegistry
375
375
*/
376
- private AddressRegistry $ addressRegistry ;
376
+ private $ addressRegistry ;
377
377
378
378
/**
379
379
* @var AllowedCountries
380
380
*/
381
- private AllowedCountries $ allowedCountriesReader ;
381
+ private $ allowedCountriesReader ;
382
382
383
383
/**
384
384
* @var GetCustomerByToken
385
385
*/
386
- private GetCustomerByToken $ getByToken ;
386
+ private $ getByToken ;
387
387
388
388
/**
389
389
* @var SessionCleanerInterface
390
390
*/
391
- private SessionCleanerInterface $ sessionCleaner ;
391
+ private $ sessionCleaner ;
392
392
393
393
/**
394
394
* @var AuthorizationInterface
395
395
*/
396
- private AuthorizationInterface $ authorization ;
396
+ private $ authorization ;
397
397
398
398
/**
399
399
* @var CustomerLogger
@@ -1146,16 +1146,17 @@ public function validate(CustomerInterface $customer)
1146
1146
* @param string $customerEmail
1147
1147
* @param int|null $websiteId
1148
1148
* @return bool
1149
+ * @throws LocalizedException
1149
1150
*/
1150
- public function isEmailAvailable (string $ customerEmail , int $ websiteId = null ): bool
1151
+ public function isEmailAvailable ($ customerEmail , $ websiteId = null )
1151
1152
{
1152
1153
$ guestLoginConfig = $ this ->scopeConfig ->getValue (
1153
1154
self ::GUEST_CHECKOUT_LOGIN_OPTION_SYS_CONFIG ,
1154
1155
ScopeInterface::SCOPE_WEBSITE ,
1155
1156
$ websiteId
1156
1157
);
1157
1158
1158
- if ($ guestLoginConfig === null || $ guestLoginConfig === false ) {
1159
+ if (! $ guestLoginConfig ) {
1159
1160
return true ;
1160
1161
}
1161
1162
0 commit comments