Completed
Push — master ( 682124...958c85 )
by
unknown
10s
created
src/helpers/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('dashboardApel')) {
3
+if (!function_exists('dashboardApel')) {
4 4
     function dashboardApel()
5 5
     {
6 6
         return 'Welcome to function dashboardApel() for Bantenprov\DashboardApel package';
Please login to merge, or discard this patch.
src/Models/Bantenprov/DashboardApel/Regency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function getProvince()
20 20
     {
21
-        return $this->hasOne('Bantenprov\DashboardApel\Models\Bantenprov\DashboardApel\Province','id','province_id');
21
+        return $this->hasOne('Bantenprov\DashboardApel\Models\Bantenprov\DashboardApel\Province', 'id', 'province_id');
22 22
     }
23 23
 
24 24
 }
Please login to merge, or discard this patch.
src/Models/Bantenprov/DashboardApel/DashboardApel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
 
19 19
     public function getProvince()
20 20
     {
21
-        return $this->hasOne('Bantenprov\DashboardApel\Models\Bantenprov\DashboardApel\Province','id','province_id');
21
+        return $this->hasOne('Bantenprov\DashboardApel\Models\Bantenprov\DashboardApel\Province', 'id', 'province_id');
22 22
     }
23 23
 
24 24
     public function getRegency()
25 25
     {
26
-        return $this->hasOne('Bantenprov\DashboardApel\Models\Bantenprov\DashboardApel\Regency','id','regency_id');
26
+        return $this->hasOne('Bantenprov\DashboardApel\Models\Bantenprov\DashboardApel\Regency', 'id', 'regency_id');
27 27
     }
28 28
 
29 29
 }
Please login to merge, or discard this patch.
src/database/migrations/2018_01_20_151615_create_regencies_table.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -5,19 +5,19 @@
 block discarded – undo
5 5
 
6 6
 class CreateRegenciesTable extends Migration {
7 7
 
8
-	public function up()
9
-	{
10
-		Schema::create('regencies', function(Blueprint $table) {
11
-			$table->increments('id');
12
-			$table->integer('province_id')->unsigned()->nullable()->index();
13
-			$table->string('name', 191)->index();
14
-			$table->timestamps();
15
-			$table->softDeletes();
16
-		});
17
-	}
8
+    public function up()
9
+    {
10
+        Schema::create('regencies', function(Blueprint $table) {
11
+            $table->increments('id');
12
+            $table->integer('province_id')->unsigned()->nullable()->index();
13
+            $table->string('name', 191)->index();
14
+            $table->timestamps();
15
+            $table->softDeletes();
16
+        });
17
+    }
18 18
 
19
-	public function down()
20
-	{
21
-		Schema::drop('regencies');
22
-	}
19
+    public function down()
20
+    {
21
+        Schema::drop('regencies');
22
+    }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/database/migrations/2018_01_20_151615_create_provinces_table.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,18 +5,18 @@
 block discarded – undo
5 5
 
6 6
 class CreateProvincesTable extends Migration {
7 7
 
8
-	public function up()
9
-	{
10
-		Schema::create('provinces', function(Blueprint $table) {
11
-			$table->increments('id');
12
-			$table->string('name', 191)->index();
13
-			$table->timestamps();
14
-			$table->softDeletes();
15
-		});
16
-	}
8
+    public function up()
9
+    {
10
+        Schema::create('provinces', function(Blueprint $table) {
11
+            $table->increments('id');
12
+            $table->string('name', 191)->index();
13
+            $table->timestamps();
14
+            $table->softDeletes();
15
+        });
16
+    }
17 17
 
18
-	public function down()
19
-	{
20
-		Schema::drop('provinces');
21
-	}
18
+    public function down()
19
+    {
20
+        Schema::drop('provinces');
21
+    }
22 22
 }
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
src/database/migrations/2018_01_20_151625_create_foreign_keys.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -6,35 +6,35 @@
 block discarded – undo
6 6
 
7 7
 class CreateForeignKeys extends Migration {
8 8
 
9
-	public function up()
10
-	{
11
-		Schema::table('dashboard_apels', function(Blueprint $table) {
12
-			$table->foreign('province_id')->references('id')->on('provinces')
13
-						->onDelete('set null')
14
-						->onUpdate('restrict');
15
-		});
16
-		Schema::table('dashboard_apels', function(Blueprint $table) {
17
-			$table->foreign('regency_id')->references('id')->on('regencies')
18
-						->onDelete('set null')
19
-						->onUpdate('restrict');
20
-		});
21
-		Schema::table('regencies', function(Blueprint $table) {
22
-			$table->foreign('province_id')->references('id')->on('provinces')
23
-						->onDelete('set null')
24
-						->onUpdate('restrict');
25
-		});
26
-	}
9
+    public function up()
10
+    {
11
+        Schema::table('dashboard_apels', function(Blueprint $table) {
12
+            $table->foreign('province_id')->references('id')->on('provinces')
13
+                        ->onDelete('set null')
14
+                        ->onUpdate('restrict');
15
+        });
16
+        Schema::table('dashboard_apels', function(Blueprint $table) {
17
+            $table->foreign('regency_id')->references('id')->on('regencies')
18
+                        ->onDelete('set null')
19
+                        ->onUpdate('restrict');
20
+        });
21
+        Schema::table('regencies', function(Blueprint $table) {
22
+            $table->foreign('province_id')->references('id')->on('provinces')
23
+                        ->onDelete('set null')
24
+                        ->onUpdate('restrict');
25
+        });
26
+    }
27 27
 
28
-	public function down()
29
-	{
30
-		Schema::table('dashboard_apels', function(Blueprint $table) {
31
-			$table->dropForeign('dashboard_apels_province_id_foreign');
32
-		});
33
-		Schema::table('dashboard_apels', function(Blueprint $table) {
34
-			$table->dropForeign('dashboard_apels_regency_id_foreign');
35
-		});
36
-		Schema::table('regencies', function(Blueprint $table) {
37
-			$table->dropForeign('regencies_province_id_foreign');
38
-		});
39
-	}
28
+    public function down()
29
+    {
30
+        Schema::table('dashboard_apels', function(Blueprint $table) {
31
+            $table->dropForeign('dashboard_apels_province_id_foreign');
32
+        });
33
+        Schema::table('dashboard_apels', function(Blueprint $table) {
34
+            $table->dropForeign('dashboard_apels_regency_id_foreign');
35
+        });
36
+        Schema::table('regencies', function(Blueprint $table) {
37
+            $table->dropForeign('regencies_province_id_foreign');
38
+        });
39
+    }
40 40
 }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
src/database/migrations/2018_01_20_151615_create_dashboard_apel.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -5,23 +5,23 @@
 block discarded – undo
5 5
 
6 6
 class CreateDashboardApelsTable extends Migration {
7 7
 
8
-	public function up()
9
-	{
10
-		Schema::create('dashboard_apels', function(Blueprint $table) {
11
-			$table->increments('id');
12
-			$table->string('negara', 191);
13
-			$table->integer('province_id')->unsigned()->nullable()->index();
14
-			$table->boolean('kab_kota')->index();
15
-			$table->integer('regency_id')->unsigned()->nullable()->index();
16
-			$table->string('tahun', 191);
17
-			$table->decimal('data')->index();
18
-			$table->timestamps();
19
-			$table->softDeletes();
20
-		});
21
-	}
8
+    public function up()
9
+    {
10
+        Schema::create('dashboard_apels', function(Blueprint $table) {
11
+            $table->increments('id');
12
+            $table->string('negara', 191);
13
+            $table->integer('province_id')->unsigned()->nullable()->index();
14
+            $table->boolean('kab_kota')->index();
15
+            $table->integer('regency_id')->unsigned()->nullable()->index();
16
+            $table->string('tahun', 191);
17
+            $table->decimal('data')->index();
18
+            $table->timestamps();
19
+            $table->softDeletes();
20
+        });
21
+    }
22 22
 
23
-	public function down()
24
-	{
25
-		Schema::drop('dashboard_apels');
26
-	}
23
+    public function down()
24
+    {
25
+        Schema::drop('dashboard_apels');
26
+    }
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
src/routes/routes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 block discarded – undo
11 11
         'destroy'   => 'Bantenprov\DashboardApel\Http\Controllers\DashboardApelController@destroy',
12 12
     ];
13 13
 
14
-    Route::get('/',$controllers->index)->name('dashboard-apel.index');
15
-    Route::get('/create',$controllers->create)->name('dashboard-apel.create');
16
-    Route::post('/store',$controllers->store)->name('dashboard-apel.store');
17
-    Route::get('/{id}',$controllers->show)->name('dashboard-apel.show');
18
-    Route::put('/{id}/update',$controllers->update)->name('dashboard-apel.update');
19
-    Route::post('/{id}/delete',$controllers->destroy)->name('dashboard-apel.destroy');
14
+    Route::get('/', $controllers->index)->name('dashboard-apel.index');
15
+    Route::get('/create', $controllers->create)->name('dashboard-apel.create');
16
+    Route::post('/store', $controllers->store)->name('dashboard-apel.store');
17
+    Route::get('/{id}', $controllers->show)->name('dashboard-apel.show');
18
+    Route::put('/{id}/update', $controllers->update)->name('dashboard-apel.update');
19
+    Route::post('/{id}/delete', $controllers->destroy)->name('dashboard-apel.destroy');
20 20
 
21 21
 });
22 22
 
Please login to merge, or discard this patch.
src/DashboardApelServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@
 block discarded – undo
45 45
      */
46 46
     public function register()
47 47
     {
48
-        $this->app->singleton('dashboard-apel', function ($app) {
48
+        $this->app->singleton('dashboard-apel', function($app) {
49 49
             return new DashboardApel;
50 50
         });
51 51
 
52
-        $this->app->singleton('command.dashboard-apel', function ($app) {
52
+        $this->app->singleton('command.dashboard-apel', function($app) {
53 53
             return new DashboardApelCommand;
54 54
         });
55 55
 
Please login to merge, or discard this patch.