Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI (#4)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
faustbrian committed Dec 2, 2016
1 parent 1a691b0 commit 677be48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function boot()
*/
public function geocode()
{
if (! empty($this->postcode)) {
if (!empty($this->postcode)) {
$string[] = $this->street;
$string[] = sprintf('%s, %s %s', $this->city, $this->state, $this->postcode);
$string[] = $this->country_name;
Expand Down
6 changes: 3 additions & 3 deletions src/HasAddresses.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function addresses()
*/
public function primaryAddress($address = null)
{
if (! empty($address)) {
if (!empty($address)) {
$address->update([
'is_primary' => 1, 'is_billing' => 0, 'is_shipping' => 0,
]);
Expand All @@ -46,7 +46,7 @@ public function primaryAddress($address = null)
*/
public function billingAddress($address = null)
{
if (! empty($address)) {
if (!empty($address)) {
$address->update([
'is_primary' => 0, 'is_billing' => 1, 'is_shipping' => 0,
]);
Expand All @@ -62,7 +62,7 @@ public function billingAddress($address = null)
*/
public function shippingAddress($address = null)
{
if (! empty($address)) {
if (!empty($address)) {
$address->update([
'is_primary' => 0, 'is_billing' => 0, 'is_shipping' => 1,
]);
Expand Down

0 comments on commit 677be48

Please sign in to comment.