Skip to content

Commit c319dd1

Browse files
author
igor-chepurnoi
committed
disable yoda_style in .php_cs config
1 parent 1364861 commit c319dd1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.php_cs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $config = PhpCsFixer\Config::create()
1919
'concat_space' => ['spacing' => 'one'],
2020
'ordered_imports' => true,
2121
'array_syntax' => ['syntax' => 'short'],
22+
'yoda_style' => false,
2223
])
2324
->setFinder($finder);
2425

views/_dualListBox.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</div>
3636
<div class="col-lg-5">
3737
<input class="form-control search" data-target="assigned"
38-
placeholder="<?php echo Yii::t('yii2mod.rbac', 'Search for assigned') ?>">
38+
placeholder="<?php echo Yii::t('yii2mod.rbac', 'Search for assigned'); ?>">
3939
<br/>
4040
<select multiple size="20" class="form-control list" data-target="assigned"></select>
4141
</div>

views/migration.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use yii2mod\rbac\migrations\Migration;
99

10-
class <?= $className ?> extends Migration
10+
class <?= $className; ?> extends Migration
1111
{
1212
public function safeUp()
1313
{
@@ -16,7 +16,7 @@ public function safeUp()
1616

1717
public function safeDown()
1818
{
19-
echo "<?= $className ?> cannot be reverted.\n";
19+
echo "<?= $className; ?> cannot be reverted.\n";
2020

2121
return false;
2222
}

0 commit comments

Comments
 (0)