Skip to content

Commit

Permalink
Merge pull request #37 from freshbitsweb/analysis-WNRbRE
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
gauravmak authored Feb 15, 2022
2 parents f4af457 + 0ee55e3 commit 1915cfe
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion database/migrations/2017_12_21_120348_create_carts_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
Expand Down
1 change: 1 addition & 0 deletions src/Core/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public function clear()
* @param string Method name
* @param array Arguments
* @return mixed
*
* @throws \BadMethodCallException
*/
public function __call($method, $arguments)
Expand Down
2 changes: 2 additions & 0 deletions src/Core/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public static function createFrom($data, $quantity = 1)
*
* @param Illuminate\Database\Eloquent\Model
* @return void
*
* @throws ItemNameMissing
*/
protected function setName($entity)
Expand All @@ -117,6 +118,7 @@ protected function setName($entity)
*
* @param Illuminate\Database\Eloquent\Model
* @return void
*
* @throws ItemPriceMissing
*/
protected function setPrice($entity)
Expand Down
2 changes: 1 addition & 1 deletion src/Observers/CartObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CartObserver
/**
* Listen to the Cart deleting event.
*
* @param \Freshbitsweb\LaravelCartManager\Models\Cart $cart
* @param \Freshbitsweb\LaravelCartManager\Models\Cart $cart
* @return void
*/
public function deleting(Cart $cart)
Expand Down
1 change: 1 addition & 0 deletions src/Traits/CartItemsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function removeAt($cartItemIndex)
*
* @param int index of the item
* @return void
*
* @throws ItemMissing
*/
protected function existenceCheckFor($cartItemIndex)
Expand Down
5 changes: 2 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ protected function setUp(): void
}

/**
* @param \Illuminate\Foundation\Application $app
*
* @param \Illuminate\Foundation\Application $app
* @return array
*/
protected function getPackageProviders($app)
Expand All @@ -38,7 +37,7 @@ protected function getPackageProviders($app)
/**
* Define environment setup.
*
* @param \Illuminate\Foundation\Application $app
* @param \Illuminate\Foundation\Application $app
* @return void
*/
protected function getEnvironmentSetUp($app)
Expand Down

0 comments on commit 1915cfe

Please sign in to comment.