Skip to content

Commit

Permalink
Merge branch '3.x' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Mar 1, 2025
2 parents 6e4b2f8 + 6ab83bc commit ffa2938
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
15 changes: 6 additions & 9 deletions src/Database/Traits/NestedTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
use October\Rain\Database\Collection;
use October\Rain\Database\TreeCollection;
use October\Rain\Database\Scopes\NestedTreeScope;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Exception;

/**
Expand Down Expand Up @@ -120,15 +119,13 @@ public function initializeNestedTree()
$this->deleteDescendants();
});

if (static::hasGlobalScope(SoftDeletingScope::class)) {
$this->bindEvent('model.beforeRestore', function () {
$this->shiftSiblingsForRestore();
});
$this->bindEvent('model.beforeRestore', function () {
$this->shiftSiblingsForRestore();
});

$this->bindEvent('model.afterRestore', function () {
$this->restoreDescendants();
});
}
$this->bindEvent('model.afterRestore', function () {
$this->restoreDescendants();
});
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function registerCoreContainerAliases()
'queue' => [\Illuminate\Queue\QueueManager::class, \Illuminate\Contracts\Queue\Factory::class, \Illuminate\Contracts\Queue\Monitor::class],
'queue.connection' => [\Illuminate\Contracts\Queue\Queue::class],
'queue.failer' => [\Illuminate\Queue\Failed\FailedJobProviderInterface::class],
'redirect' => [\October\Rain\Router\CoreRedirector::class],
'redirect' => [\October\Rain\Router\CoreRedirector::class, \Illuminate\Routing\Redirector::class],
'redis' => [\Illuminate\Redis\RedisManager::class, \Illuminate\Contracts\Redis\Factory::class],
'redis.connection' => [\Illuminate\Redis\Connections\Connection::class, \Illuminate\Contracts\Redis\Connection::class],
'request' => [\Illuminate\Http\Request::class, \Symfony\Component\HttpFoundation\Request::class],
Expand Down
8 changes: 4 additions & 4 deletions src/Resize/Resizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ public function reset(): Resizer
public function setOptions(array $options): Resizer
{
$this->options = array_merge([
'mode' => 'auto',
'offset' => [0, 0],
'sharpen' => 0,
'mode' => 'crop',
'offset' => [0, 0],
'sharpen' => 0,
'interlace' => false,
'quality' => 90
'quality' => 90
], $options);

return $this;
Expand Down

0 comments on commit ffa2938

Please sign in to comment.