Adopt PSR-2 coding style

The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
This commit is contained in:
Laravel Shift
2018-01-18 01:04:19 +00:00
parent 72efd85d76
commit 0e48e34c8a
125 changed files with 986 additions and 1061 deletions
+2 -2
View File
@@ -29,7 +29,6 @@ use Illuminate\Support\Facades\Input;
use \Toastr;
use Carbon\Carbon;
class InviteController extends Controller
{
@@ -60,7 +59,8 @@ class InviteController extends Controller
//generate a random string using Laravel's str_random helper
$code = str_random();
} //check if the token already exists and if it does, try again
while (Invite::where('code', $code)->first());
while (Invite::where('code', $code)->first()) {
}
//create a new invite record
$invite = Invite::create([