Skip to content

Commit

Permalink
Merge pull request #613 from nasirkhan/dev
Browse files Browse the repository at this point in the history
composer and yarn update
  • Loading branch information
nasirkhan authored Sep 3, 2024
2 parents 19146ed + 9663341 commit 2c6ea92
Show file tree
Hide file tree
Showing 34 changed files with 979 additions and 833 deletions.
2 changes: 1 addition & 1 deletion Modules/Category/Providers/CategoryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private function getPublishableViewPaths(): array
*/
protected function registerCommands($namespace = '')
{
$finder = new Finder(); // from Symfony\Component\Finder;
$finder = new Finder; // from Symfony\Component\Finder;
$finder->files()->name('*.php')->in(__DIR__.'/../Console');

$classes = [];
Expand Down
2 changes: 1 addition & 1 deletion Modules/Post/Providers/PostServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private function getPublishableViewPaths(): array
*/
protected function registerCommands($namespace = '')
{
$finder = new Finder(); // from Symfony\Component\Finder;
$finder = new Finder; // from Symfony\Component\Finder;
$finder->files()->name('*.php')->in(__DIR__.'/../Console');

$classes = [];
Expand Down
2 changes: 1 addition & 1 deletion Modules/Tag/Providers/TagServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private function getPublishableViewPaths(): array
*/
protected function registerCommands($namespace = '')
{
$finder = new Finder(); // from Symfony\Component\Finder;
$finder = new Finder; // from Symfony\Component\Finder;
$finder->files()->name('*.php')->in(__DIR__.'/../Console');

$classes = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ public function handle(UserRegistered $event)
if ($user->password === '') {
// Register via social do not have passwords
try {
$user->notify(new NewRegistrationNotificationForSocial());
$user->notify(new NewRegistrationNotificationForSocial);
} catch (\Exception $e) {
Log::error('UserRegisteredListener: Email Send Failed.');
Log::error($e);
}
} else {
try {
$user->notify(new NewRegistrationNotification());
$user->notify(new NewRegistrationNotification);
} catch (\Exception $e) {
Log::error('UserRegisteredListener: Email Send Failed.');
Log::error($e);
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Traits/HasHashedMediaTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function addMedia($file): FileAdder
*/
public function pathToUploadedFile($path, $test = true)
{
$filesystem = new Filesystem();
$filesystem = new Filesystem;

$name = $filesystem->name($path);
$extension = $filesystem->extension($path);
Expand Down
4 changes: 2 additions & 2 deletions app/Notifications/NewRegistrationNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ public function toMail(object $notifiable): MailMessage
return call_user_func(static::$toMailCallback, $notifiable, $verificationUrl);
}

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

return (new MailMessage())
return (new MailMessage)
->subject('Thank you for registration!')
->line('Thank you for registration at '.app_name().'.')
->action('Vist Application', url('/'))
Expand Down
4 changes: 2 additions & 2 deletions app/Notifications/NewRegistrationNotificationForSocial.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ public function toMail(object $notifiable): MailMessage
return call_user_func(static::$toMailCallback, $notifiable, $verificationUrl);
}

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

return (new MailMessage())
return (new MailMessage)
->subject('Thank you for registration!')
->line('Thank you for registration at '.app_name().'.')
->action('Vist Application', url('/'))
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/UserAccountCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function toMail($notifiable)
$request = $this->request;
$user = $notifiable;

return (new MailMessage())
return (new MailMessage)
->line('Welcome to '.app_name().'!')
->line('A new account has been created for you. Please use the following credentials to login.')
->line(__('Username').': '.$user->username)
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/VerifyEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function toMail($notifiable)
return call_user_func(static::$toMailCallback, $notifiable, $verificationUrl);
}

return (new MailMessage())
return (new MailMessage)
->subject(Lang::get('Verify Email Address'))
->line(Lang::get('Please click the button below to verify your email address.'))
->action(Lang::get('Verify Email Address'), $verificationUrl)
Expand Down
2 changes: 1 addition & 1 deletion app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function field_required($required)
function setting($key, $default = null)
{
if (is_null($key)) {
return new App\Models\Setting();
return new App\Models\Setting;
}

if (is_array($key)) {
Expand Down
Loading

0 comments on commit 2c6ea92

Please sign in to comment.