diff --git a/src/Listeners/CascadeDeleteListener.php b/src/Listeners/CascadeDeleteListener.php index 928b468..7f1275e 100755 --- a/src/Listeners/CascadeDeleteListener.php +++ b/src/Listeners/CascadeDeleteListener.php @@ -15,6 +15,7 @@ class CascadeDeleteListener * @return void * * @SuppressWarnings(PHPMD.UnusedFormalParameter("event")) + * * @noinspection PhpUnusedParameterInspection */ public function handle($event, $model) diff --git a/src/Listeners/CascadeRestoreListener.php b/src/Listeners/CascadeRestoreListener.php index 3a3cd4c..c12c35c 100755 --- a/src/Listeners/CascadeRestoreListener.php +++ b/src/Listeners/CascadeRestoreListener.php @@ -17,6 +17,7 @@ class CascadeRestoreListener * @return void * * @SuppressWarnings(PHPMD.UnusedFormalParameter("event")) + * * @noinspection PhpUnusedParameterInspection */ public function handle($event, $model) diff --git a/src/Providers/LumenEventServiceProvider.php b/src/Providers/LumenEventServiceProvider.php index 9709533..b217ba6 100644 --- a/src/Providers/LumenEventServiceProvider.php +++ b/src/Providers/LumenEventServiceProvider.php @@ -3,8 +3,8 @@ namespace Askedio\SoftCascade\Providers; use Askedio\SoftCascade\Listeners\CascadeDeleteListener; -use Askedio\SoftCascade\Listeners\CascadeRestoreListener; use Askedio\SoftCascade\Listeners\CascadeQueryListener; +use Askedio\SoftCascade\Listeners\CascadeRestoreListener; use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\Event; use Illuminate\Support\ServiceProvider; diff --git a/src/SoftCascade.php b/src/SoftCascade.php index 2e9db27..22469ef 100644 --- a/src/SoftCascade.php +++ b/src/SoftCascade.php @@ -86,6 +86,7 @@ public function cascade($models, $direction, array $directionData = []) * @param Models $models * * @return void + * * @noinspection PhpDocMissingThrowsInspection,PhpUnhandledExceptionInspection */ protected function run($models)