Passed
Push — main ( 80b4f3...0eacb4 )
by Pouya
03:24
created
src/routes.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
     Route::group(['namespace'=>'Ipecompany\Smsirlaravel\Controllers','middleware'=>config('smsirlaravel.middlewares')], function (){
3
-	Route::get(config('smsirlaravel.route'),'SmsirlaravelController@index')->name('sms-admin');
4
-	Route::get('sms-admin/{log}/delete','SmsirlaravelController@delete')->name('deleteLog');
3
+    Route::get(config('smsirlaravel.route'),'SmsirlaravelController@index')->name('sms-admin');
4
+    Route::get('sms-admin/{log}/delete','SmsirlaravelController@delete')->name('deleteLog');
5 5
 });
Please login to merge, or discard this patch.
src/Models/SmsirlaravelLogs.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 
7 7
 class SmsirlaravelLogs extends Model
8 8
 {
9
-	protected $guarded = [];
10
-	protected $table = 'smsirlaravel_logs';
9
+    protected $guarded = [];
10
+    protected $table = 'smsirlaravel_logs';
11 11
 
12
-	public function sendStatus() {
13
-		if($this->status){
14
-			return '<i class="fa fa-check-circle" aria-hidden="true" style="color: green"></i>';
15
-		}
12
+    public function sendStatus() {
13
+        if($this->status){
14
+            return '<i class="fa fa-check-circle" aria-hidden="true" style="color: green"></i>';
15
+        }
16 16
 		
17
-		return '<i class="fa fa-exclamation-circle" aria-hidden="true" style="color: red"></i>';
17
+        return '<i class="fa fa-exclamation-circle" aria-hidden="true" style="color: red"></i>';
18 18
 		
19
-	}
19
+    }
20 20
 }
Please login to merge, or discard this patch.
src/Controllers/SmsirlaravelController.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,17 +10,17 @@
 block discarded – undo
10 10
 class SmsirlaravelController extends Controller
11 11
 {
12 12
 
13
-	// the main index page for administrators
14
-	public function index() {
15
-		$credit = Smsirlaravel::credit();
16
-		$smsirlaravel_logs = SmsirlaravelLogs::orderBy('id','DESC')->paginate(config('smsirlaravel.in-page'));
17
-		return view('smsirlaravel::index',compact('credit','smsirlaravel_logs'));
18
-	}
13
+    // the main index page for administrators
14
+    public function index() {
15
+        $credit = Smsirlaravel::credit();
16
+        $smsirlaravel_logs = SmsirlaravelLogs::orderBy('id','DESC')->paginate(config('smsirlaravel.in-page'));
17
+        return view('smsirlaravel::index',compact('credit','smsirlaravel_logs'));
18
+    }
19 19
 
20
-	// administrators can delete single log
21
-	public function delete() {
22
-		SmsirlaravelLogs::where('id',Route::current()->parameters['log'])->delete();
23
-		// return the user back to sms-admin after delete the log
24
-		return back();
25
-	}
20
+    // administrators can delete single log
21
+    public function delete() {
22
+        SmsirlaravelLogs::where('id',Route::current()->parameters['log'])->delete();
23
+        // return the user back to sms-admin after delete the log
24
+        return back();
25
+    }
26 26
 }
Please login to merge, or discard this patch.
src/migrations/2018_12_10_194000_create_smsirlaravel_log_table.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -6,31 +6,31 @@
 block discarded – undo
6 6
 
7 7
 class CreateSmsirlaravelLogTable extends Migration
8 8
 {
9
-	/**
10
-	 * Run the migrations.
11
-	 *
12
-	 * @return void
13
-	 */
14
-	public function up()
15
-	{
16
-		Schema::create('smsirlaravel_logs', function (Blueprint $table) {
17
-			$table->increments('id');
18
-			$table->string('from',100)->nullable();
19
-			$table->string('to',100)->nullable();
20
-			$table->string('message',500)->nullable();
21
-			$table->boolean('status')->nullable();
22
-			$table->string('response',500)->nullable();
23
-			$table->timestamps();
24
-		});
25
-	}
9
+    /**
10
+     * Run the migrations.
11
+     *
12
+     * @return void
13
+     */
14
+    public function up()
15
+    {
16
+        Schema::create('smsirlaravel_logs', function (Blueprint $table) {
17
+            $table->increments('id');
18
+            $table->string('from',100)->nullable();
19
+            $table->string('to',100)->nullable();
20
+            $table->string('message',500)->nullable();
21
+            $table->boolean('status')->nullable();
22
+            $table->string('response',500)->nullable();
23
+            $table->timestamps();
24
+        });
25
+    }
26 26
 
27
-	/**
28
-	 * Reverse the migrations.
29
-	 *
30
-	 * @return void
31
-	 */
32
-	public function down()
33
-	{
34
-		Schema::dropIfExists('smsirlaravel_logs');
35
-	}
27
+    /**
28
+     * Reverse the migrations.
29
+     *
30
+     * @return void
31
+     */
32
+    public function down()
33
+    {
34
+        Schema::dropIfExists('smsirlaravel_logs');
35
+    }
36 36
 }
Please login to merge, or discard this patch.