@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | public function setUp() |
| 14 | 14 | { |
| 15 | 15 | parent::setUp(); |
| 16 | - $this->module = new Module($this->app, 'Recipe', __DIR__ . '/stubs/Recipe'); |
|
| 16 | + $this->module = new Module($this->app, 'Recipe', __DIR__.'/stubs/Recipe'); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** @test */ |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** @test */ |
| 50 | 50 | public function it_gets_module_path() |
| 51 | 51 | { |
| 52 | - $this->assertEquals(__DIR__ . '/stubs/Recipe', $this->module->getPath()); |
|
| 52 | + $this->assertEquals(__DIR__.'/stubs/Recipe', $this->module->getPath()); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** @test */ |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | protected function getBackendRoute() |
| 25 | 25 | { |
| 26 | - return __DIR__ . '/../Http/backendRoutes.php'; |
|
| 26 | + return __DIR__.'/../Http/backendRoutes.php'; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
@@ -35,10 +35,10 @@ |
||
| 35 | 35 | { |
| 36 | 36 | $this->app->bind( |
| 37 | 37 | 'Modules\Recipe\Repositories\RecipeRepository', |
| 38 | - function () { |
|
| 38 | + function() { |
|
| 39 | 39 | $repository = new \Modules\Recipe\Repositories\Eloquent\EloquentRecipeRepository(new \Modules\Recipe\Entities\Recipe()); |
| 40 | 40 | |
| 41 | - if (! config('app.cache')) { |
|
| 41 | + if (!config('app.cache')) { |
|
| 42 | 42 | return $repository; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | use Illuminate\Routing\Router; |
| 4 | 4 | /** @var Router $router */ |
| 5 | 5 | |
| 6 | -$router->group(['prefix' =>'/recipe'], function (Router $router) { |
|
| 7 | - $router->bind('recipes', function ($id) { |
|
| 6 | +$router->group(['prefix' =>'/recipe'], function(Router $router) { |
|
| 7 | + $router->bind('recipes', function($id) { |
|
| 8 | 8 | return app('Modules\Recipe\Repositories\RecipeRepository')->find($id); |
| 9 | 9 | }); |
| 10 | 10 | $router->resource('recipes', 'RecipeController', ['except' => ['show'], 'names' => [ |
@@ -29,14 +29,14 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function extendWith(Menu $menu) |
| 31 | 31 | { |
| 32 | - $menu->group(trans('core::sidebar.content'), function (Group $group) { |
|
| 33 | - $group->item('Recipe', function (Item $item) { |
|
| 32 | + $menu->group(trans('core::sidebar.content'), function(Group $group) { |
|
| 33 | + $group->item('Recipe', function(Item $item) { |
|
| 34 | 34 | $item->icon('fa fa-copy'); |
| 35 | 35 | $item->weight(10); |
| 36 | 36 | $item->authorize( |
| 37 | 37 | $this->auth->hasAccess('recipe.recipes.index') |
| 38 | 38 | ); |
| 39 | - $item->item(trans('recipe::recipes.title.recipes'), function (Item $item) { |
|
| 39 | + $item->item(trans('recipe::recipes.title.recipes'), function(Item $item) { |
|
| 40 | 40 | $item->icon('fa fa-copy'); |
| 41 | 41 | $item->weight(0); |
| 42 | 42 | $item->append('admin.recipe.recipe.create'); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | { |
| 158 | 158 | $lowerName = $this->getLowerName(); |
| 159 | 159 | |
| 160 | - $langPath = $this->getPath() . "/Resources/lang"; |
|
| 160 | + $langPath = $this->getPath()."/Resources/lang"; |
|
| 161 | 161 | |
| 162 | 162 | if (is_dir($langPath)) { |
| 163 | 163 | $this->loadTranslationsFrom($langPath, $lowerName); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $file = 'module.json'; |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | - return new Json($this->getPath() . '/' . $file, $this->app['files']); |
|
| 178 | + return new Json($this->getPath().'/'.$file, $this->app['files']); |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /** |