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

Apply fixes from StyleCI #4

Merged
merged 1 commit into from Dec 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Address.php
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
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