Commit ffded7a1 by Qiang Xue

array syntax fix.

parent 542477c3
...@@ -48,7 +48,7 @@ use yii\helpers\Html; ...@@ -48,7 +48,7 @@ use yii\helpers\Html;
* 'bars' => [ * 'bars' => [
* ['percent' => 30, 'options' => ['class' => 'bar-danger']], * ['percent' => 30, 'options' => ['class' => 'bar-danger']],
* ['percent' => 30, 'label' => 'test', 'options' => ['class' => 'bar-success']], * ['percent' => 30, 'label' => 'test', 'options' => ['class' => 'bar-success']],
* ['percent' => 35, 'options' => array['class' => 'bar-warning']], * ['percent' => 35, 'options' => ['class' => 'bar-warning']],
* ] * ]
* ]); * ]);
* ``` * ```
......
...@@ -17,9 +17,9 @@ use yii\mail\BaseMailer; ...@@ -17,9 +17,9 @@ use yii\mail\BaseMailer;
* To use Mailer, you should configure it in the application configuration like the following, * To use Mailer, you should configure it in the application configuration like the following,
* *
* ~~~ * ~~~
* 'components' => array( * 'components' => [
* ... * ...
* 'email' => array( * 'email' => [
* 'class' => 'yii\swiftmailer\Mailer', * 'class' => 'yii\swiftmailer\Mailer',
* 'transport' => [ * 'transport' => [
* 'class' => 'Swift_SmtpTransport', * 'class' => 'Swift_SmtpTransport',
...@@ -29,9 +29,9 @@ use yii\mail\BaseMailer; ...@@ -29,9 +29,9 @@ use yii\mail\BaseMailer;
* 'port' => '587', * 'port' => '587',
* 'encryption' => 'tls', * 'encryption' => 'tls',
* ], * ],
* ), * ],
* ... * ...
* ), * ],
* ~~~ * ~~~
* *
* You may also skip the configuration of the [[transport]] property. In that case, the default * You may also skip the configuration of the [[transport]] property. In that case, the default
......
...@@ -74,11 +74,11 @@ class AssetConverter extends Component implements AssetConverterInterface ...@@ -74,11 +74,11 @@ class AssetConverter extends Component implements AssetConverterInterface
'{from}' => escapeshellarg("$basePath/$asset"), '{from}' => escapeshellarg("$basePath/$asset"),
'{to}' => escapeshellarg("$basePath/$result"), '{to}' => escapeshellarg("$basePath/$result"),
]); ]);
$descriptor = array( $descriptor = [
1 => array('pipe', 'w'), 1 => ['pipe', 'w'],
2 => array('pipe', 'w'), 2 => ['pipe', 'w'],
); ];
$pipes = array(); $pipes = [];
$proc = proc_open($command, $descriptor, $pipes, $basePath); $proc = proc_open($command, $descriptor, $pipes, $basePath);
$stdout = stream_get_contents($pipes[1]); $stdout = stream_get_contents($pipes[1]);
$stderr = stream_get_contents($pipes[2]); $stderr = stream_get_contents($pipes[2]);
......
...@@ -69,7 +69,7 @@ class BaseMessageTest extends TestCase ...@@ -69,7 +69,7 @@ class BaseMessageTest extends TestCase
class TestMailer extends BaseMailer class TestMailer extends BaseMailer
{ {
public $messageClass = 'yiiunit\framework\mail\TestMessage'; public $messageClass = 'yiiunit\framework\mail\TestMessage';
public $sentMessages = array(); public $sentMessages = [];
protected function sendMessage($message) protected function sendMessage($message)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment