@@ -36,10 +36,10 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * Save the new Album Review. |
|
| 40 | - * |
|
| 41 | - *@return Response |
|
| 42 | - */ |
|
| 39 | + * Save the new Album Review. |
|
| 40 | + * |
|
| 41 | + *@return Response |
|
| 42 | + */ |
|
| 43 | 43 | public function create(Requests\CreateRequest $request) |
| 44 | 44 | { |
| 45 | 45 | $review = new AlbumReview($request->except('img_name')); |
@@ -50,8 +50,7 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $file = $request->file('picture'); |
| 52 | 52 | $dj->uploadFile('picture', $file); |
| 53 | - } |
|
| 54 | - else |
|
| 53 | + } else |
|
| 55 | 54 | { |
| 56 | 55 | $dj->picture = 'default.jpg'; |
| 57 | 56 | } |
@@ -39,10 +39,10 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Save the new Event |
|
| 43 | - * |
|
| 44 | - * @return Response |
|
| 45 | - */ |
|
| 42 | + * Save the new Event |
|
| 43 | + * |
|
| 44 | + * @return Response |
|
| 45 | + */ |
|
| 46 | 46 | public function create(Requests\CreateRequest $request) |
| 47 | 47 | { |
| 48 | 48 | $input = $request->all(); |
@@ -39,10 +39,10 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Save the new Show. |
|
| 43 | - * |
|
| 44 | - *@return Response |
|
| 45 | - */ |
|
| 42 | + * Save the new Show. |
|
| 43 | + * |
|
| 44 | + *@return Response |
|
| 45 | + */ |
|
| 46 | 46 | public function create(Requests\CreateRequest $request) |
| 47 | 47 | { |
| 48 | 48 | $show = new Show($request->except(['show_picture', 'slider_picture'])); |
@@ -41,12 +41,12 @@ |
||
| 41 | 41 | $value = $input['value_' . $setting->id]; |
| 42 | 42 | $setting->value = $value; |
| 43 | 43 | |
| 44 | - $enabled_id = 'enabled_' . $setting->id; |
|
| 45 | - if (array_key_exists($enabled_id, $input)) { |
|
| 46 | - $setting->enabled = $input[$enabled_id]; |
|
| 47 | - } else { |
|
| 48 | - $setting->enabled = 1; |
|
| 49 | - } |
|
| 44 | + $enabled_id = 'enabled_' . $setting->id; |
|
| 45 | + if (array_key_exists($enabled_id, $input)) { |
|
| 46 | + $setting->enabled = $input[$enabled_id]; |
|
| 47 | + } else { |
|
| 48 | + $setting->enabled = 1; |
|
| 49 | + } |
|
| 50 | 50 | |
| 51 | 51 | $setting->save(); |
| 52 | 52 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $user->password = ''; |
| 53 | 53 | $user->save(); |
| 54 | 54 | |
| 55 | - $response = $this->passwords->sendResetLink($request->only('email'), function($m) |
|
| 55 | + $response = $this->passwords->sendResetLink($request->only('email'), function($m) |
|
| 56 | 56 | { |
| 57 | 57 | $m->subject('Welcome to WITR!'); |
| 58 | 58 | }); |
@@ -37,10 +37,10 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * Save the new eboard position. |
|
| 41 | - * |
|
| 42 | - *@return Response |
|
| 43 | - */ |
|
| 40 | + * Save the new eboard position. |
|
| 41 | + * |
|
| 42 | + *@return Response |
|
| 43 | + */ |
|
| 44 | 44 | public function create(Requests\CreateRequest $request) |
| 45 | 45 | { |
| 46 | 46 | $input = $request->all(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function index() |
| 14 | 14 | { |
| 15 | - $banner = SystemSetting::frontPageBannerText(); |
|
| 15 | + $banner = SystemSetting::frontPageBannerText(); |
|
| 16 | 16 | return view('home.index')->withBanner($banner); |
| 17 | 17 | } |
| 18 | 18 | |
@@ -46,8 +46,7 @@ |
||
| 46 | 46 | if ($request->ajax()) |
| 47 | 47 | { |
| 48 | 48 | return response('Unauthorized.', 401); |
| 49 | - } |
|
| 50 | - else |
|
| 49 | + } else |
|
| 51 | 50 | { |
| 52 | 51 | return redirect()->guest('auth/login'); |
| 53 | 52 | } |