original_string: public function deleted(Events\Deleted $event): bool
      {
          if (config('tenancy.website.auto-delete-tenant-directory')) {
              $stat = $this->filesystem()->deleteDirectory($event->website->uuid);
  
              if ($stat) {
                  $this->emitEvent(
                      new DirectoryDeleted($event->website, $this->filesystem())
                  );
              }
  
              return $stat;
          }
  
          return true;
      }
code: public function deleted(Events\Deleted $event): bool
      {
          if (config('tenancy.website.auto-delete-tenant-directory')) {
              $stat = $this->filesystem()->deleteDirectory($event->website->uuid);
  
              if ($stat) {
                  $this->emitEvent(
                      new DirectoryDeleted($event->website, $this->filesystem())
                  );
              }
  
              return $stat;
          }
  
          return true;
      }
code_tokens: public function deleted ( Events \ Deleted $ event ) : bool { if ( config ( 'tenancy.website.auto-delete-tenant-directory' ) ) { $ stat = $ this -> filesystem ( ) -> deleteDirectory ( $ event -> website -> uuid ) ; if ( $ stat ) { $ this -> emitEvent ( new DirectoryDeleted ( $ event -> website , $ this -> filesystem ( ) ) ) ; } return $ stat ; } return true ; }
docstring: Acts on this service whenever a website is disabled.
  
  @param Events\Deleted $event
  @return bool
docstring_tokens: Acts on this service whenever a website is disabled .