Passed
Push — main ( 93d181...6c645c )
by PRATIK
15:49
created
src/Http/Requests/FacilityRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
         $id = $this->facility->id ?? '';
38 38
 
39 39
         return [
40
-            'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id,
41
-            'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id,
40
+            'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id,
41
+            'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id,
42 42
             'excerpt' => 'nullable|max:5500',
43 43
             'description' => 'nullable|max:55000',
44 44
             'category_id' => 'nullable|exists:categories,id',
Please login to merge, or discard this patch.
src/Http/Requests/SoftwareRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
         $id = $this->software->id ?? '';
38 38
 
39 39
         return [
40
-            'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id,
41
-            'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id,
40
+            'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id,
41
+            'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id,
42 42
             'type' => 'nullable|max:255',
43 43
             'excerpt' => 'nullable|max:5500',
44 44
             'description' => 'nullable|max:55000',
Please login to merge, or discard this patch.
src/Http/Requests/PackageRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
         $id = $this->service->id ?? '';
38 38
 
39 39
         return [
40
-            'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id,
41
-            'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id,
40
+            'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id,
41
+            'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id,
42 42
             'excerpt' => 'nullable|max:5500',
43 43
             'description' => 'nullable|max:55000',
44 44
             'category_id' => 'nullable|exists:categories,id',
Please login to merge, or discard this patch.
src/Http/Requests/GalleryRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
         $id = $this->gallery->id ?? '';
36 36
 
37 37
         return [
38
-            'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_galleries,name,' . $id,
39
-            'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_galleries,slug,' . $id,
38
+            'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_galleries,name,'.$id,
39
+            'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_galleries,slug,'.$id,
40 40
             'videos' => 'nullable',
41 41
             'description' => 'nullable|max:5500',
42 42
         ];
Please login to merge, or discard this patch.
src/Http/Requests/PageRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
         $id = $this->page->id ?? '';
38 38
 
39 39
         return [
40
-            'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id,
41
-            'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id,
40
+            'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id,
41
+            'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id,
42 42
             'excerpt' => 'nullable|max:5500',
43 43
             'description' => 'nullable|max:55000',
44 44
             'category_id' => 'nullable|exists:categories,id',
Please login to merge, or discard this patch.
src/Http/Requests/PostRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
         $id = $this->post->id ?? '';
40 40
 
41 41
         return [
42
-            'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id,
43
-            'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id,
42
+            'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id,
43
+            'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id,
44 44
             'excerpt' => 'nullable|max:5500',
45 45
             'description' => 'nullable|max:55000',
46 46
             'category_id' => 'nullable|exists:categories,id',
Please login to merge, or discard this patch.
src/Http/Requests/TeamRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
         $id = $this->team->id ?? '';
36 36
 
37 37
         return [
38
-            'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_teams,name,' . $id,
39
-            'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_teams,slug,' . $id,
38
+            'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_teams,name,'.$id,
39
+            'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_teams,slug,'.$id,
40 40
             'short_message' => 'nullable|max:255',
41 41
             'description' => 'nullable|max:55000',
42 42
             'social_medias' => 'nullable',
Please login to merge, or discard this patch.
src/Http/Requests/AttributeRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $id = $this->attribute->id ?? '';
27 27
 
28 28
         return [
29
-            'code' => 'required|unique:' . config('website.table_prefix', 'website') . '_attributes,code,' . $id,
29
+            'code' => 'required|unique:'.config('website.table_prefix', 'website').'_attributes,code,'.$id,
30 30
             'name' => 'required|max:60',
31 31
             'values' => 'required',
32 32
             'is_searchable' => 'sometimes|boolean',
Please login to merge, or discard this patch.
database/migrations/2023_05_11_053828_create_payments_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function up(): void
13 13
     {
14
-        Schema::create(config('website.table_prefix', 'website') . '_' . 'payments', function (Blueprint $table) {
14
+        Schema::create(config('website.table_prefix', 'website').'_'.'payments', function(Blueprint $table) {
15 15
             $table->id();
16 16
             $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete();
17 17
             $table->integer('type')->default(1);
Please login to merge, or discard this patch.