__.php 485 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. /**
  8. * Create value-object \Magento\Framework\Phrase
  9. * @SuppressWarnings(PHPMD.ShortMethodName)
  10. * @return \Magento\Framework\Phrase
  11. */
  12. function __()
  13. {
  14. $argc = func_get_args();
  15. $text = array_shift($argc);
  16. if (!empty($argc) && is_array($argc[0])) {
  17. $argc = $argc[0];
  18. }
  19. return new \Magento\Framework\Phrase($text, $argc);
  20. }