Skip to content

Commit 2c6ea92

Browse files
authored
Merge pull request #613 from nasirkhan/dev
composer and yarn update
2 parents 19146ed + 9663341 commit 2c6ea92

34 files changed

+979
-833
lines changed

Modules/Category/Providers/CategoryServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function getPublishableViewPaths(): array
119119
*/
120120
protected function registerCommands($namespace = '')
121121
{
122-
$finder = new Finder(); // from Symfony\Component\Finder;
122+
$finder = new Finder; // from Symfony\Component\Finder;
123123
$finder->files()->name('*.php')->in(__DIR__.'/../Console');
124124

125125
$classes = [];

Modules/Post/Providers/PostServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function getPublishableViewPaths(): array
119119
*/
120120
protected function registerCommands($namespace = '')
121121
{
122-
$finder = new Finder(); // from Symfony\Component\Finder;
122+
$finder = new Finder; // from Symfony\Component\Finder;
123123
$finder->files()->name('*.php')->in(__DIR__.'/../Console');
124124

125125
$classes = [];

Modules/Tag/Providers/TagServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function getPublishableViewPaths(): array
119119
*/
120120
protected function registerCommands($namespace = '')
121121
{
122-
$finder = new Finder(); // from Symfony\Component\Finder;
122+
$finder = new Finder; // from Symfony\Component\Finder;
123123
$finder->files()->name('*.php')->in(__DIR__.'/../Console');
124124

125125
$classes = [];

app/Listeners/Frontend/UserRegistered/EmailNotificationOnUserRegistered.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ public function handle(UserRegistered $event)
3636
if ($user->password === '') {
3737
// Register via social do not have passwords
3838
try {
39-
$user->notify(new NewRegistrationNotificationForSocial());
39+
$user->notify(new NewRegistrationNotificationForSocial);
4040
} catch (\Exception $e) {
4141
Log::error('UserRegisteredListener: Email Send Failed.');
4242
Log::error($e);
4343
}
4444
} else {
4545
try {
46-
$user->notify(new NewRegistrationNotification());
46+
$user->notify(new NewRegistrationNotification);
4747
} catch (\Exception $e) {
4848
Log::error('UserRegisteredListener: Email Send Failed.');
4949
Log::error($e);

app/Models/Traits/HasHashedMediaTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function addMedia($file): FileAdder
3434
*/
3535
public function pathToUploadedFile($path, $test = true)
3636
{
37-
$filesystem = new Filesystem();
37+
$filesystem = new Filesystem;
3838

3939
$name = $filesystem->name($path);
4040
$extension = $filesystem->extension($path);

app/Notifications/NewRegistrationNotification.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ public function toMail(object $notifiable): MailMessage
5252
return call_user_func(static::$toMailCallback, $notifiable, $verificationUrl);
5353
}
5454

55-
return (new MailMessage())
55+
return (new MailMessage)
5656
->subject('Thank you for registration!')
5757
->line('Please click the button below to verify your email address.')
5858
->action('Verify Email Address', $verificationUrl)
5959
->line('If you did not create an account, no further action is required.');
6060
}
6161

62-
return (new MailMessage())
62+
return (new MailMessage)
6363
->subject('Thank you for registration!')
6464
->line('Thank you for registration at '.app_name().'.')
6565
->action('Vist Application', url('/'))

app/Notifications/NewRegistrationNotificationForSocial.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ public function toMail(object $notifiable): MailMessage
5252
return call_user_func(static::$toMailCallback, $notifiable, $verificationUrl);
5353
}
5454

55-
return (new MailMessage())
55+
return (new MailMessage)
5656
->subject('Thank you for registration!')
5757
->line('Please click the button below to verify your email address.')
5858
->action('Verify Email Address', $verificationUrl)
5959
->line('If you did not create an account, no further action is required.');
6060
}
6161

62-
return (new MailMessage())
62+
return (new MailMessage)
6363
->subject('Thank you for registration!')
6464
->line('Thank you for registration at '.app_name().'.')
6565
->action('Vist Application', url('/'))

app/Notifications/UserAccountCreated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function toMail($notifiable)
4545
$request = $this->request;
4646
$user = $notifiable;
4747

48-
return (new MailMessage())
48+
return (new MailMessage)
4949
->line('Welcome to '.app_name().'!')
5050
->line('A new account has been created for you. Please use the following credentials to login.')
5151
->line(__('Username').': '.$user->username)

app/Notifications/VerifyEmail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function toMail($notifiable)
4343
return call_user_func(static::$toMailCallback, $notifiable, $verificationUrl);
4444
}
4545

46-
return (new MailMessage())
46+
return (new MailMessage)
4747
->subject(Lang::get('Verify Email Address'))
4848
->line(Lang::get('Please click the button below to verify your email address.'))
4949
->action(Lang::get('Verify Email Address'), $verificationUrl)

app/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function field_required($required)
166166
function setting($key, $default = null)
167167
{
168168
if (is_null($key)) {
169-
return new App\Models\Setting();
169+
return new App\Models\Setting;
170170
}
171171

172172
if (is_array($key)) {

0 commit comments

Comments
 (0)