Skip to content

Commit 1915cfe

Browse files
authored
Merge pull request #37 from freshbitsweb/analysis-WNRbRE
Apply fixes from StyleCI
2 parents f4af457 + 0ee55e3 commit 1915cfe

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

database/migrations/2017_12_21_120348_create_carts_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class extends Migration {
7+
return new class extends Migration
8+
{
89
/**
910
* Run the migrations.
1011
*

database/migrations/2017_12_21_120815_create_cart_items_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class extends Migration {
7+
return new class extends Migration
8+
{
89
/**
910
* Run the migrations.
1011
*

src/Core/Cart.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ public function clear()
241241
* @param string Method name
242242
* @param array Arguments
243243
* @return mixed
244+
*
244245
* @throws \BadMethodCallException
245246
*/
246247
public function __call($method, $arguments)

src/Core/CartItem.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public static function createFrom($data, $quantity = 1)
9393
*
9494
* @param Illuminate\Database\Eloquent\Model
9595
* @return void
96+
*
9697
* @throws ItemNameMissing
9798
*/
9899
protected function setName($entity)
@@ -117,6 +118,7 @@ protected function setName($entity)
117118
*
118119
* @param Illuminate\Database\Eloquent\Model
119120
* @return void
121+
*
120122
* @throws ItemPriceMissing
121123
*/
122124
protected function setPrice($entity)

src/Observers/CartObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CartObserver
99
/**
1010
* Listen to the Cart deleting event.
1111
*
12-
* @param \Freshbitsweb\LaravelCartManager\Models\Cart $cart
12+
* @param \Freshbitsweb\LaravelCartManager\Models\Cart $cart
1313
* @return void
1414
*/
1515
public function deleting(Cart $cart)

src/Traits/CartItemsManager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public function removeAt($cartItemIndex)
8484
*
8585
* @param int index of the item
8686
* @return void
87+
*
8788
* @throws ItemMissing
8889
*/
8990
protected function existenceCheckFor($cartItemIndex)

tests/TestCase.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ protected function setUp(): void
2626
}
2727

2828
/**
29-
* @param \Illuminate\Foundation\Application $app
30-
*
29+
* @param \Illuminate\Foundation\Application $app
3130
* @return array
3231
*/
3332
protected function getPackageProviders($app)
@@ -38,7 +37,7 @@ protected function getPackageProviders($app)
3837
/**
3938
* Define environment setup.
4039
*
41-
* @param \Illuminate\Foundation\Application $app
40+
* @param \Illuminate\Foundation\Application $app
4241
* @return void
4342
*/
4443
protected function getEnvironmentSetUp($app)

0 commit comments

Comments
 (0)