@@ -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 | } |
@@ -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!'); |
@@ -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!'); |
@@ -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!'); |
@@ -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 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $this->app->bind('WITR\TopTwenty\Reader', 'WITR\TopTwenty\DummyReader'); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - if($this->app->environment('local')) |
|
| 41 | + if ($this->app->environment('local')) |
|
| 42 | 42 | { |
| 43 | 43 | $this->app->register('Barryvdh\Debugbar\ServiceProvider'); |
| 44 | 44 | $this->app->register('Laracasts\Generators\GeneratorsServiceProvider'); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $router->group(['namespace' => $this->namespace], function($router) |
| 39 | 39 | { |
| 40 | 40 | require app_path('Http/routes.php'); |
| 41 | - $router->group(['namespace' => 'Admin', 'prefix' => 'admin'], function ($router) { |
|
| 41 | + $router->group(['namespace' => 'Admin', 'prefix' => 'admin'], function($router) { |
|
| 42 | 42 | require app_path('Http/admin_routes.php'); |
| 43 | 43 | }); |
| 44 | 44 | }); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $shows = new Collection(); |
| 65 | 65 | $sortedShows = $this->getShowsInPlayOrder(); |
| 66 | 66 | $shows->push($sortedShows->shift()); |
| 67 | - $nonPulseShows = $sortedShows->filter(function ($show) { |
|
| 67 | + $nonPulseShows = $sortedShows->filter(function($show) { |
|
| 68 | 68 | return strtolower($show->show()) != 'the pulse of music'; |
| 69 | 69 | }); |
| 70 | 70 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $exists = $shows->filter(function($show) use($random) { |
| 77 | 77 | return $show->showId() == $random->showId(); |
| 78 | 78 | }); |
| 79 | - } while(!$exists->isEmpty()); |
|
| 79 | + } while (!$exists->isEmpty()); |
|
| 80 | 80 | |
| 81 | 81 | $shows->push($random); |
| 82 | 82 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | public function getShowsInPlayOrder() |
| 87 | 87 | { |
| 88 | - $first = $this->first(function ($key, $show) { |
|
| 88 | + $first = $this->first(function($key, $show) { |
|
| 89 | 89 | return $show->nowPlaying(); |
| 90 | 90 | }); |
| 91 | 91 | $firstKey = $this->search($first); |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $listeners = IcecastListeners::forMounts($this->mounts[$studio]); |
| 35 | 35 | foreach ($this->mounts[$studio] as $mount) |
| 36 | 36 | { |
| 37 | - $response = $client->get($this->hostname . '/admin/listclients?mount=/'. $mount, [ |
|
| 37 | + $response = $client->get($this->hostname . '/admin/listclients?mount=/' . $mount, [ |
|
| 38 | 38 | 'auth' => $this->credentials |
| 39 | 39 | ]); |
| 40 | 40 | $xml = simplexml_load_string($response->getBody())->source->listener; |