You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 satır
475B

  1. <?php
  2. namespace common\helpers;
  3. class Environment
  4. {
  5. public static function isBetaEnvironment(): bool
  6. {
  7. return YII_ENV == 'dev';
  8. }
  9. public static function badgeBeta(): string
  10. {
  11. return self::isBetaEnvironment() ? '<span class="badge-environment-beta">BETA</span>' : '';
  12. }
  13. public static function metaRobotsNoIndexBeta(): string
  14. {
  15. return self::isBetaEnvironment() ? '<meta name="robots" content="noindex">' : '';
  16. }
  17. }