@@ -50,7 +50,7 @@ |
||
| 50 | 50 | 'expiry' => $expiry |
| 51 | 51 | ]); |
| 52 | 52 | |
| 53 | - if($this->group !== null) { |
|
| 53 | + if ($this->group !== null) { |
|
| 54 | 54 | $this->groupRepository->pushLink($this->group, $link); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | $this->urlManipulator->setUrl($request->getUri()); |
| 35 | 35 | $this->urlManipulator->removeQuery(config('links.query_key')); |
| 36 | - if($link->url !== $this->urlManipulator->getUrl()){ |
|
| 36 | + if ($link->url !== $this->urlManipulator->getUrl()) { |
|
| 37 | 37 | throw new LinkNotFoundException; |
| 38 | 38 | } |
| 39 | 39 | return $next($request); |
@@ -23,17 +23,17 @@ |
||
| 23 | 23 | |
| 24 | 24 | $link = $request->get(\Linkeys\UrlSigner\Models\Link::class); |
| 25 | 25 | |
| 26 | - if($link->clickLimitReached()) { |
|
| 26 | + if ($link->clickLimitReached()) { |
|
| 27 | 27 | throw new LinkClickLimitReachedException; |
| 28 | 28 | } |
| 29 | - if($link->group && $link->group->clickLimitReached()) { |
|
| 29 | + if ($link->group && $link->group->clickLimitReached()) { |
|
| 30 | 30 | throw new LinkGroupClickLimitReachedException; |
| 31 | 31 | } |
| 32 | - if($link->expired()) { |
|
| 32 | + if ($link->expired()) { |
|
| 33 | 33 | throw new LinkExpiredException; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - if($link->group && $link->group->expired() && $link->expiry === null) { |
|
| 36 | + if ($link->group && $link->group->expired() && $link->expiry === null) { |
|
| 37 | 37 | throw new LinkGroupExpiredException; |
| 38 | 38 | } |
| 39 | 39 | |