Skip to content

Commit 0cb251c

Browse files
committed
Apply fixes from StyleCI
1 parent d83a1ca commit 0cb251c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/Extend/LinksOverride.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of fof/links.
5+
*
6+
* Copyright (c) FriendsOfFlarum.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace FoF\Links\Extend;
413

514
use Flarum\Extend\ExtenderInterface;
@@ -25,6 +34,7 @@ class LinksOverride implements ExtenderInterface
2534
* that will return an array of LinkDefinition objects.
2635
*
2736
* @param LinkDefinition[]|string $links
37+
*
2838
* @return $this
2939
*/
3040
public function addLinks($links)
@@ -33,13 +43,15 @@ public function addLinks($links)
3343
throw new \InvalidArgumentException('addLinks expects an array of LinkDefinition objects or an invokable class string.');
3444
}
3545
$this->links = $links;
46+
3647
return $this;
3748
}
3849

3950
/**
4051
* Add a single link.
4152
*
4253
* @param LinkDefinition $link
54+
*
4355
* @return $this
4456
*/
4557
public function addLink(LinkDefinition $link)
@@ -50,6 +62,7 @@ public function addLink(LinkDefinition $link)
5062
// If a class string was already provided, override it with an array.
5163
$this->links = [$link];
5264
}
65+
5366
return $this;
5467
}
5568

@@ -58,7 +71,7 @@ public function addLink(LinkDefinition $link)
5871
*
5972
* This binds the override links into the LinkRepository.
6073
*
61-
* @param Container $container
74+
* @param Container $container
6275
* @param Extension|null $extension
6376
*/
6477
public function extend(Container $container, ?Extension $extension = null)

0 commit comments

Comments
 (0)