Skip to content

Commit

Permalink
StyleCI Issues fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheyd committed Mar 24, 2019
1 parent 69b97e8 commit a886814
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Factories/AbstractWidgetFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected function instantiateWidget(array $params = [])
$this->widgetConfig = (array) array_shift($params);
$this->widgetParams = $params;

if(!isset($rootNamespace)) {
if (!isset($rootNamespace)) {
$rootNamespace = $this->app->config('laravel-widgets.default_namespace', $this->app->getNamespace().'Widgets');
}

Expand Down
3 changes: 2 additions & 1 deletion src/Misc/LaravelApplicationWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ public function make($abstract, array $parameters = [])
*
* @param string $id
*
* @return mixed
* @throws \Illuminate\Container\EntryNotFoundException
*
* @return mixed
*/
public function get($id)
{
Expand Down
4 changes: 3 additions & 1 deletion src/NamespacesRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class NamespacesRepository
public function registerNamespace($alias, $namespace)
{
$this->namespaces[$alias] = rtrim($namespace, '\\');

return $this;
}

Expand All @@ -32,8 +33,9 @@ public function registerNamespace($alias, $namespace)
*
* @param string $label
*
* @return string
* @throws \Exception
*
* @return string
*/
public function getNamespace($alias)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/TestApplicationWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Arrilot\Widgets\Factories\AsyncWidgetFactory;
use Arrilot\Widgets\Factories\WidgetFactory;
use Arrilot\Widgets\NamespacesRepository;
use Illuminate\Container\Container;
use Closure;
use Doctrine\Instantiator\Exception\InvalidArgumentException;
use Illuminate\Container\Container;

class TestApplicationWrapper implements ApplicationWrapperContract
{
Expand Down
1 change: 0 additions & 1 deletion tests/WidgetFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Arrilot\Widgets\Test;

use Arrilot\Widgets\Factories\WidgetFactory;
use Arrilot\Widgets\NamespacesRepository;
use Arrilot\Widgets\Test\Dummies\TestCachedWidget;
use Arrilot\Widgets\Test\Support\TestApplicationWrapper;
use Arrilot\Widgets\Test\Support\TestCase;
Expand Down

0 comments on commit a886814

Please sign in to comment.