Bläddra i källkod

i18n CLI compat PHP 7.0 (#4184)

Minor syntax change to pass the linting in PHP 7.0
Alexandre Alapetite 4 år sedan
förälder
incheckning
66912420a1
2 ändrade filer med 16 tillägg och 16 borttagningar
  1. 12 12
      cli/i18n/I18nFile.php
  2. 4 4
      cli/i18n/I18nValue.php

+ 12 - 12
cli/i18n/I18nFile.php

@@ -152,20 +152,20 @@ class I18nFile {
 		$translation = preg_replace($patterns, $replacements, $translation);
 
 		return <<<OUTPUT
-		<?php
+<?php
 
-		/******************************************************************************/
-		/* Each entry of that file can be associated with a comment to indicate its   */
-		/* state. When there is no comment, it means the entry is fully translated.   */
-		/* The recognized comments are (comment matching is case-insensitive):        */
-		/*   + TODO: the entry has never been translated.                             */
-		/*   + DIRTY: the entry has been translated but needs to be updated.          */
-		/*   + IGNORE: the entry does not need to be translated.                      */
-		/* When a comment is not recognized, it is discarded.                         */
-		/******************************************************************************/
+/******************************************************************************/
+/* Each entry of that file can be associated with a comment to indicate its   */
+/* state. When there is no comment, it means the entry is fully translated.   */
+/* The recognized comments are (comment matching is case-insensitive):        */
+/*   + TODO: the entry has never been translated.                             */
+/*   + DIRTY: the entry has been translated but needs to be updated.          */
+/*   + IGNORE: the entry does not need to be translated.                      */
+/* When a comment is not recognized, it is discarded.                         */
+/******************************************************************************/
 
-		return {$translation};
+return {$translation};
 
-		OUTPUT;
+OUTPUT;
 	}
 }

+ 4 - 4
cli/i18n/I18nValue.php

@@ -1,10 +1,10 @@
 <?php
 
 class I18nValue {
-	private const STATE_DIRTY = 'dirty';
-	private const STATE_IGNORE = 'ignore';
-	private const STATE_TODO = 'todo';
-	private const STATES = [
+	const STATE_DIRTY = 'dirty';
+	const STATE_IGNORE = 'ignore';
+	const STATE_TODO = 'todo';
+	const STATES = [
 		self::STATE_DIRTY,
 		self::STATE_IGNORE,
 		self::STATE_TODO,