Completed
Push — master ( edc778...881d1f )
by Manu
22:32 queued 08:22
created
src/Providers/InventoryServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     public function register()
17 17
     {
18 18
         if (!defined('SCOOL_INVENTORY_PATH')) {
19
-            define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../'));
19
+            define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../'));
20 20
         }
21 21
         $this->app->register(NamesServiceProvider::class);
22 22
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     private function loadMigrations()
41 41
     {
42
-        $this->loadMigrationsFrom(SCOOL_CURRICULUM_PATH.'/database/migrations');
42
+        $this->loadMigrationsFrom(SCOOL_CURRICULUM_PATH . '/database/migrations');
43 43
     }
44 44
 
45 45
     /**
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
             ScoolCurriculum::configs(), 'scool_curriculum'
62 62
         );
63 63
         $this->mergeConfigFrom(
64
-            SCOOL_CURRICULUM_PATH.'/config/curriculum.php', 'scool_curriculum'
64
+            SCOOL_CURRICULUM_PATH . '/config/curriculum.php', 'scool_curriculum'
65 65
         );
66 66
     }
67 67
 
68 68
     private function publishTests()
69 69
     {
70 70
         $this->publishes(
71
-            [SCOOL_CURRICULUM_PATH.'/tests/CurriculumTest.php' => 'tests/CurriculumTest.php'],
71
+            [ SCOOL_CURRICULUM_PATH . '/tests/CurriculumTest.php' => 'tests/CurriculumTest.php' ],
72 72
             'scool_curriculum'
73 73
         );
74 74
     }
Please login to merge, or discard this patch.
database/factories/ProviderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @param \Faker\Generator $faker
16 16
  * @return array
17 17
  */
18
-    Inventory::class, function (Faker\Generator $faker) {
18
+    Inventory::class, function(Faker\Generator $faker) {
19 19
     return [
20 20
         'name' => $faker->word
21 21
 
Please login to merge, or discard this patch.
database/factories/InventoryObjectFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 */
12 12
 /** @var \Illuminate\Database\Eloquent\Factory $factory */
13 13
 use Scool\Inventory\Models\Inventory;
14
-$factory->define(Inventory::class, function (Faker\Generator $faker) {
14
+$factory->define(Inventory::class, function(Faker\Generator $faker) {
15 15
     return [
16 16
         'id' => $faker->randomDigit,
17 17
         'id_public' => $faker->randomDigit,
Please login to merge, or discard this patch.
database/migrations/2016_12_10_232027_create_brands_table.php 2 patches
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('brands', function (Blueprint $table) {
16
+        Schema::create('brands', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->timestamps();
19 19
         });
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateBrandsTable extends Migration
8 8
 {
Please login to merge, or discard this patch.
database/migrations/2016_12_10_232000_create_inventory_objects_table.php 2 patches
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_objects', function (Blueprint $table) {
16
+        Schema::create('inventory_objects', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->timestamps();
19 19
         });
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateInventoryObjectsTable extends Migration
8 8
 {
Please login to merge, or discard this patch.
database/migrations/2016_12_10_232019_create_providers_table.php 2 patches
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('providers', function (Blueprint $table) {
16
+        Schema::create('providers', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->timestamps();
19 19
         });
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class CreateProvidersTable extends Migration
8 8
 {
Please login to merge, or discard this patch.
src/Http/Controllers/StudiesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             if ($request->wantsJson()) {
62 62
                 return response()->json($response);
63 63
             }
64
-            return redirect()->back()->with('message', $response['message']);
64
+            return redirect()->back()->with('message', $response[ 'message' ]);
65 65
         } catch (ValidatorException $e) {
66 66
             if ($request->wantsJson()) {
67 67
                 return response()->json([
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             if ($request->wantsJson()) {
122 122
                 return response()->json($response);
123 123
             }
124
-            return redirect()->back()->with('message', $response['message']);
124
+            return redirect()->back()->with('message', $response[ 'message' ]);
125 125
         } catch (ValidatorException $e) {
126 126
             if ($request->wantsJson()) {
127 127
                 return response()->json([
Please login to merge, or discard this patch.
database/factories/BrandFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 */
12 12
 /** @var \Illuminate\Database\Eloquent\Factory $factory */
13 13
 use Scool\Inventory\Models\Inventory;
14
-$factory->define(Inventory::class, function (Faker\Generator $faker) {
14
+$factory->define(Inventory::class, function(Faker\Generator $faker) {
15 15
     return [
16 16
         'id' => $faker->randomDigit,
17 17
         'id_public' => $faker->randomDigit,
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2
-Route::group(['middleware' => 'auth'], function() {
2
+Route::group([ 'middleware' => 'auth' ], function() {
3 3
     Route::resource('inventory', 'InventoryController');
4 4
 });
5 5
\ No newline at end of file
Please login to merge, or discard this patch.