Browse Source

Code formatting

main
Cédric Belin 1 month ago
parent
commit
3aecc0102e
8 changed files with 9 additions and 9 deletions
  1. +1
    -1
      example/main.php
  2. +1
    -1
      src/ExtendedPhpMessageSource.php
  3. +1
    -1
      src/FileMessageSource.php
  4. +2
    -2
      src/YamlMessageSource.php
  5. +1
    -1
      test/ExtendedPhpMessageSourceTest.php
  6. +1
    -1
      test/JsonMessageSourceTest.php
  7. +1
    -1
      test/YamlMessageSourceTest.php
  8. +1
    -1
      test/index.php

+ 1
- 1
example/main.php View File

@@ -1,5 +1,5 @@
<?php declare(strict_types=1);
use yii\i18n\{JsonMessageSource};
use yii\i18n\JsonMessageSource;

/** Translates a message. */
function main(): void {


+ 1
- 1
src/ExtendedPhpMessageSource.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\i18n;

use yii\helpers\{ArrayHelper};
use yii\helpers\ArrayHelper;

/** Represents a message source that stores translated messages in PHP files. */
class ExtendedPhpMessageSource extends FileMessageSource {


+ 1
- 1
src/FileMessageSource.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\i18n;

use yii\helpers\{FileHelper};
use yii\helpers\FileHelper;

/** Provides the base class for a message source that stores translated messages in files. */
abstract class FileMessageSource extends PhpMessageSource {


+ 2
- 2
src/YamlMessageSource.php View File

@@ -1,8 +1,8 @@
<?php declare(strict_types=1);
namespace yii\i18n;

use Symfony\Component\Yaml\{Yaml};
use yii\helpers\{ArrayHelper};
use Symfony\Component\Yaml\Yaml;
use yii\helpers\ArrayHelper;

/** Represents a message source that stores translated messages in YAML files. */
class YamlMessageSource extends FileMessageSource {


+ 1
- 1
test/ExtendedPhpMessageSourceTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\i18n;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, equalTo, isEmpty};

/** @testdox yii\i18n\ExtendedPhpMessageSource */


+ 1
- 1
test/JsonMessageSourceTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\i18n;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, equalTo, isEmpty};

/** @testdox yii\i18n\JsonMessageSource */


+ 1
- 1
test/YamlMessageSourceTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace yii\i18n;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, equalTo, isEmpty};

/** @testdox yii\i18n\YamlMessageSource */


+ 1
- 1
test/index.php View File

@@ -1,5 +1,5 @@
<?php declare(strict_types=1);
use yii\console\{Application};
use yii\console\Application;

// Set the environment.
define("YII_DEBUG", true);


Loading…
Cancel
Save