Passed
Pull Request — master (#149)
by webdevetc
04:13
created
src/Services/UploadsService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             if (isset($image_size_details['crop']) && $image_size_details['crop']) {
201 201
                 $resizedImage = $resizedImage->fit($w, $h);
202 202
             } else {
203
-                $resizedImage = $resizedImage->resize($w, $h, static function ($constraint) {
203
+                $resizedImage = $resizedImage->resize($w, $h, static function($constraint) {
204 204
                     $constraint->aspectRatio();
205 205
                 });
206 206
             }
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
             if (isset($imageSizeDetails['crop']) && $imageSizeDetails['crop']) {
411 411
                 $resizedImage = $resizedImage->fit($w, $h);
412 412
             } else {
413
-                $resizedImage = $resizedImage->resize($w, $h, static function (Constraint $constraint) {
413
+                $resizedImage = $resizedImage->resize($w, $h, static function(Constraint $constraint) {
414 414
                     $constraint->aspectRatio();
415 415
                 });
416 416
             }
Please login to merge, or discard this patch.
src/routes.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-Route::group(['middleware' => ['web'], 'namespace' => '\WebDevEtc\BlogEtc\Controllers'], static function () {
3
+Route::group(['middleware' => ['web'], 'namespace' => '\WebDevEtc\BlogEtc\Controllers'], static function() {
4 4
     /* The main public facing blog routes - show all posts, view a category, rss feed, view a single post, also the add comment route */
5
-    Route::group(['prefix' => config('blogetc.blog_prefix', 'blog')], static function () {
5
+    Route::group(['prefix' => config('blogetc.blog_prefix', 'blog')], static function() {
6 6
         Route::get('/', 'PostsController@index')->name('blogetc.index');
7 7
         Route::get('/search', 'PostsController@search')->name('blogetc.search');
8 8
         Route::get('/feed', 'BlogEtcRssFeedController@feed')->name('blogetc.feed');
9 9
         Route::get('/category/{categorySlug}', 'PostsController@showCategory')->name('blogetc.view_category');
10 10
         Route::get('/{blogPostSlug}', 'PostsController@show')->name('blogetc.single');
11 11
 
12
-        Route::group(['middleware' => 'throttle:10,3'], static function () {
12
+        Route::group(['middleware' => 'throttle:10,3'], static function() {
13 13
             Route::post('save_comment/{blogPostSlug}', 'CommentsController@store')->name('blogetc.comments.add_new_comment');
14 14
         });
15 15
     });
16 16
 
17 17
     /* Admin backend routes - CRUD for posts, categories, and approving/deleting submitted comments */
18
-    Route::group(['prefix' => config('blogetc.admin_prefix', 'blog_admin')], static function () {
18
+    Route::group(['prefix' => config('blogetc.admin_prefix', 'blog_admin')], static function() {
19 19
         Route::get('/', 'Admin\ManagePostsController@index')->name('blogetc.admin.index');
20 20
 
21 21
         Route::get('/add_post', 'Admin\ManagePostsController@create')->name('blogetc.admin.create_post');
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         Route::get('/edit_post/{blogPostId}', 'Admin\ManagePostsController@edit')->name('blogetc.admin.edit_post');
25 25
         Route::patch('/edit_post/{blogPostId}', 'Admin\ManagePostsController@update')->name('blogetc.admin.update_post');
26 26
 
27
-        Route::group(['prefix' => 'image_uploads'], static function () {
27
+        Route::group(['prefix' => 'image_uploads'], static function() {
28 28
             Route::get('/', 'Admin\ManageUploadsController@index')->name('blogetc.admin.images.all');
29 29
 
30 30
             Route::get('/upload', 'Admin\ManageUploadsController@create')->name('blogetc.admin.images.upload');
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
 
37 37
         Route::delete('/delete_post/{blogPostId}', 'Admin\ManagePostsController@destroy')->name('blogetc.admin.destroy_post');
38 38
 
39
-        Route::group(['prefix' => 'comments'], static function () {
39
+        Route::group(['prefix' => 'comments'], static function() {
40 40
             Route::get('/', 'Admin\ManageCommentsController@index')->name('blogetc.admin.comments.index');
41 41
             Route::patch('/{commentId}', 'Admin\ManageCommentsController@approve')->name('blogetc.admin.comments.approve');
42 42
 
43 43
             Route::delete('/{commentId}', 'Admin\ManageCommentsController@destroy')->name('blogetc.admin.comments.delete');
44 44
         });
45 45
 
46
-        Route::group(['prefix' => 'categories'], static function () {
46
+        Route::group(['prefix' => 'categories'], static function() {
47 47
             Route::get('/', 'Admin\ManageCategoriesController@index')->name('blogetc.admin.categories.index');
48 48
 
49 49
             Route::get('/add_category', 'Admin\ManageCategoriesController@create')->name('blogetc.admin.categories.create_category');
Please login to merge, or discard this patch.