Completed
Branch master (00d7a1)
by Nicolas
03:44
created
tests/ModuleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 */
Please login to merge, or discard this patch.
tests/stubs/Recipe/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
tests/stubs/Recipe/Providers/RecipeServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/stubs/Recipe/Config/config.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	'name' => 'Recipe'
4
+    'name' => 'Recipe'
5 5
 ];
6 6
\ No newline at end of file
Please login to merge, or discard this patch.
tests/stubs/Recipe/Http/backendRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
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' => [
Please login to merge, or discard this patch.
tests/stubs/Recipe/Sidebar/SidebarExtender.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Database/Migrations/2015_11_20_104330096199_create_recipe_recipes_table.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -5,27 +5,27 @@
 block discarded – undo
5 5
 
6 6
 class CreateRecipeRecipesTable extends Migration
7 7
 {
8
-	/**
9
-	 * Run the migrations.
10
-	 *
11
-	 * @return void
12
-	 */
13
-	public function up()
14
-	{
15
-		Schema::create('recipe__recipes', function(Blueprint $table) {
16
-			$table->engine = 'InnoDB';
8
+    /**
9
+     * Run the migrations.
10
+     *
11
+     * @return void
12
+     */
13
+    public function up()
14
+    {
15
+        Schema::create('recipe__recipes', function(Blueprint $table) {
16
+            $table->engine = 'InnoDB';
17 17
             $table->increments('id');
18 18
             $table->timestamps();
19
-		});
20
-	}
19
+        });
20
+    }
21 21
 
22
-	/**
23
-	 * Reverse the migrations.
24
-	 *
25
-	 * @return void
26
-	 */
27
-	public function down()
28
-	{
29
-		Schema::drop('recipe__recipes');
30
-	}
22
+    /**
23
+     * Reverse the migrations.
24
+     *
25
+     * @return void
26
+     */
27
+    public function down()
28
+    {
29
+        Schema::drop('recipe__recipes');
30
+    }
31 31
 }
Please login to merge, or discard this patch.
2015_11_20_104330348148_create_recipe_recipe_translations_table.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -5,33 +5,33 @@
 block discarded – undo
5 5
 
6 6
 class CreateRecipeRecipeTranslationsTable extends Migration
7 7
 {
8
-	/**
9
-	 * Run the migrations.
10
-	 *
11
-	 * @return void
12
-	 */
13
-	public function up()
14
-	{
15
-		Schema::create('recipe__recipe_translations', function(Blueprint $table) {
16
-			$table->engine = 'InnoDB';
8
+    /**
9
+     * Run the migrations.
10
+     *
11
+     * @return void
12
+     */
13
+    public function up()
14
+    {
15
+        Schema::create('recipe__recipe_translations', function(Blueprint $table) {
16
+            $table->engine = 'InnoDB';
17 17
             $table->increments('id');
18
-			$table->string('name');
19
-			$table->text('content');
18
+            $table->string('name');
19
+            $table->text('content');
20 20
 
21 21
             $table->integer('recipe_id')->unsigned();
22 22
             $table->string('locale')->index();
23 23
             $table->unique(['recipe_id', 'locale']);
24 24
             $table->foreign('recipe_id')->references('id')->on('recipe__recipes')->onDelete('cascade');
25
-		});
26
-	}
25
+        });
26
+    }
27 27
 
28
-	/**
29
-	 * Reverse the migrations.
30
-	 *
31
-	 * @return void
32
-	 */
33
-	public function down()
34
-	{
35
-		Schema::drop('recipe__recipe_translations');
36
-	}
28
+    /**
29
+     * Reverse the migrations.
30
+     *
31
+     * @return void
32
+     */
33
+    public function down()
34
+    {
35
+        Schema::drop('recipe__recipe_translations');
36
+    }
37 37
 }
Please login to merge, or discard this patch.
tests/stubs/Recipe/Database/Seeders/RecipeDatabaseSeeder.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 
6 6
 class RecipeDatabaseSeeder extends Seeder {
7 7
 
8
-	/**
9
-	 * Run the database seeds.
10
-	 *
11
-	 * @return void
12
-	 */
13
-	public function run()
14
-	{
15
-		Model::unguard();
8
+    /**
9
+     * Run the database seeds.
10
+     *
11
+     * @return void
12
+     */
13
+    public function run()
14
+    {
15
+        Model::unguard();
16 16
 		
17
-		// $this->call("OthersTableSeeder");
18
-	}
17
+        // $this->call("OthersTableSeeder");
18
+    }
19 19
 
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.