@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function handle() |
30 | 30 | { |
31 | - $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL); |
|
31 | + $this->comment(PHP_EOL . Inspiring::quote() . PHP_EOL); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | } |
@@ -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')); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | $dj = new DJ($request->all()); |
48 | 48 | |
49 | - if($request->hasFile('picture')) |
|
49 | + if ($request->hasFile('picture')) |
|
50 | 50 | { |
51 | 51 | $file = $request->file('picture'); |
52 | 52 | $dj->uploadFile('picture', $file); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $dj = DJ::findOrFail($id); |
87 | 87 | $dj->fill($request->except(['picture'])); |
88 | 88 | |
89 | - if($request->hasFile('picture')) |
|
89 | + if ($request->hasFile('picture')) |
|
90 | 90 | { |
91 | 91 | $file = $request->file('picture'); |
92 | 92 | $dj->uploadFile('picture', $file); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | $dj = DJ::findOrFail($id); |
114 | - File::delete(public_path().'/img/djs/'.$dj->picture); |
|
114 | + File::delete(public_path() . '/img/djs/' . $dj->picture); |
|
115 | 115 | DJ::destroy($id); |
116 | 116 | return redirect()->route('admin.djs.index') |
117 | 117 | ->with('success', 'DJ Deleted!'); |
@@ -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(); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | public function delete($id) |
86 | 86 | { |
87 | 87 | $event = Event::findOrFail($id); |
88 | - File::delete(public_path().'/img/events/'.$event->picture); |
|
88 | + File::delete(public_path() . '/img/events/' . $event->picture); |
|
89 | 89 | Event::destroy($id); |
90 | 90 | return redirect()->route('admin.events.index') |
91 | 91 | ->with('success', 'Event Deleted!'); |
@@ -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 | }); |
@@ -101,7 +101,7 @@ |
||
101 | 101 | public function delete($id) |
102 | 102 | { |
103 | 103 | $user = User::findOrFail($id); |
104 | - File::delete(public_path().'/img/djs/'.$user->picture); |
|
104 | + File::delete(public_path() . '/img/djs/' . $user->picture); |
|
105 | 105 | User::destroy($id); |
106 | 106 | return redirect()->route('admin.users.index') |
107 | 107 | ->with('success', 'User Deleted!'); |
@@ -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(); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $games = $reader->get()->sortBy(function($game) { |
30 | 30 | return $game->startUtc->timestamp; |
31 | 31 | }); |
32 | - $laterGames = $games->filter(function ($game) { |
|
32 | + $laterGames = $games->filter(function($game) { |
|
33 | 33 | return $game->startUtc > Carbon::now('UTC'); |
34 | 34 | }); |
35 | 35 |