@@ -17,17 +17,17 @@ discard block |
||
17 | 17 | $this->publishes([ |
18 | 18 | __DIR__.'/../config/mirza.php' => config_path('mirza.php'), |
19 | 19 | ]); |
20 | - Blade::directive('translate', function ($expression) { |
|
20 | + Blade::directive('translate', function($expression) { |
|
21 | 21 | $expression = explode(',', $expression); |
22 | 22 | $text = $expression[0]; |
23 | 23 | $lang = $expression[1]; |
24 | 24 | |
25 | 25 | return "<?php echo Mirza::translate($text, $lang); ?>"; |
26 | 26 | }); |
27 | - Blade::directive('langselect', function () { |
|
27 | + Blade::directive('langselect', function() { |
|
28 | 28 | return '<?php echo Mirza::languages_select(); ?>'; |
29 | 29 | }); |
30 | - Blade::directive('yandex_rights', function ($expression) { |
|
30 | + Blade::directive('yandex_rights', function($expression) { |
|
31 | 31 | $expression = explode(',', $expression); |
32 | 32 | $color = $expression[0]; |
33 | 33 | $fontsize = $expression[1]; |
@@ -47,10 +47,10 @@ discard block |
||
47 | 47 | __DIR__.'/../config/mirza.php', 'mirza' |
48 | 48 | ); |
49 | 49 | |
50 | - \App::singleton('MirzaClient', function () { |
|
50 | + \App::singleton('MirzaClient', function() { |
|
51 | 51 | return new MirzaClient(config('mirza.secret')); |
52 | 52 | }); |
53 | - \App::bind('Mirza', function () { |
|
53 | + \App::bind('Mirza', function() { |
|
54 | 54 | $client = resolve('MirzaClient'); |
55 | 55 | |
56 | 56 | return new Mirza($client); |