Skip to content

Commit

Permalink
Run Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrancodes committed Mar 5, 2024
1 parent c7f3731 commit f9db886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions app/Services/Forge/Pipeline/AnnounceSiteOnSlack.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ class AnnounceSiteOnSlack
public function __invoke(ForgeService $service, Closure $next)
{
// End early if the slack bot token and channel are not set in the Forge service settings
if ( ! $service->setting->slackAnnouncementEnabled ) {
if (! $service->setting->slackAnnouncementEnabled) {
return $next($service);
}

if ( ! $service->siteNewlyMade ) {
if (! $service->siteNewlyMade) {
$this->information('Skipping Slack announcement as the site is not newly made.');

return $next($service);
}

Expand Down
4 changes: 0 additions & 4 deletions config/services.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?php

use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;

return [
'slack' => [
'notifications' => [
Expand Down

0 comments on commit f9db886

Please sign in to comment.