Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update arrange namespaces #211

Merged
merged 1 commit into from
Jan 9, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Exceptions/InvalidParameterException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Propaganistas\LaravelPhone\Exceptions;

use Illuminate\Support\Collection;

class InvalidParameterException extends \Exception
{
/**
Expand Down
3 changes: 1 addition & 2 deletions src/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
use libphonenumber\PhoneNumberFormat;
use libphonenumber\PhoneNumberType;
use libphonenumber\PhoneNumberUtil;
use Propaganistas\LaravelPhone\Exceptions\InvalidParameterException;
use Propaganistas\LaravelPhone\Exceptions\NumberFormatException;
use Propaganistas\LaravelPhone\Exceptions\CountryCodeException;
use Propaganistas\LaravelPhone\Exceptions\NumberFormatException;
use Propaganistas\LaravelPhone\Exceptions\NumberParseException;
use Propaganistas\LaravelPhone\Traits\ParsesCountries;
use Propaganistas\LaravelPhone\Traits\ParsesFormats;
Expand Down
3 changes: 1 addition & 2 deletions src/Rules/Phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
namespace Propaganistas\LaravelPhone\Rules;

use libphonenumber\PhoneNumberType;
use Propaganistas\LaravelPhone\Traits\ParsesCountries;
use Propaganistas\LaravelPhone\Traits\ParsesTypes;

class Phone
{
use ParsesTypes;

/**
* The provided phone countries.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Validation/Phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use libphonenumber\NumberParseException;
use libphonenumber\PhoneNumberUtil;
use Propaganistas\LaravelPhone\Exceptions\InvalidParameterException;
use libphonenumber\NumberParseException;
use Propaganistas\LaravelPhone\PhoneNumber;
use Propaganistas\LaravelPhone\Traits\ParsesCountries;
use Propaganistas\LaravelPhone\Traits\ParsesTypes;
Expand Down Expand Up @@ -122,7 +122,7 @@ protected function extractParameters($attribute, array $parameters, array $data)
$parameters[] = $inputCountry;
}
}

$parameters = array_map('strtolower', $parameters);

return [
Expand Down