Completed
Push — master ( 599e4f...51ef6c )
by Volodymyr
01:22
created
config/anticaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'key'=>env('ANTICAPTCHA_API_KEY','')
4
+    'key'=>env('ANTICAPTCHA_API_KEY', '')
5 5
 ];
6 6
\ No newline at end of file
Please login to merge, or discard this patch.
src/AnticaptchaServiceProvider.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@  discard block
 block discarded – undo
16 16
     public $defer = true;
17 17
 
18 18
     public function boot() {
19
-        $this->publishes( [
20
-            __DIR__ . '/../config/anticaptcha.php' => config_path( 'anticaptcha.php' ),
21
-        ], 'anticaptcha' );
19
+        $this->publishes([
20
+            __DIR__.'/../config/anticaptcha.php' => config_path('anticaptcha.php'),
21
+        ], 'anticaptcha');
22 22
 
23 23
         $this->mergeConfigFrom(
24
-            __DIR__ . '/../config/anticaptcha.php',
24
+            __DIR__.'/../config/anticaptcha.php',
25 25
             'anticaptcha'
26 26
         );
27 27
 
@@ -29,58 +29,58 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function register() {
31 31
 
32
-        $this->app->singleton( NoCaptchaProxyless::class, function ( $app ) {
32
+        $this->app->singleton(NoCaptchaProxyless::class, function($app) {
33 33
             $instance = new NoCaptchaProxyless();
34
-            $instance->setKey( config( 'anticaptcha.key' ) );
34
+            $instance->setKey(config('anticaptcha.key'));
35 35
 
36 36
             return $instance;
37 37
         } );
38 38
 
39
-        $this->app->singleton( NoCaptcha::class, function ( $app ) {
39
+        $this->app->singleton(NoCaptcha::class, function($app) {
40 40
             $instance = new NoCaptcha();
41
-            $instance->setKey( config( 'anticaptcha.key' ) );
41
+            $instance->setKey(config('anticaptcha.key'));
42 42
 
43 43
             return $instance;
44 44
         } );
45 45
 
46
-        $this->app->singleton( ImageToText::class, function ( $app ) {
46
+        $this->app->singleton(ImageToText::class, function($app) {
47 47
             $instance = new ImageToText();
48
-            $instance->setKey( config( 'anticaptcha.key' ) );
48
+            $instance->setKey(config('anticaptcha.key'));
49 49
 
50 50
             return $instance;
51 51
         } );
52 52
 
53
-        $this->app->singleton( GeeTestProxyless::class, function ( $app ) {
53
+        $this->app->singleton(GeeTestProxyless::class, function($app) {
54 54
             $instance = new GeeTestProxyless();
55
-            $instance->setKey( config( 'anticaptcha.key' ) );
55
+            $instance->setKey(config('anticaptcha.key'));
56 56
 
57 57
             return $instance;
58 58
         } );
59 59
 
60
-        $this->app->singleton( GeeTest::class, function ( $app ) {
60
+        $this->app->singleton(GeeTest::class, function($app) {
61 61
             $instance = new GeeTest();
62
-            $instance->setKey( config( 'anticaptcha.key' ) );
62
+            $instance->setKey(config('anticaptcha.key'));
63 63
 
64 64
             return $instance;
65 65
         } );
66 66
 
67
-        $this->app->singleton( FunCaptchaProxyless::class, function ( $app ) {
67
+        $this->app->singleton(FunCaptchaProxyless::class, function($app) {
68 68
             $instance = new FunCaptchaProxyless();
69
-            $instance->setKey( config( 'anticaptcha.key' ) );
69
+            $instance->setKey(config('anticaptcha.key'));
70 70
 
71 71
             return $instance;
72 72
         } );
73 73
 
74
-        $this->app->singleton( FunCaptcha::class, function ( $app ) {
74
+        $this->app->singleton(FunCaptcha::class, function($app) {
75 75
             $instance = new FunCaptcha();
76
-            $instance->setKey( config( 'anticaptcha.key' ) );
76
+            $instance->setKey(config('anticaptcha.key'));
77 77
 
78 78
             return $instance;
79 79
         } );
80 80
 
81
-        $this->app->singleton( CustomCaptcha::class, function ( $app ) {
81
+        $this->app->singleton(CustomCaptcha::class, function($app) {
82 82
             $instance = new CustomCaptcha();
83
-            $instance->setKey( config( 'anticaptcha.key' ) );
83
+            $instance->setKey(config('anticaptcha.key'));
84 84
 
85 85
             return $instance;
86 86
         } );
Please login to merge, or discard this patch.