Browse Source

Code formatting

main
Cédric Belin 2 weeks ago
parent
commit
ed3b097514
16 changed files with 25 additions and 25 deletions
  1. +1
    -1
      doc/installation.md
  2. +1
    -1
      src/Loader.php
  3. +2
    -2
      src/Logger.php
  4. +2
    -2
      src/ViewRenderer.php
  5. +2
    -2
      src/helpers/Format.php
  6. +3
    -3
      src/helpers/Html.php
  7. +1
    -1
      src/helpers/I18N.php
  8. +2
    -2
      src/helpers/Url.php
  9. +1
    -1
      test/CacheTest.php
  10. +2
    -2
      test/HelperTest.php
  11. +1
    -1
      test/LoaderTest.php
  12. +2
    -2
      test/ViewRendererTest.php
  13. +1
    -1
      test/helpers/FormatTest.php
  14. +2
    -2
      test/helpers/HtmlTest.php
  15. +1
    -1
      test/helpers/I18NTest.php
  16. +1
    -1
      test/index.php

+ 1
- 1
doc/installation.md View File

@@ -32,5 +32,5 @@ Now in your [PHP](https://www.php.net) code, you can use:

``` php
<?php
use yii\mustache\{ViewRenderer};
use yii\mustache\ViewRenderer;
```

+ 1
- 1
src/Loader.php View File

@@ -2,7 +2,7 @@
namespace yii\mustache;

use yii\base\{BaseObject, InvalidConfigException, View, ViewNotFoundException};
use yii\helpers\{FileHelper};
use yii\helpers\FileHelper;

/** Loads views from the file system. */
class Loader extends BaseObject implements \Mustache_Loader {


+ 2
- 2
src/Logger.php View File

@@ -2,8 +2,8 @@
namespace yii\mustache;

use Psr\Log\{LoggerInterface, LoggerTrait, LogLevel};
use yii\base\{BaseObject};
use yii\log\{Logger as YiiLogger};
use yii\base\BaseObject;
use yii\log\Logger as YiiLogger;

/** Component used to log messages from the view engine to the application logger. */
class Logger extends BaseObject implements LoggerInterface {


+ 2
- 2
src/ViewRenderer.php View File

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

use yii\base\{View};
use yii\di\{Instance};
use yii\base\View;
use yii\di\Instance;
use yii\helpers\{ArrayHelper, Html};

/**


+ 2
- 2
src/helpers/Format.php View File

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

use yii\helpers\{Html};
use yii\mustache\{Helper};
use yii\helpers\Html;
use yii\mustache\Helper;

/**
* Provides a set of commonly used data formatting methods.


+ 3
- 3
src/helpers/Html.php View File

@@ -1,9 +1,9 @@
<?php declare(strict_types=1);
namespace yii\mustache\helpers;

use yii\helpers\{Markdown};
use yii\mustache\{Helper};
use yii\widgets\{Spaceless};
use yii\helpers\Markdown;
use yii\mustache\Helper;
use yii\widgets\Spaceless;

/**
* Provides a set of methods for generating commonly used HTML tags.


+ 1
- 1
src/helpers/I18N.php View File

@@ -3,7 +3,7 @@ namespace yii\mustache\helpers;

use yii\base\{InvalidCallException, InvalidConfigException};
use yii\helpers\{ArrayHelper, StringHelper};
use yii\mustache\{Helper};
use yii\mustache\Helper;

/**
* Provides features related with internationalization (I18N) and localization (L10N).


+ 2
- 2
src/helpers/Url.php View File

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

use yii\helpers\{Url as UrlHelper};
use yii\mustache\{Helper};
use yii\helpers\Url as UrlHelper;
use yii\mustache\Helper;

/**
* Provides a set of methods for managing URLs.


+ 1
- 1
test/CacheTest.php View File

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

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, isFalse, isTrue};

/** @testdox yii\mustache\Cache */


+ 2
- 2
test/HelperTest.php View File

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

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

/** @testdox yii\mustache\Helper */


+ 1
- 1
test/LoaderTest.php View File

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

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use yii\base\{View, ViewNotFoundException};

/** @testdox yii\mustache\Loader */


+ 2
- 2
test/ViewRendererTest.php View File

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

use PHPUnit\Framework\{TestCase};
use yii\web\{View};
use PHPUnit\Framework\TestCase;
use yii\web\View;
use function PHPUnit\Framework\{assertThat, equalTo, isInstanceOf, isTrue};

/** @testdox yii\mustache\ViewRenderer */


+ 1
- 1
test/helpers/FormatTest.php View File

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

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

/** @testdox yii\mustache\helpers\Format */


+ 2
- 2
test/helpers/HtmlTest.php View File

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

use PHPUnit\Framework\{TestCase};
use yii\web\{View};
use PHPUnit\Framework\TestCase;
use yii\web\View;
use function PHPUnit\Framework\{assertThat, equalTo, isNull};

/** @testdox yii\mustache\helpers\Html */


+ 1
- 1
test/helpers/I18NTest.php View File

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

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

/** @testdox yii\mustache\helpers\I18N */


+ 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