Completed
Push — master ( 5fdac1...20b91e )
by Davide
03:59
created
src/Http/Controllers/ResponsiveQuoteController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,17 +24,17 @@
 block discarded – undo
24 24
 
25 25
         if ($searchKeywords) {
26 26
             $quotes = Quote::orderBy('author')
27
-                                     ->where('author', 'like', '%'.$request->input('keywords').'%')
28
-                                     ->paginate(20);
27
+                                        ->where('author', 'like', '%'.$request->input('keywords').'%')
28
+                                        ->paginate(20);
29 29
         } else {
30 30
             $quotes = Quote::orderBy('author')
31
-                                     ->paginate(20);
31
+                                        ->paginate(20);
32 32
         }
33 33
         
34 34
         return view('php-responsive-quote::quotes.index', compact('quotes'))
35
-                             ->with('i', (request()->input('page', 1) - 1) * 20)
36
-                             ->with('searchKeywords', $searchKeywords)
37
-                             ->with('countriesAvailableForTranslations', $countriesAvailableForTranslations);
35
+                                ->with('i', (request()->input('page', 1) - 1) * 20)
36
+                                ->with('searchKeywords', $searchKeywords)
37
+                                ->with('countriesAvailableForTranslations', $countriesAvailableForTranslations);
38 38
     }
39 39
 
40 40
     /***************************************************************************/
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-    Route::group(['namespace' => 'DavideCasiraghi\PhpResponsiveRandomQuote\Http\Controllers', 'middleware' => 'web'], function () {
3
+    Route::group(['namespace' => 'DavideCasiraghi\PhpResponsiveRandomQuote\Http\Controllers', 'middleware' => 'web'], function() {
4 4
         
5 5
         /* Quotes */
6 6
         Route::resource('php-responsive-quote', 'ResponsiveQuoteController');
@@ -9,5 +9,5 @@  discard block
 block discarded – undo
9 9
         /* Quote translations */
10 10
         Route::get('php-responsive-quote-translation/{quoteId}/{languageCode}/create', 'ResponsiveQuoteTranslationController@create')->name('php-responsive-quote-translation.create');
11 11
         Route::get('php-responsive-quote-translation/{quoteId}/{languageCode}/edit', 'ResponsiveQuoteTranslationController@edit')->name('php-responsive-quote-translation.edit');
12
-        Route::resource('php-responsive-quote-translation', 'ResponsiveQuoteTranslationController')->except(['create','edit']);
12
+        Route::resource('php-responsive-quote-translation', 'ResponsiveQuoteTranslationController')->except(['create', 'edit']);
13 13
     });
Please login to merge, or discard this patch.