Skip to content

Commit 0f91f32

Browse files
authored
Fix codestyle (#322)
1 parent 3c14e8b commit 0f91f32

File tree

19 files changed

+39
-33
lines changed

19 files changed

+39
-33
lines changed

assets/AppAsset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @link https://www.yiiframework.com/
45
* @copyright Copyright (c) 2008 Yii Software LLC

commands/HelloController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @link https://www.yiiframework.com/
45
* @copyright Copyright (c) 2008 Yii Software LLC

config/__autocomplete.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,25 @@
1111
* }
1212
* ```
1313
*/
14-
class Yii {
14+
class Yii
15+
{
1516
/**
1617
* @var \yii\web\Application|\yii\console\Application|__Application
1718
*/
1819
public static $app;
1920
}
2021

2122
/**
22-
* @property yii\rbac\DbManager $authManager
23+
* @property yii\rbac\DbManager $authManager
2324
* @property \yii\web\User|__WebUser $user
24-
*
2525
*/
26-
class __Application {
26+
class __Application
27+
{
2728
}
2829

2930
/**
3031
* @property app\models\User $identity
3132
*/
32-
class __WebUser {
33+
class __WebUser
34+
{
3335
}

config/test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
$params = require __DIR__ . '/params.php';
34
$db = require __DIR__ . '/test_db.php';
45

config/test_db.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
$db = require __DIR__ . '/db.php';
34
// test database! Important not to run tests on production or development databases
45
$db['dsn'] = 'mysql:host=localhost;dbname=yii2basic_test';

mail/layouts/text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
/**
3+
/**
44
* @var yii\web\View $this view component instance
55
* @var yii\mail\BaseMessage $message the message being composed
66
* @var string $content main view render result

models/LoginForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function validatePassword($attribute, $params)
6060
public function login()
6161
{
6262
if ($this->validate()) {
63-
return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600*24*30 : 0);
63+
return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600 * 24 * 30 : 0);
6464
}
6565
return false;
6666
}

requirements.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Application requirement checker script.
45
*

tests/_bootstrap.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2+
23
define('YII_ENV', 'test');
34
defined('YII_DEBUG') or define('YII_DEBUG', true);
45

56
require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
6-
require __DIR__ .'/../vendor/autoload.php';
7+
require __DIR__ .'/../vendor/autoload.php';

tests/_support/AcceptanceTester.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class AcceptanceTester extends \Codeception\Actor
2020
{
2121
use _generated\AcceptanceTesterActions;
2222

23-
/**
24-
* Define custom actions here
25-
*/
23+
/**
24+
* Define custom actions here
25+
*/
2626
}

0 commit comments

Comments
 (0)