Completed
Push — master ( 881d1f...a10ee8 )
by Manu
46:39 queued 33:44
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 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('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.
database/migrations/2016_12_10_232000_create_inventory_objects_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_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.
database/migrations/2016_12_10_232019_create_providers_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('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.
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/Validators/InventoryValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.