Quellcode durchsuchen

Some Code style fixes

Luciano Baraglia vor 12 Jahren
Ursprung
Commit
b40b962628
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 1 1
      requirements.php
  2. 4 4
      tests/unit/models/LoginFormTest.php

+ 1 - 1
requirements.php

@@ -16,7 +16,7 @@ $frameworkPath = dirname(__FILE__) . '/vendor/yiisoft/yii2';
 if (!is_dir($frameworkPath)) {
 	echo '<h1>Error</h1>';
 	echo '<p><strong>The path to yii framework seems to be incorrect.</strong></p>';
-	echo '<p>You need to install Yii framework via composer or adjust the framework path in file <abbr title="' . __FILE__ . '">' . basename(__FILE__) .'</abbr>.</p>';
+	echo '<p>You need to install Yii framework via composer or adjust the framework path in file <abbr title="' . __FILE__ . '">' . basename(__FILE__) . '</abbr>.</p>';
 	echo '<p>Please refer to the <abbr title="' . dirname(__FILE__) . '/README.md">README</abbr> on how to install Yii.</p>';
 }
 

+ 4 - 4
tests/unit/models/LoginFormTest.php

@@ -33,8 +33,8 @@ class LoginFormTest extends TestCase
 
 		$this->specify('user should not be able to login with wrong password', function () use ($model) {
 			$this->assertFalse($model->login());
-			$this->assertArrayHasKey('password',$model->errors);
-			$this->assertTrue(Yii::$app->user->isGuest,'user should not be logged in');
+			$this->assertArrayHasKey('password', $model->errors);
+			$this->assertTrue(Yii::$app->user->isGuest, 'user should not be logged in');
 		});
 	}
 
@@ -47,7 +47,7 @@ class LoginFormTest extends TestCase
 
 		$this->specify('user should be able to login with correct credentials', function() use ($model) {
 			$this->assertTrue($model->login());
-			$this->assertArrayNotHasKey('password',$model->errors);
+			$this->assertArrayNotHasKey('password', $model->errors);
 			$this->assertFalse(Yii::$app->user->isGuest,'user should be logged in');
 		});
 	}
@@ -59,4 +59,4 @@ class LoginFormTest extends TestCase
 		return $loginForm;
 	}
 
-}
+}