Skip to content

Commit

Permalink
Apply fixes from StyleCI (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and sebastiandedeyne committed Nov 13, 2017
1 parent 1a74836 commit 719bf45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Html/Attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function addClass($class)
*
* @return $this
*/
public function mergeWith(Attributes $attributes)
public function mergeWith(self $attributes)
{
$this->attributes = array_merge($this->attributes, $attributes->attributes);
$this->classes = array_merge($this->classes, $attributes->classes);
Expand Down
4 changes: 2 additions & 2 deletions src/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function new($items = [])
*
* @return static
*/
public static function build($items, callable $callback, Menu $initial = null)
public static function build($items, callable $callback, self $initial = null)
{
return ($initial ?: static::new())->fill($items, $callback);
}
Expand Down Expand Up @@ -244,7 +244,7 @@ protected function parseSubmenuArgs($args): array
*
* @return \Spatie\Menu\Menu
*/
protected function createSubmenuMenu($menu): Menu
protected function createSubmenuMenu($menu): self
{
if (is_callable($menu)) {
$transformer = $menu;
Expand Down

0 comments on commit 719bf45

Please sign in to comment.