Completed
Push — master ( 272924...bd812e )
by Manu
10:11 queued 06:57
created
database/migrations/2017_05_24_162051_create_brand_type_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('brand_type', function (Blueprint $table) {
16
+        Schema::create('brand_type', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name', 80);
19 19
             $table->string('description', 120);
Please login to merge, or discard this patch.
database/migrations/2017_05_24_161721_create_inventory_object_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('inventory', function (Blueprint $table) {
16
+        Schema::create('inventory', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('public_id');
19 19
             $table->string('name', 80);
Please login to merge, or discard this patch.
src/views/index.blade.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,26 +4,26 @@
 block discarded – undo
4 4
 
5 5
 @section('content')
6 6
 
7
-    <div class="form-group row add">
8
-        <div class="col-md-12">
9
-            <h1>Inventory section 1</h1>
10
-        </div>
7
+    <div class = "form-group row add" >
8
+        <div class = "col-md-12" >
9
+            <h1 > Inventory section 1 < /h1 >
10
+        < / div >
11 11
 
12
-        <div class="col-md-12">
12
+        <div class = "col-md-12" >
13 13
 
14
-        <button type="button" data-toggle="modal" data-target="create-item" class="btn btn-primary"></button>
14
+        <button type = "button" data - toggle = "modal" data - target = "create-item" class = "btn btn-primary" > < / button >
15 15
 
16 16
         Create New Provider
17 17
 
18
-        </div>
18
+        < / div >
19 19
 
20
-    </div>
20
+    < / div >
21 21
 
22
-    <div class="row">
23
-        <div class="">
22
+    <div class = "row" >
23
+        <div class = "" >
24 24
 
25
-        </div>
25
+        < / div >
26 26
 
27
-    </div>
27
+    < / div >
28 28
 
29 29
     @stop
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
src/Providers/InventoryServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,15 +20,15 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        include __DIR__.'/routes.php';
23
+        include __DIR__ . '/routes.php';
24 24
         $this->app->make('Scool\Inventory\InventoryController');
25 25
         if (!defined('SCOOL_INVENTORY_PATH')) {
26
-            define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../'));
26
+            define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../'));
27 27
         }
28 28
         $this->registerNamesServiceProvider();
29 29
         $this->registerStatefulEloquentServiceProvider();
30 30
         $this->bindRepositories();
31
-        $this->app->bind(StatsRepositoryInterface::class, function () {
31
+        $this->app->bind(StatsRepositoryInterface::class, function() {
32 32
             return new CacheableStatsRepository(new StatsRepository());
33 33
         });
34 34
     }
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     {
85 85
         if (!$this->app->routesAreCached()) {
86 86
             $router = app('router');
87
-            $router->group(['namespace' => 'Scool\Inventory\Http\Controllers'], function () {
88
-                require __DIR__.'/../Http/routes.php';
87
+            $router->group([ 'namespace' => 'Scool\Inventory\Http\Controllers' ], function() {
88
+                require __DIR__ . '/../Http/routes.php';
89 89
             });
90 90
         }
91 91
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     private function loadViews()
97 97
     {
98
-        $this->loadViewsFrom(SCOOL_INVENTORY_PATH.'/resources/views', 'inventory');
98
+        $this->loadViewsFrom(SCOOL_INVENTORY_PATH . '/resources/views', 'inventory');
99 99
     }
100 100
 
101 101
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     private function loadMigrations()
105 105
     {
106
-        $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH.'/database/migrations');
106
+        $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH . '/database/migrations');
107 107
     }
108 108
 
109 109
     /**
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             ScoolInventory::configs(), 'scool_inventory'
126 126
         );
127 127
         $this->mergeConfigFrom(
128
-            SCOOL_INVENTORY_PATH.'/config/inventory.php', 'scool_inventory'
128
+            SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory'
129 129
         );
130 130
     }
131 131
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     private function publishTests()
136 136
     {
137 137
         $this->publishes(
138
-            [SCOOL_INVENTORY_PATH.'/tests/InventoryTest.php' => 'tests/InventoryTest.php'],
138
+            [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ],
139 139
             'scool_inventory'
140 140
         );
141 141
     }
Please login to merge, or discard this patch.
database/migrations/2017_06_01_175449_create_migrations_table.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
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('inventories', function (Blueprint $table) {
16
+        Schema::create('inventories', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('public_id');
19 19
             $table->string('name', 80);
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             $table->softDeletes();
34 34
         });
35 35
 
36
-        Schema::table('inventories', function ($table) {
36
+        Schema::table('inventories', function($table) {
37 37
             $table->foreign('material_type_id')->references('id')->on('material_type')->onDelete('cascade');
38 38
             $table->foreign('brand_id')->references('id')->on('brand')->onDelete('cascade');
39 39
             $table->foreign('model_id')->references('id')->on('brand_model')->onDelete('cascade');
Please login to merge, or discard this patch.