]> _ Git - psq.git/commitdiff
open webhook
authorLouis Jeckel <louis.jeckel@outlook.cm>
Mon, 7 Sep 2020 06:32:38 +0000 (08:32 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Mon, 7 Sep 2020 06:32:38 +0000 (08:32 +0200)
app/Http/Controllers/Auth/NotRegisteredYet.php
app/Http/Controllers/WebhookController.php
app/Models/WeeklyAgenda.php

index ad9deae9dcd7a5e2fcd6334443d02831e35e1744..6f7ce9b98970ae77065a0952867160f205489fa0 100644 (file)
@@ -8,6 +8,10 @@ use App\Http\Controllers\Controller;
 class NotRegisteredYet extends Controller
 {
 
+    public function __construct()
+    {
+    }
+
     public function index()
     {
         return view('not-registered.index');
index 5862722d2f54a8192b8bf503c5eb61036d8962fd..13616e13d870d87b1e8410c6fc671776b4849716 100644 (file)
@@ -8,6 +8,11 @@ use Illuminate\Http\Request;
 
 class WebhookController extends Controller
 {
+
+    public function __construct()
+    {
+    }
+
     public function mailgunEvent(Request $request)
     {
         event(new DispatchMailgunEvent($request->toArray()));
index 607f99502e991a86985177ad2d4df6b00f6ccd81..dcd1cec39b9731e778af9a6893ad359fe2d6d975 100644 (file)
@@ -65,14 +65,20 @@ class WeeklyAgenda extends Model
     }
 
 
-    public function nextWeekUrl()
+    /**
+     * @return string|null
+     */
+    public function nextWeekUrl(): ?string
     {
         return ($a = self::find($this->id + 1)) === null ?
             null :
             $a->url;
     }
 
-    public function lastWeekUrl()
+    /**
+     * @return string|null
+     */
+    public function lastWeekUrl(): ?string
     {
         return ($a = self::find($this->id - 1)) === null ?
             null :