Completed
Push — master ( d23a6e...ee421f )
by Jake
02:52
created
src/migrations/2016_06_08_015633_create_sites_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Http/Controllers/PagesController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Http/Controllers/AdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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
  
Please login to merge, or discard this patch.
phpunit.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 */ 
37 37
 $capsule = new Capsule; 
38 38
 $capsule->addConnection([ 
39
- 'driver'   => 'sqlite', 
40
- 'database' => ':memory:', 
39
+    'driver'   => 'sqlite', 
40
+    'database' => ':memory:', 
41 41
 ]); 
42 42
 $capsule->setEventDispatcher(new Dispatcher); 
43 43
 $capsule->setAsGlobal(); 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 $capsule->schema()->dropIfExists('models'); 
47 47
 
48 48
 $capsule->schema()->create('models', function (Blueprint $table) { 
49
-   $table->increments('id'); 
50
-   $table->string('string'); 
51
-   $table->string('email'); 
52
-   $table->timestamps(); 
49
+    $table->increments('id'); 
50
+    $table->string('string'); 
51
+    $table->string('email'); 
52
+    $table->timestamps(); 
53 53
 }); 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 | 
17 17
 */ 
18 18
 
19
-require __DIR__ . '/vendor/autoload.php'; 
19
+require __DIR__.'/vendor/autoload.php'; 
20 20
 
21 21
 /* 
22 22
 |-------------------------------------------------------------------------- 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 $capsule->schema()->dropIfExists('models'); 
47 47
 
48
-$capsule->schema()->create('models', function (Blueprint $table) { 
48
+$capsule->schema()->create('models', function(Blueprint $table) { 
49 49
    $table->increments('id'); 
50 50
    $table->string('string'); 
51 51
    $table->string('email'); 
Please login to merge, or discard this patch.
tests/AdminControllerTest.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use MeestorHok\Blue\Http\Controllers\AdminController;
4 3
 //use Illuminate\Contracts\View\Factory;
5 4
 use Illuminate\Http\Request;
6 5
 use Illuminate\Routing\RouteCollection;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         //      ->see('Waddup, y\'all');
47 47
         // $this->assertTrue(true);
48 48
         $this->call('GET', 'admin')->see('Waddup, y\'all');
49
-       // $this->assertFalse($request);
49
+        // $this->assertFalse($request);
50 50
     }
51 51
     
52 52
     public function test_redirects_to_login_if_user_is_not_authenticated ()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         m::close();
22 22
     }
23 23
     
24
-    public function testItReturnsTheDashboardIfUserIsAuthenticated ()
24
+    public function testItReturnsTheDashboardIfUserIsAuthenticated()
25 25
     {
26 26
         // $user = factory(App\User::class)->create();
27 27
         
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
        // $this->assertFalse($request);
34 34
     }
35 35
     
36
-    public function testItRedirectsToLoginIfUserIsNotAuthenticated ()
36
+    public function testItRedirectsToLoginIfUserIsNotAuthenticated()
37 37
     {
38 38
         //$request = $this->urlGenerator->to('admin')->assertRedirectedTo('login');
39 39
         $this->assertTrue(true);
Please login to merge, or discard this patch.