Passed
Push — main ( 3cfdb8...a45320 )
by PRATIK
10:34
created
src/Http/Requests/FacilityRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
         $id = $this->facility->id ?? '';
41 41
 
42 42
         return [
43
-            'code' => 'required|max:255|unique:facilities,code,' . $id,
43
+            'code' => 'required|max:255|unique:facilities,code,'.$id,
44 44
             'name' => 'required|max:60',
45
-            'slug' => 'required|max:255|unique:facilities,slug,' . $id,
45
+            'slug' => 'required|max:255|unique:facilities,slug,'.$id,
46 46
             'excerpt' => 'required|max:255',
47 47
             'description' => 'nullable|max:10000',
48 48
             'category_id' => 'nullable|numeric',
Please login to merge, or discard this patch.
src/Http/Requests/ServiceRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
         $id = $this->service->id ?? '';
41 41
 
42 42
         return [
43
-            'code' => 'required|max:255|unique:services,code,' . $id,
43
+            'code' => 'required|max:255|unique:services,code,'.$id,
44 44
             'name' => 'required|max:60',
45
-            'slug' => 'required|max:255|unique:services,slug,' . $id,
45
+            'slug' => 'required|max:255|unique:services,slug,'.$id,
46 46
             'excerpt' => 'required|max:255',
47 47
             'description' => 'nullable|max:10000',
48 48
             'icon' => 'nullable|max:255',
Please login to merge, or discard this patch.
src/Provider/WebsiteServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -120,15 +120,15 @@  discard block
 block discarded – undo
120 120
     {
121 121
         // Publish Config File
122 122
         $this->publishes([
123
-            __DIR__ . '/../../config/website.php' => config_path('website.php'),
123
+            __DIR__.'/../../config/website.php' => config_path('website.php'),
124 124
         ], 'website-config');
125 125
         // Publish View Files
126 126
         $this->publishes([
127
-            __DIR__ . '/../../resources/views' => resource_path('views/vendor/adminetic/plugin/website'),
127
+            __DIR__.'/../../resources/views' => resource_path('views/vendor/adminetic/plugin/website'),
128 128
         ], 'website-views');
129 129
         // Publish Migration Files
130 130
         $this->publishes([
131
-            __DIR__ . '/../../database/migrations' => database_path('migrations'),
131
+            __DIR__.'/../../database/migrations' => database_path('migrations'),
132 132
         ], 'website-migrations');
133 133
     }
134 134
 
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
      */
140 140
     protected function registerResource()
141 141
     {
142
-        $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); // Loading Migration Files
143
-        $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'website'); // Loading Views Files
142
+        $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); // Loading Migration Files
143
+        $this->loadViewsFrom(__DIR__.'/../../resources/views', 'website'); // Loading Views Files
144 144
         $this->registerRoutes();
145 145
     }
146 146
 
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
      */
164 164
     protected function registerRoutes()
165 165
     {
166
-        Route::group($this->routeConfiguration(), function () {
167
-            $this->loadRoutesFrom(__DIR__ . '/../../routes/web.php');
166
+        Route::group($this->routeConfiguration(), function() {
167
+            $this->loadRoutesFrom(__DIR__.'/../../routes/web.php');
168 168
         });
169 169
     }
170 170
 
Please login to merge, or discard this patch.
src/Repositories/PostRepository.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -16,34 +16,34 @@  discard block
 block discarded – undo
16 16
     // Post Index
17 17
     public function indexPost()
18 18
     {
19
-        Cache::rememberForever('posts', function () {
19
+        Cache::rememberForever('posts', function() {
20 20
             return Post::with('author')->latest()->get();
21 21
         });
22
-        Cache::rememberForever('latest_limited_posts', function () {
22
+        Cache::rememberForever('latest_limited_posts', function() {
23 23
             return Post::latestLimitedPosts()->get();
24 24
         });
25
-        Cache::rememberForever('featured_limited_posts', function () {
25
+        Cache::rememberForever('featured_limited_posts', function() {
26 26
             return Post::featuredLimitedPosts()->get();
27 27
         });
28
-        Cache::rememberForever('limited_breaking_news', function () {
28
+        Cache::rememberForever('limited_breaking_news', function() {
29 29
             return Post::limitedBreakingNews()->get();
30 30
         });
31
-        Cache::rememberForever('limited_hot_news', function () {
31
+        Cache::rememberForever('limited_hot_news', function() {
32 32
             return Post::limitedHotNews()->get();
33 33
         });
34
-        Cache::rememberForever('limited_trending_posts', function () {
34
+        Cache::rememberForever('limited_trending_posts', function() {
35 35
             return Post::trending();
36 36
         });
37
-        Cache::rememberForever('limited_priority_posts', function () {
37
+        Cache::rememberForever('limited_priority_posts', function() {
38 38
             return Post::limitedPriorityPosts()->get();
39 39
         });
40
-        Cache::rememberForever('yesterday_most_visited_posts', function () {
40
+        Cache::rememberForever('yesterday_most_visited_posts', function() {
41 41
             return Post::yesterdayMostVisitedPosts()->get();
42 42
         });
43
-        Cache::rememberForever('week_most_visited_posts', function () {
43
+        Cache::rememberForever('week_most_visited_posts', function() {
44 44
             return Post::weekMostVisitedPosts()->get();
45 45
         });
46
-        Cache::rememberForever('most_visited_posts_chunked', function () {
46
+        Cache::rememberForever('most_visited_posts_chunked', function() {
47 47
             return Post::mostVisitedPostsChunked();
48 48
         });
49 49
         return [];
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     {
111 111
         if (request()->image) {
112 112
             $thumbnails = [
113
-                'storage' => 'website/post/' . validImageFolder($post->id, 'post'),
113
+                'storage' => 'website/post/'.validImageFolder($post->id, 'post'),
114 114
                 'width' => '1200',
115 115
                 'height' => '630',
116 116
                 'quality' => '100',
Please login to merge, or discard this patch.
src/Repositories/TemplateRepository.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
     public function indexTemplate()
14 14
     {
15 15
         $templates = config('adminetic.caching', true)
16
-            ? (Cache::has('templates') ? Cache::get('templates') : Cache::rememberForever('templates', function () {
16
+            ? (Cache::has('templates') ? Cache::get('templates') : Cache::rememberForever('templates', function() {
17 17
                 return Template::latest()->get();
18 18
             }))
19 19
             : Template::latest()->get();
Please login to merge, or discard this patch.
src/Http/Livewire/Admin/Post/PostsTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -185,11 +185,11 @@
 block discarded – undo
185 185
     {
186 186
         $search = $this->search ?? null;
187 187
         if ($search != '') {
188
-            return Post::where(function ($query) use ($search) {
189
-                $query->where('name', 'LIKE', '%' . $search . '%')
190
-                    ->orWhere('excerpt', 'LIKE', '%' . $search . '%')
191
-                    ->orWhere('seo_name', 'LIKE', '%' . $search . '%')
192
-                    ->orWhere('meta_description', 'LIKE', '%' . $search . '%');
188
+            return Post::where(function($query) use ($search) {
189
+                $query->where('name', 'LIKE', '%'.$search.'%')
190
+                    ->orWhere('excerpt', 'LIKE', '%'.$search.'%')
191
+                    ->orWhere('seo_name', 'LIKE', '%'.$search.'%')
192
+                    ->orWhere('meta_description', 'LIKE', '%'.$search.'%');
193 193
             });
194 194
         } else {
195 195
             return Post::latest();
Please login to merge, or discard this patch.
src/Http/Requests/ProjectRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
         return [
43 43
             'name' => 'required|max:255',
44
-            'slug' => 'required|max:255|unique:projects,slug,' . $id,
44
+            'slug' => 'required|max:255|unique:projects,slug,'.$id,
45 45
             'client' => 'required|max:255',
46 46
             'duration' => 'required|max:60',
47 47
             'category' => 'required|max:80',
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
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
         $id = $this->gallery->id ?? '';
42 42
 
43 43
         return [
44
-            'code' => 'required|max:255|unique:galleries,code,' . $id,
44
+            'code' => 'required|max:255|unique:galleries,code,'.$id,
45 45
             'name' => 'required|max:255',
46
-            'slug' => 'required|max:255|unique:galleries,slug,' . $id,
46
+            'slug' => 'required|max:255|unique:galleries,slug,'.$id,
47 47
             'excerpt' => 'sometimes|max:1000',
48 48
             'description' => 'sometimes|max:4000',
49 49
             'image' => 'sometimes|file|image|max:5000',
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
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
     {
42 42
         $id = $this->post->id ?? '';
43 43
         return [
44
-            'slug' => 'required|max:255|unique:posts,slug,' . $id,
45
-            'code' => 'required|max:255|unique:posts,code,' . $id,
44
+            'slug' => 'required|max:255|unique:posts,slug,'.$id,
45
+            'code' => 'required|max:255|unique:posts,code,'.$id,
46 46
             'author_id' => 'required|numeric',
47 47
             'category_id' => 'required|numeric',
48 48
             'name' => 'required|max:255',
Please login to merge, or discard this patch.