Completed
Pull Request — master (#22)
by Ryan
02:22
created
src/LaravelPhoneServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function register()
32 32
     {
33 33
         // Make libphonenumber available in the application container.
34
-        $this->app->singleton('libphonenumber', function ($app) {
34
+        $this->app->singleton('libphonenumber', function($app) {
35 35
             return PhoneNumberUtil::getInstance();
36 36
         });
37 37
     }
Please login to merge, or discard this patch.
src/PhoneValidator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
     protected function parseTypes(array $types)
169 169
     {
170 170
         // Transform types to their namespaced class constant.
171
-        array_walk($types, function (&$type) {
171
+        array_walk($types, function(&$type) {
172 172
             $type = constant($this->constructPhoneTypeConstant($type));
173 173
         });
174 174
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
      * When using a country field, we should validate to false if country is empty so no exception
118 118
      * will be thrown.
119 119
      *
120
-     * @param $attribute
120
+     * @param string $attribute
121 121
      * @param $validator
122 122
      * @throws \Propaganistas\LaravelPhone\Exceptions\NoValidCountryFoundException
123 123
      */
Please login to merge, or discard this patch.