Completed
Push — master ( 770502...b70235 )
by Propa
17:15
created
src/LaravelPhoneServiceProvider.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -6,41 +6,41 @@
 block discarded – undo
6 6
 
7 7
 class LaravelPhoneServiceProvider extends ServiceProvider
8 8
 {
9
-    /**
10
-     * Bootstrap the application events.
11
-     *
12
-     * @return void
13
-     */
14
-    public function boot()
15
-    {
16
-        $extend = static::canUseDependentValidation() ? 'extendDependent' : 'extend';
9
+	/**
10
+	 * Bootstrap the application events.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function boot()
15
+	{
16
+		$extend = static::canUseDependentValidation() ? 'extendDependent' : 'extend';
17 17
 
18
-        $this->app['validator']->{$extend}('phone', 'Propaganistas\LaravelPhone\PhoneValidator@validatePhone');
19
-    }
18
+		$this->app['validator']->{$extend}('phone', 'Propaganistas\LaravelPhone\PhoneValidator@validatePhone');
19
+	}
20 20
 
21
-    /**
22
-     * Register the service provider.
23
-     *
24
-     * @return void
25
-     */
26
-    public function register()
27
-    {
28
-        $this->app->singleton('libphonenumber', function ($app) {
29
-            return PhoneNumberUtil::getInstance();
30
-        });
21
+	/**
22
+	 * Register the service provider.
23
+	 *
24
+	 * @return void
25
+	 */
26
+	public function register()
27
+	{
28
+		$this->app->singleton('libphonenumber', function ($app) {
29
+			return PhoneNumberUtil::getInstance();
30
+		});
31 31
 
32
-        $this->app->alias('libphonenumber', 'libphonenumber\PhoneNumberUtil');
33
-    }
32
+		$this->app->alias('libphonenumber', 'libphonenumber\PhoneNumberUtil');
33
+	}
34 34
 
35
-    /**
36
-     * Determine whether we can register a dependent validator.
37
-     *
38
-     * @return bool
39
-     */
40
-    public static function canUseDependentValidation()
41
-    {
42
-        $validator = new ReflectionClass('\Illuminate\Validation\Factory');
35
+	/**
36
+	 * Determine whether we can register a dependent validator.
37
+	 *
38
+	 * @return bool
39
+	 */
40
+	public static function canUseDependentValidation()
41
+	{
42
+		$validator = new ReflectionClass('\Illuminate\Validation\Factory');
43 43
 
44
-        return $validator->hasMethod('extendDependent');
45
-    }
44
+		return $validator->hasMethod('extendDependent');
45
+	}
46 46
 }
Please login to merge, or discard this patch.