Completed
Pull Request — master (#414)
by Philippe
32:33 queued 15:43
created
app/Http/Controllers/Back/Media/UploadModulesMediaController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $responseContent = [];
30 30
 
31 31
         foreach ($uploads as $upload) {
32
-            if (! $asset = AssetUploader::upload($upload)) {
32
+            if (!$asset = AssetUploader::upload($upload)) {
33 33
                 return response()->json([
34 34
                     'error' => true,
35 35
                     'messages' => 'Afbeelding kan niet worden opgeladen.',
Please login to merge, or discard this patch.
app/Http/Controllers/Back/ModulesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
         $manager->manage($module);
38 38
 
39 39
         return redirect()->to($manager->route('edit'))
40
-            ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" is toegevoegd');
40
+            ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "'.$manager->details()->title.'" is toegevoegd');
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/ManagersController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $manager = app(StoreManager::class)->handle($modelManager, $request);
53 53
 
54 54
         return redirect()->to($manager->route('edit'))
55
-                         ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" is toegevoegd');
55
+                            ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" is toegevoegd');
56 56
     }
57 57
 
58 58
     public function edit(string $key, $id)
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         app(UpdateManager::class)->handle($manager, $request);
83 83
 
84 84
         return redirect()->to($manager->route('edit'))
85
-                         ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" werd aangepast');
85
+                            ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" werd aangepast');
86 86
     }
87 87
 
88 88
     public function delete(string $key, $id, Request $request)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $manager = app(StoreManager::class)->handle($modelManager, $request);
53 53
 
54 54
         return redirect()->to($manager->route('edit'))
55
-                         ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" is toegevoegd');
55
+                         ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "'.$manager->details()->title.'" is toegevoegd');
56 56
     }
57 57
 
58 58
     public function edit(string $key, $id)
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         app(UpdateManager::class)->handle($manager, $request);
83 83
 
84 84
         return redirect()->to($manager->route('edit'))
85
-                         ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" werd aangepast');
85
+                         ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "'.$manager->details()->title.'" werd aangepast');
86 86
     }
87 87
 
88 88
     public function delete(string $key, $id, Request $request)
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
         try {
93 93
             app(DeleteManager::class)->handle($manager, $request);
94 94
         } catch (DeleteAborted $e) {
95
-            return redirect()->back()->with('messages.warning', $manager->details()->singular . ' is niet verwijderd.');
95
+            return redirect()->back()->with('messages.warning', $manager->details()->singular.' is niet verwijderd.');
96 96
         }
97 97
 
98 98
         return redirect()->to($manager->route('index'))
99
-            ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "' . $manager->details()->title . '" is verwijderd.');
99
+            ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i>  "'.$manager->details()->title.'" is verwijderd.');
100 100
     }
101 101
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Translations/TranslationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $this->authorize('view-squanto');
18 18
 
19 19
         $pages = Page::sequence()->get();
20
-        $pages->each(function ($page) {
20
+        $pages->each(function($page) {
21 21
             $page->groupedlines = $this->groupLinesByKey($page);
22 22
         });
23 23
         return view('squanto::index', compact('pages'));
Please login to merge, or discard this patch.
app/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * SPIRIT ROUTES
6 6
  * -----------------------------------------------------------------
7 7
  */
8
-Route::get('spirit/{section?}/{item?}', ['as' => 'spirit.index', 'uses' => function ($section = null, $item = null) {
8
+Route::get('spirit/{section?}/{item?}', ['as' => 'spirit.index', 'uses' => function($section = null, $item = null) {
9 9
     if ($section && $item && view()->exists('chief::spirit.'.$section.'.'.$item)) {
10 10
         return view('chief::spirit.'.$section.'.'.$item);
11 11
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  * ADMIN ROUTES
38 38
  * -----------------------------------------------------------------
39 39
  */
40
-Route::group(['prefix' => 'admin','middleware' => ['web', 'web-chief', 'auth:chief']], function () {
40
+Route::group(['prefix' => 'admin', 'middleware' => ['web', 'web-chief', 'auth:chief']], function() {
41 41
 
42 42
     // Dashboard
43 43
     Route::get('/', 'Thinktomorrow\Chief\App\Http\Controllers\Back\DashboardController@show')->name('chief.back.dashboard');
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Media/UploadManagersMediaController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $responseContent = [];
30 30
 
31 31
         foreach ($uploads as $upload) {
32
-            if (! $asset = AssetUploader::upload($upload)) {
32
+            if (!$asset = AssetUploader::upload($upload)) {
33 33
                 return response()->json([
34 34
                     'error' => true,
35 35
                     'messages' => 'Afbeelding kan niet worden opgeladen.',
Please login to merge, or discard this patch.
app/Http/Controllers/Back/Media/UploadPagesMediaController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $responseContent = [];
30 30
 
31 31
         foreach ($uploads as $upload) {
32
-            if (! $asset = AssetUploader::upload($upload)) {
32
+            if (!$asset = AssetUploader::upload($upload)) {
33 33
                 return response()->json([
34 34
                     'error' => true,
35 35
                     'messages' => 'Afbeelding kan niet worden opgeladen.',
Please login to merge, or discard this patch.
src/Filters/Types/InputFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function apply($value = null): Closure
17 17
     {
18
-        return $this->query && $this->query instanceof Closure ? $this->query : function ($query) {
18
+        return $this->query && $this->query instanceof Closure ? $this->query : function($query) {
19 19
             return $query;
20 20
         };
21 21
     }
Please login to merge, or discard this patch.
src/Settings/SettingsServiceProvider.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 register()
15 15
     {
16
-        $this->app->singleton(Settings::class, function ($app) {
16
+        $this->app->singleton(Settings::class, function($app) {
17 17
             return new Settings();
18 18
         });
19 19
     }
Please login to merge, or discard this patch.