Skip to content

Commit

Permalink
Used short syntax for arrays (yiisoft#13743)
Browse files Browse the repository at this point in the history
  • Loading branch information
gagatust authored and samdark committed Mar 10, 2017
1 parent 0b36b27 commit 2c92783
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions framework/messages/bg/yii.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return array (
return [
'(not set)' => '(не е попълнено)',
'An internal server error occurred.' => 'Възникна вътрешна грешка в сървъра.',
'Are you sure you want to delete this item?' => 'Сигурни ли сте, че искате да изтриете записа?',
Expand Down Expand Up @@ -103,4 +103,4 @@
'{n} MB' => '{n} МБ',
'{n} PB' => '{n} ПБ',
'{n} TB' => '{n} ТБ',
);
];
4 changes: 2 additions & 2 deletions framework/messages/da/yii.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return array (
return [
'(not set)' => '(ikke defineret)',
'An internal server error occurred.' => 'Der opstod en intern server fejl.',
'Are you sure you want to delete this item?' => 'Er du sikker på, at du vil slette dette element?',
Expand Down Expand Up @@ -103,4 +103,4 @@
'{n} MB' => '{n} MB',
'{n} PB' => '{n} PB',
'{n} TB' => '{n} TB',
);
];
4 changes: 2 additions & 2 deletions framework/messages/et/yii.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return array (
return [
'(not set)' => '(määramata)',
'An internal server error occurred.' => 'Ilmnes serveri sisemine viga.',
'Are you sure you want to delete this item?' => 'Kas olete kindel, et soovite selle üksuse kustutada?',
Expand Down Expand Up @@ -103,4 +103,4 @@
'{n} MB' => '{n} MB',
'{n} PB' => '{n} PB',
'{n} TB' => '{n} TB',
);
];
4 changes: 2 additions & 2 deletions framework/messages/hu/yii.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return array (
return [
'(not set)' => '(nincs beállítva)',
'An internal server error occurred.' => 'Egy belső szerver hiba történt.',
'Are you sure you want to delete this item?' => 'Biztos benne, hogy törli ezt az elemet?',
Expand Down Expand Up @@ -104,4 +104,4 @@
'{n} MB' => '{n} MB',
'{n} PB' => '{n} PB',
'{n} TB' => '{n} TB',
);
];
2 changes: 1 addition & 1 deletion tests/framework/behaviors/SluggableBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function testSlug()
public function testSlugSeveralAttributes()
{
$model = new ActiveRecordSluggable();
$model->getBehavior('sluggable')->attribute = array('name', 'category_id');
$model->getBehavior('sluggable')->attribute = ['name', 'category_id'];

$model->name = 'test';
$model->category_id = 10;
Expand Down

0 comments on commit 2c92783

Please sign in to comment.