Skip to content

Commit

Permalink
disable yoda_style in .php_cs config
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-chepurnoi committed Sep 11, 2017
1 parent 1364861 commit c319dd1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $config = PhpCsFixer\Config::create()
'concat_space' => ['spacing' => 'one'],
'ordered_imports' => true,
'array_syntax' => ['syntax' => 'short'],
'yoda_style' => false,
])
->setFinder($finder);

Expand Down
2 changes: 1 addition & 1 deletion views/_dualListBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
<div class="col-lg-5">
<input class="form-control search" data-target="assigned"
placeholder="<?php echo Yii::t('yii2mod.rbac', 'Search for assigned') ?>">
placeholder="<?php echo Yii::t('yii2mod.rbac', 'Search for assigned'); ?>">
<br/>
<select multiple size="20" class="form-control list" data-target="assigned"></select>
</div>
Expand Down
4 changes: 2 additions & 2 deletions views/migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

use yii2mod\rbac\migrations\Migration;

class <?= $className ?> extends Migration
class <?= $className; ?> extends Migration
{
public function safeUp()
{
Expand All @@ -16,7 +16,7 @@ public function safeUp()

public function safeDown()
{
echo "<?= $className ?> cannot be reverted.\n";
echo "<?= $className; ?> cannot be reverted.\n";

return false;
}
Expand Down

0 comments on commit c319dd1

Please sign in to comment.