Completed
Push — master ( 424280...3cf00d )
by Scott
04:34 queued 49s
created
updates/1.0/create_products_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function up()
12 12
     {
13
-        Schema::create('bedard_shop_products', function (Blueprint $table) {
13
+        Schema::create('bedard_shop_products', function(Blueprint $table) {
14 14
             $table->engine = 'InnoDB';
15 15
             $table->increments('id');
16 16
             $table->string('name')->default('');
Please login to merge, or discard this patch.
updates/1.0/create_categories_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_categories', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_categories', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->integer('parent_id')->unsigned()->nullable()->index();
Please login to merge, or discard this patch.
updates/1.0/create_category_product_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_category_product', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_category_product', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->integer('category_id')->unsigned()->nullable();
14 14
             $table->integer('product_id')->unsigned()->nullable();
15 15
             $table->boolean('is_inherited')->default(false);
16
-            $table->primary(['category_id', 'product_id']);
16
+            $table->primary([ 'category_id', 'product_id' ]);
17 17
         });
18 18
     }
19 19
 
Please login to merge, or discard this patch.
classes/Controller.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,19 +20,19 @@
 block discarded – undo
20 20
      */
21 21
     public function getLangJson($keys)
22 22
     {
23
-        $lang = [];
23
+        $lang = [ ];
24 24
 
25 25
         foreach ($keys as $key => $value) {
26 26
             $isFiltered = gettype($value) === 'array';
27 27
 
28
-            if (! $isFiltered) {
28
+            if (!$isFiltered) {
29 29
                 $key = $value;
30 30
             }
31 31
 
32 32
             $alias = explode('@', $key);
33
-            $languageString = $alias[count($alias) - 1];
33
+            $languageString = $alias[ count($alias) - 1 ];
34 34
 
35
-            $lang[$alias[0]] = $isFiltered
35
+            $lang[ $alias[ 0 ] ] = $isFiltered
36 36
                 ? array_intersect_key(Lang::get($languageString), array_flip($value))
37 37
                 : Lang::get($languageString);
38 38
         }
Please login to merge, or discard this patch.
Plugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,26 +35,26 @@
 block discarded – undo
35 35
                 'icon'        => 'icon-shopping-cart',
36 36
                 'label'       => 'bedard.shop::lang.plugin.navigation.shop',
37 37
                 'order'       => 500,
38
-                'permissions' => ['bedard.shop.*'],
38
+                'permissions' => [ 'bedard.shop.*' ],
39 39
                 'url'         => Backend::url('bedard/shop/products'),
40 40
                 'sideMenu' => [
41 41
                     'products' => [
42 42
                         'label'         => 'bedard.shop::lang.products.plural',
43 43
                         'icon'          => 'icon-cubes',
44 44
                         'url'           => Backend::url('bedard/shop/products'),
45
-                        'permissions'   => ['bedard.shop.products.*'],
45
+                        'permissions'   => [ 'bedard.shop.products.*' ],
46 46
                     ],
47 47
                     'categories' => [
48 48
                         'label'         => 'bedard.shop::lang.categories.plural',
49 49
                         'icon'          => 'icon-folder-o',
50 50
                         'url'           => Backend::url('bedard/shop/categories'),
51
-                        'permissions'   => ['bedard.shop.categories.*'],
51
+                        'permissions'   => [ 'bedard.shop.categories.*' ],
52 52
                     ],
53 53
                     'discounts' => [
54 54
                         'label'         => 'bedard.shop::lang.discounts.plural',
55 55
                         'icon'          => 'icon-clock-o',
56 56
                         'url'           => Backend::url('bedard/shop/discounts'),
57
-                        'permissions'   => ['bedard.shop.discounts.*'],
57
+                        'permissions'   => [ 'bedard.shop.discounts.*' ],
58 58
                     ],
59 59
                 ],
60 60
             ],
Please login to merge, or discard this patch.
updates/1.0/create_discounts_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_discounts', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_discounts', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->string('name')->default('');
Please login to merge, or discard this patch.
traits/Subqueryable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function scopeJoinSubquery($query, $subquery, $alias, $left, $operator, $right, $join = 'join')
40 40
     {
41 41
         $self = $this->getTable().'.*';
42
-        if (! in_array($self, $query->getQuery()->columns)) {
42
+        if (!in_array($self, $query->getQuery()->columns)) {
43 43
             $query->addSelect($self);
44 44
         }
45 45
 
Please login to merge, or discard this patch.
updates/dev_seeds.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
     protected function seedCategories()
22 22
     {
23
-        $parent1 = Factory::create(new Category, ['name' => 'Parent 1', 'slug' => 'parent-1']);
24
-        $parent2 = Factory::create(new Category, ['name' => 'Parent 2', 'slug' => 'parent-2']);
25
-        Factory::create(new Category, ['name' => 'Child 1', 'slug' => 'child-1', 'parent_id' => $parent1->id]);
26
-        Factory::create(new Category, ['name' => 'Child 2', 'slug' => 'child-2', 'parent_id' => $parent2->id]);
23
+        $parent1 = Factory::create(new Category, [ 'name' => 'Parent 1', 'slug' => 'parent-1' ]);
24
+        $parent2 = Factory::create(new Category, [ 'name' => 'Parent 2', 'slug' => 'parent-2' ]);
25
+        Factory::create(new Category, [ 'name' => 'Child 1', 'slug' => 'child-1', 'parent_id' => $parent1->id ]);
26
+        Factory::create(new Category, [ 'name' => 'Child 2', 'slug' => 'child-2', 'parent_id' => $parent2->id ]);
27 27
     }
28 28
 
29 29
     protected function seedProducts($count)
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
         $categories = Category::count();
32 32
 
33 33
         for ($i = 0; $i < $count; $i++) {
34
-            $product = Factory::create(new Product, ['name' => 'Product '.$i, 'slug' => 'product-'.$i]);
35
-            $product->categories()->sync([rand(1, $categories)]);
34
+            $product = Factory::create(new Product, [ 'name' => 'Product '.$i, 'slug' => 'product-'.$i ]);
35
+            $product->categories()->sync([ rand(1, $categories) ]);
36 36
         }
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
updates/1.0/create_category_discount_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_category_discount', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_category_discount', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->integer('category_id')->unsigned()->nullable();
14 14
             $table->integer('discount_id')->unsigned()->nullable();
15
-            $table->primary(['category_id', 'discount_id']);
15
+            $table->primary([ 'category_id', 'discount_id' ]);
16 16
         });
17 17
     }
18 18
 
Please login to merge, or discard this patch.