@@ -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 | }); |
@@ -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 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** @var \Illuminate\Database\Eloquent\Factory $factory */ |
13 | 13 | use Scool\Inventory\Models\Inventory; |
14 | 14 | |
15 | -$factory->define(Inventory::class, function (Faker\Generator $faker) { |
|
15 | +$factory->define(Inventory::class, function(Faker\Generator $faker) { |
|
16 | 16 | return [ |
17 | 17 | 'name' => $faker->word, |
18 | 18 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** @var \Illuminate\Database\Eloquent\Factory $factory */ |
13 | 13 | use Scool\Inventory\Models\Inventory; |
14 | 14 | |
15 | -$factory->define(Inventory::class, function (Faker\Generator $faker) { |
|
15 | +$factory->define(Inventory::class, function(Faker\Generator $faker) { |
|
16 | 16 | return [ |
17 | 17 | 'id' => $faker->randomDigit, |
18 | 18 | 'id_public' => $faker->randomDigit, |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @param \Faker\Generator $faker |
17 | 17 | * @return array |
18 | 18 | */ |
19 | - Inventory::class, function (Faker\Generator $faker) { |
|
19 | + Inventory::class, function(Faker\Generator $faker) { |
|
20 | 20 | return [ |
21 | 21 | 'name' => $faker->word, |
22 | 22 |
@@ -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->string('name'); |
18 | 18 | $table->string('acacha/names'); |
19 | 19 | $table->increments('id'); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | return response()->json($response); |
68 | 68 | } |
69 | 69 | |
70 | - return redirect()->back()->with('message', $response['message']); |
|
70 | + return redirect()->back()->with('message', $response[ 'message' ]); |
|
71 | 71 | } catch (ValidatorException $e) { |
72 | 72 | if ($request->wantsJson()) { |
73 | 73 | return response()->json([ |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return response()->json($response); |
135 | 135 | } |
136 | 136 | |
137 | - return redirect()->back()->with('message', $response['message']); |
|
137 | + return redirect()->back()->with('message', $response[ 'message' ]); |
|
138 | 138 | } catch (ValidatorException $e) { |
139 | 139 | if ($request->wantsJson()) { |
140 | 140 | return response()->json([ |
@@ -15,11 +15,11 @@ |
||
15 | 15 | */ |
16 | 16 | class Study extends Model implements Transformable |
17 | 17 | { |
18 | - use HasLaw,HasDepartments,HasCourses,Nameable,TransformableTrait; |
|
18 | + use HasLaw, HasDepartments, HasCourses, Nameable, TransformableTrait; |
|
19 | 19 | /** |
20 | 20 | * The attributes that are mass assignable. |
21 | 21 | * |
22 | 22 | * @var array |
23 | 23 | */ |
24 | - protected $fillable = ['name']; |
|
24 | + protected $fillable = [ 'name' ]; |
|
25 | 25 | } |