| @@ -16,7 +16,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | } | 
| @@ -15,7 +15,7 @@ | ||
| 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 | |
| @@ -11,7 +11,7 @@ | ||
| 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, | 
| @@ -13,7 +13,7 @@ | ||
| 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 | }); | 
| @@ -13,7 +13,7 @@ | ||
| 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 | }); | 
| @@ -13,7 +13,7 @@ | ||
| 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 | }); | 
| @@ -61,7 +61,7 @@ discard block | ||
| 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 | ||
| 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([ | 
| @@ -11,7 +11,7 @@ | ||
| 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, | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | class InventoryValidator extends LaravelValidator | 
| 9 | 9 |  { | 
| 10 | 10 | protected $rules = [ | 
| 11 | - ValidatorInterface::RULE_CREATE => [], | |
| 12 | - ValidatorInterface::RULE_UPDATE => [], | |
| 11 | + ValidatorInterface::RULE_CREATE => [ ], | |
| 12 | + ValidatorInterface::RULE_UPDATE => [ ], | |
| 13 | 13 | ]; | 
| 14 | 14 | } |