@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | $user = factory(App\User::class)->create(); |
| 19 | 19 | |
| 20 | 20 | $this->actingAs($user, 'admin') |
| 21 | - ->call('GET', 'admin') |
|
| 22 | - ->see('Waddup, y\'all'); |
|
| 21 | + ->call('GET', 'admin') |
|
| 22 | + ->see('Waddup, y\'all'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -30,6 +30,6 @@ discard block |
||
| 30 | 30 | public function test_redirects_to_login_if_user_is_not_authenticated () |
| 31 | 31 | { |
| 32 | 32 | $this->call('GET', 'admin') |
| 33 | - ->assertRedirectedTo('login'); |
|
| 33 | + ->assertRedirectedTo('login'); |
|
| 34 | 34 | } |
| 35 | 35 | } |
| 36 | 36 | \ No newline at end of file |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | * |
| 14 | 14 | * User logged in |
| 15 | 15 | */ |
| 16 | - public function test_returns_dashboard_if_user_is_authenticated () |
|
| 16 | + public function test_returns_dashboard_if_user_is_authenticated() |
|
| 17 | 17 | { |
| 18 | 18 | $user = factory(App\User::class)->create(); |
| 19 | 19 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * User Not logged in |
| 29 | 29 | */ |
| 30 | - public function test_redirects_to_login_if_user_is_not_authenticated () |
|
| 30 | + public function test_redirects_to_login_if_user_is_not_authenticated() |
|
| 31 | 31 | { |
| 32 | 32 | $this->call('GET', 'admin') |
| 33 | 33 | ->assertRedirectedTo('login'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('sites', function (Blueprint $table) { |
|
| 15 | + Schema::create('sites', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('title'); |
| 18 | 18 | $table->string('twitter'); |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | class PagesController extends Controller |
| 13 | 13 | { |
| 14 | - private function generateSEO ($site, $page) { |
|
| 14 | + private function generateSEO($site, $page) { |
|
| 15 | 15 | SEO::metatags() |
| 16 | 16 | ->setTitleDefault($site['title']) |
| 17 | 17 | ->setTitleSeparator(' - ') |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public function home () { |
|
| 50 | + public function home() { |
|
| 51 | 51 | $site = [ |
| 52 | 52 | 'title' => 'Blue CMS', |
| 53 | 53 | 'twitter' => '@BlueCMS', |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | return view('Blue::home'); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - public function page ($page) { |
|
| 81 | + public function page($page) { |
|
| 82 | 82 | return '<h1>'.$page.'</h1>'; |
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | \ No newline at end of file |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class AdminController extends Controller |
| 8 | 8 | { |
| 9 | - public function __construct () { |
|
| 9 | + public function __construct() { |
|
| 10 | 10 | $this->middleware('auth'); |
| 11 | 11 | } |
| 12 | 12 | |