| @@ -5,25 +5,25 @@ | ||
| 5 | 5 | |
| 6 | 6 |  class Kernel extends ConsoleKernel { | 
| 7 | 7 | |
| 8 | - /** | |
| 9 | - * The Artisan commands provided by your application. | |
| 10 | - * | |
| 11 | - * @var array | |
| 12 | - */ | |
| 13 | - protected $commands = [ | |
| 14 | - 'App\Console\Commands\Inspire', | |
| 15 | - ]; | |
| 8 | + /** | |
| 9 | + * The Artisan commands provided by your application. | |
| 10 | + * | |
| 11 | + * @var array | |
| 12 | + */ | |
| 13 | + protected $commands = [ | |
| 14 | + 'App\Console\Commands\Inspire', | |
| 15 | + ]; | |
| 16 | 16 | |
| 17 | - /** | |
| 18 | - * Define the application's command schedule. | |
| 19 | - * | |
| 20 | - * @param \Illuminate\Console\Scheduling\Schedule $schedule | |
| 21 | - * @return void | |
| 22 | - */ | |
| 23 | - protected function schedule(Schedule $schedule) | |
| 24 | -	{ | |
| 25 | -		$schedule->command('inspire') | |
| 26 | - ->hourly(); | |
| 27 | - } | |
| 17 | + /** | |
| 18 | + * Define the application's command schedule. | |
| 19 | + * | |
| 20 | + * @param \Illuminate\Console\Scheduling\Schedule $schedule | |
| 21 | + * @return void | |
| 22 | + */ | |
| 23 | + protected function schedule(Schedule $schedule) | |
| 24 | +    { | |
| 25 | +        $schedule->command('inspire') | |
| 26 | + ->hourly(); | |
| 27 | + } | |
| 28 | 28 | |
| 29 | 29 | } | 
| @@ -4,6 +4,6 @@ | ||
| 4 | 4 |  { | 
| 5 | 5 | public function __construct() | 
| 6 | 6 |      { | 
| 7 | -        \Log::info('Event triggered ['.get_called_class().']'); | |
| 7 | +        \Log::info('Event triggered [' . get_called_class() . ']'); | |
| 8 | 8 | } | 
| 9 | 9 | } | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 |          $reminder = app('sentinel.reminders')->create($event->user); | 
| 13 | 13 | $token = $reminder->code; | 
| 14 | 14 |          $view = config('auth.password.email'); | 
| 15 | -        app('mailer')->send($view, compact('user', 'token'), function (Message $m) use ($user, $token) { | |
| 15 | +        app('mailer')->send($view, compact('user', 'token'), function(Message $m) use ($user, $token) { | |
| 16 | 16 | $m->to($user->email)->subject($this->getPasswordResetEmailSubject()); | 
| 17 | 17 | }); | 
| 18 | 18 | } | 
| @@ -54,7 +54,7 @@ discard block | ||
| 54 | 54 | } | 
| 55 | 55 | |
| 56 | 56 | \DB::transaction( | 
| 57 | -            function () use ($newEntityName, $referenceEntity) { | |
| 57 | +            function() use ($newEntityName, $referenceEntity) { | |
| 58 | 58 | # Create new entity | 
| 59 | 59 | $newEntity = \DB::table($this->table); | 
| 60 | 60 | |
| @@ -95,7 +95,7 @@ discard block | ||
| 95 | 95 | } | 
| 96 | 96 | |
| 97 | 97 | \DB::transaction( | 
| 98 | -            function () use ($newEntityName, $referenceEntity) { | |
| 98 | +            function() use ($newEntityName, $referenceEntity) { | |
| 99 | 99 | # Create new entity | 
| 100 | 100 | $newEntity = \DB::table($this->table); | 
| 101 | 101 | |
| @@ -151,7 +151,7 @@ discard block | ||
| 151 | 151 | } | 
| 152 | 152 | |
| 153 | 153 | \DB::transaction( | 
| 154 | -            function () use ($newEntityName, $referenceEntity) { | |
| 154 | +            function() use ($newEntityName, $referenceEntity) { | |
| 155 | 155 | # Create new entity | 
| 156 | 156 | $newEntity = \DB::table($this->table); | 
| 157 | 157 | |
| @@ -192,7 +192,7 @@ discard block | ||
| 192 | 192 | } | 
| 193 | 193 | |
| 194 | 194 | \DB::transaction( | 
| 195 | -            function () use ($newEntityName, $referenceEntity) { | |
| 195 | +            function() use ($newEntityName, $referenceEntity) { | |
| 196 | 196 | # Create new entity | 
| 197 | 197 | $newEntity = \DB::table($this->table); | 
| 198 | 198 | |
| @@ -230,7 +230,7 @@ discard block | ||
| 230 | 230 | |
| 231 | 231 | # Perform either a soft-delete or hard-delete | 
| 232 | 232 | return \DB::transaction( | 
| 233 | -            function () use ($referenceEntity, $doSoftDelete, $completeListOfEntitiesToDeleteIncludingOrphans) { | |
| 233 | +            function() use ($referenceEntity, $doSoftDelete, $completeListOfEntitiesToDeleteIncludingOrphans) { | |
| 234 | 234 |                  if ($doSoftDelete) { | 
| 235 | 235 | # Soft delete | 
| 236 | 236 | $removeResult = $completeListOfEntitiesToDeleteIncludingOrphans->update(['deleted_at' => Carbon::now()]); | 
| @@ -278,7 +278,7 @@ discard block | ||
| 278 | 278 |              ->select('node.id', 'node.name') | 
| 279 | 279 | ->leftJoin( | 
| 280 | 280 | $this->table . ' as parent', | 
| 281 | -                function (JoinClause $join) { | |
| 281 | +                function(JoinClause $join) { | |
| 282 | 282 |                      $join->on('node.left_range', '<=', 'parent.right_range') | 
| 283 | 283 |                          ->on('node.left_range', '>=', 'parent.left_range'); | 
| 284 | 284 | }); | 
| @@ -83,7 +83,7 @@ discard block | ||
| 83 | 83 | public function registerViaOAuth(SocialiteUser $oauthUserData, $provider) | 
| 84 | 84 |      { | 
| 85 | 85 |          if (!($ownerAccount = User::withTrashed()->whereEmail($oauthUserData->email)->first())) { | 
| 86 | -            $ownerAccount = \Eloquent::unguarded(function () use ($oauthUserData, $provider) { | |
| 86 | +            $ownerAccount = \Eloquent::unguarded(function() use ($oauthUserData, $provider) { | |
| 87 | 87 | $user = User::create([ | 
| 88 | 88 | 'name' => $oauthUserData->name, | 
| 89 | 89 | 'email' => $oauthUserData->email, | 
| @@ -158,7 +158,7 @@ discard block | ||
| 158 | 158 | throw new PasswordNotValidException; | 
| 159 | 159 | } | 
| 160 | 160 | |
| 161 | - return (bool)User::destroy($id); | |
| 161 | + return (bool) User::destroy($id); | |
| 162 | 162 | } | 
| 163 | 163 | |
| 164 | 164 | /** | 
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | | database. Just tell the factory how a default model should look. | 
| 11 | 11 | | | 
| 12 | 12 | */ | 
| 13 | -$factory->define(\App\Models\User::class, function (\Faker\Generator $faker) { | |
| 13 | +$factory->define(\App\Models\User::class, function(\Faker\Generator $faker) { | |
| 14 | 14 | return [ | 
| 15 | 15 | 'name' => $faker->name, | 
| 16 | 16 | 'email' => $faker->email, | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('users', function (Blueprint $table) { | |
| 15 | +        Schema::create('users', function(Blueprint $table) { | |
| 16 | 16 |              $table->increments('id'); | 
| 17 | 17 |              $table->string('name')->nullable(); | 
| 18 | 18 |              $table->string('email')->unique()->nullable(); // Unique constraints can be Nullable, its SQL-92 compatible | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('nested_entities', function (Blueprint $table) { | |
| 15 | +        Schema::create('nested_entities', function(Blueprint $table) { | |
| 16 | 16 | $table->engine = 'InnoDb'; | 
| 17 | 17 | |
| 18 | 18 |              $table->mediumInteger('id', true, true); | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function up() | 
| 14 | 14 |      { | 
| 15 | -        Schema::create('translation_categories', function (Blueprint $table) { | |
| 15 | +        Schema::create('translation_categories', function(Blueprint $table) { | |
| 16 | 16 |              $table->increments('id'); | 
| 17 | 17 |              $table->string('name')->unique(); | 
| 18 | 18 | $table->timestamps(); |