Passed
Push — master ( 9c403b...2c43a9 )
by Gianluca
05:33
created
src/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 use Mongi\Mongicommerce\Http\Controllers\admin\DashboardController;
6 6
 
7 7
 //BackEnd Pages
8
-Route::get('/admin/dashboard',[DashboardController::class,'page'])->name('admin.dashboard');
9
-Route::get('/admin/categoria/nuova-categoria',[AdminCategoryController::class,'page'])->name('admin.category.new');
8
+Route::get('/admin/dashboard', [DashboardController::class, 'page'])->name('admin.dashboard');
9
+Route::get('/admin/categoria/nuova-categoria', [AdminCategoryController::class, 'page'])->name('admin.category.new');
Please login to merge, or discard this patch.
src/Http/Controllers/admin/AdminCategoryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class AdminCategoryController extends Controller
10 10
 {
11
-    public function page(){
11
+    public function page() {
12 12
         return view('mongicommerce::admin.pages.category.new_category');
13 13
     }
14 14
 }
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-function css($name){
3
+function css($name) {
4 4
     return asset(config('mongicommerce.admin.css'))."/{$name}";
5 5
 }
6 6
 
7
-function js($name){
7
+function js($name) {
8 8
     return asset(config('mongicommerce.admin.js'))."/{$name}";
9 9
 }
10 10
 
11
-function img($name){
11
+function img($name) {
12 12
     return asset(config('mongicommerce.admin.img'))."/{$name}";
13 13
 }
14
-function media($name){
14
+function media($name) {
15 15
     return asset(config('mongicommerce.admin.media'))."/{$name}";
16 16
 }
17 17
 
18
-function webfonts($name){
18
+function webfonts($name) {
19 19
     return asset(config('mongicommerce.admin.webfonts'))."/{$name}";
20 20
 }
Please login to merge, or discard this patch.
src/MongicommerceServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         if ($this->app->runningInConsole()) {
25 25
 
26 26
             $config_file = config_path('mongicommerce.php');
27
-            if(file_exists($config_file)){
27
+            if (file_exists($config_file)) {
28 28
                 File::delete($config_file);
29 29
             }
30 30
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'mongicommerce');
67 67
 
68 68
         // Register the main class to use with the facade
69
-        $this->app->singleton('mongicommerce', function () {
69
+        $this->app->singleton('mongicommerce', function() {
70 70
             return new Mongicommerce;
71 71
         });
72 72
     }
Please login to merge, or discard this patch.
resources/views/admin/template/layout.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -855,7 +855,7 @@
 block discarded – undo
855 855
                     <?php $link = "" ?>
856 856
                     @for($i = 1; $i <= count(Request::segments()); $i++)
857 857
                         @if($i < count(Request::segments()) & $i > 0)
858
-                            <?php $link .= "/" . Request::segment($i); ?>
858
+                            <?php $link .= "/".Request::segment($i); ?>
859 859
                             <li class="breadcrumb-item active"> <a href="<?= $link ?>">{{ ucwords(str_replace('-',' ',Request::segment($i)))}}</a> </li> >
860 860
                         @else {{ucwords(str_replace('-',' ',Request::segment($i)))}}
861 861
                         @endif
Please login to merge, or discard this patch.
database/migrations/2020_12_02_085259_create_categories_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('categories', function (Blueprint $table) {
16
+        Schema::create('categories', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('name');
19 19
             $table->string('description')->nullable();
Please login to merge, or discard this patch.