@@ -7,8 +7,6 @@ |
||
| 7 | 7 | use App\User; |
| 8 | 8 | use GrahamCampbell\GitHub\GitHubManager; |
| 9 | 9 | use Socialite; |
| 10 | -use App\Http\Requests; |
|
| 11 | -use Illuminate\Http\Request; |
|
| 12 | 10 | use App\Http\Controllers\Controller; |
| 13 | 11 | |
| 14 | 12 | class GitHubController extends Controller |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Validator; |
| 6 | 6 | use App\Contact; |
| 7 | -use App\Http\Requests; |
|
| 8 | 7 | use Illuminate\Http\Request; |
| 9 | 8 | |
| 10 | 9 | class ContactController extends Controller |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use App\Http\Requests; |
|
| 6 | -use Illuminate\Http\Request; |
|
| 7 | - |
|
| 8 | 5 | class HomeController extends Controller |
| 9 | 6 | { |
| 10 | 7 | /** |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use \Auth; |
| 6 | 6 | use App\Ping; |
| 7 | 7 | use \Validator; |
| 8 | -use App\Http\Requests; |
|
| 9 | 8 | use Illuminate\Http\Request; |
| 10 | 9 | use App\Http\Controllers\Controller; |
| 11 | 10 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public function store(Request $request) |
| 24 | 24 | { |
| 25 | - if ( ! $request->wantsJson()) { |
|
| 25 | + if (!$request->wantsJson()) { |
|
| 26 | 26 | return response("Pings can only be created via json requests", 400); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | if ($validator->fails()) { |
| 38 | 38 | /** @var \Illuminate\Validation\Validator $validator */ |
| 39 | - return response( $validator->getMessageBag(), 422); |
|
| 39 | + return response($validator->getMessageBag(), 422); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $ping = Ping::createDefaultPing($requestData['name'], true, Auth::id()); |
@@ -5,8 +5,6 @@ |
||
| 5 | 5 | use Mail; |
| 6 | 6 | use App\Contact; |
| 7 | 7 | use App\Events\PingFailure; |
| 8 | -use Illuminate\Queue\InteractsWithQueue; |
|
| 9 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
| 10 | 8 | |
| 11 | 9 | class NotifyPeopleAboutPingFailure |
| 12 | 10 | { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | //contact the person |
| 42 | 42 | |
| 43 | - Mail::queue(['text' => 'emails.ping-error'], ['ping' => $event->ping], function ($message) use($contact, $event) { |
|
| 43 | + Mail::queue(['text' => 'emails.ping-error'], ['ping' => $event->ping], function($message) use($contact, $event) { |
|
| 44 | 44 | $message->subject("Nothing heard from ping " . $event->ping->name); |
| 45 | 45 | $message->to($contact->email, $contact->name); |
| 46 | 46 | }); |
@@ -52,6 +52,6 @@ |
||
| 52 | 52 | |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - $this->table(['error', 'name', 'last_ping', 'frequency' ,'overdue_date', 'overdue'], $results); |
|
| 55 | + $this->table(['error', 'name', 'last_ping', 'frequency', 'overdue_date', 'overdue'], $results); |
|
| 56 | 56 | } |
| 57 | 57 | } |
@@ -28,6 +28,6 @@ |
||
| 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 | } |
@@ -25,6 +25,6 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | protected function schedule(Schedule $schedule) |
| 27 | 27 | { |
| 28 | - $schedule->command('pings:update-overdue')->everyMinute(); |
|
| 28 | + $schedule->command('pings:update-overdue')->everyMinute(); |
|
| 29 | 29 | } |
| 30 | 30 | } |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | private function trimArrayItems(array $tags) |
| 68 | 68 | { |
| 69 | - return array_map(function ($tag) { |
|
| 69 | + return array_map(function($tag) { |
|
| 70 | 70 | return trim($tag); |
| 71 | 71 | }, $tags); |
| 72 | 72 | } |