Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Commit e943965

Browse files
Minor fixes
1 parent 566f280 commit e943965

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Navigation.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
namespace GrahamCampbell\Navigation;
1818

19-
use Illuminate\Http\Request;
20-
use Illuminate\View\Factory;
2119
use Illuminate\Events\Dispatcher;
20+
use Illuminate\Http\Request;
2221
use Illuminate\Routing\UrlGenerator;
22+
use Illuminate\View\Factory;
2323

2424
/**
2525
* This is the navigation class.
@@ -178,7 +178,7 @@ public function render($mainname = 'default', $barname = false, array $data = ar
178178
}
179179

180180
// return the html nav bar
181-
return $this->view->make($this->name, array_merge($data, array('main' => $mainnav, 'bar' => $barnav)));
181+
return $this->view->make($this->name, array_merge($data, array('main' => $mainnav, 'bar' => $barnav)))->render();
182182
}
183183

184184
/**
@@ -320,7 +320,7 @@ public function getRequest()
320320
*/
321321
public function setRequest(Request $request)
322322
{
323-
return $this->request = $request;
323+
$this->request = $request;
324324
}
325325

326326
/**

src/NavigationServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function registerNavigation()
8181
/**
8282
* Get the services provided by the provider.
8383
*
84-
* @return array
84+
* @return string[]
8585
*/
8686
public function provides()
8787
{

0 commit comments

Comments
 (0)