Completed
Push — master ( 549acb...017947 )
by frey
11s
created
src/Foundation/ServiceProviders/AgentServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function register(Container $pimple)
23 23
     {
24
-        $pimple['agent'] = function ($pimple) {
24
+        $pimple['agent'] = function($pimple) {
25 25
             return new Agent($pimple['access_token']);
26 26
         };
27 27
     }
Please login to merge, or discard this patch.
src/Foundation/ServiceProviders/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function register(Container $pimple)
23 23
     {
24
-        $pimple['broadcast'] = function ($pimple) {
24
+        $pimple['broadcast'] = function($pimple) {
25 25
             return new Broadcast($pimple['access_token']);
26 26
         };
27 27
     }
Please login to merge, or discard this patch.
src/Foundation/ServiceProviders/ServerServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function register(Container $pimple)
24 24
     {
25
-        $pimple['encryptor'] = function ($pimple) {
25
+        $pimple['encryptor'] = function($pimple) {
26 26
             return new Encryptor(
27 27
                 $pimple['config']['corp_id'],
28 28
                 $pimple['config']['token'],
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             );
31 31
         };
32 32
 
33
-        $pimple['server'] = function ($pimple) {
33
+        $pimple['server'] = function($pimple) {
34 34
             $server = new Guard($pimple['config']['token']);
35 35
 
36 36
             $server->debug($pimple['config']['debug']);
Please login to merge, or discard this patch.
src/Foundation/ServiceProviders/SoterServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function register(Container $pimple)
23 23
     {
24
-        $pimple['soter'] = function ($pimple) {
24
+        $pimple['soter'] = function($pimple) {
25 25
             return new Soter($pimple['access_token']);
26 26
         };
27 27
     }
Please login to merge, or discard this patch.
src/Foundation/ServiceProviders/MaterialServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
      */
23 23
     public function register(Container $pimple)
24 24
     {
25
-        $pimple['material'] = function ($pimple) {
25
+        $pimple['material'] = function($pimple) {
26 26
             return new Material($pimple['access_token']);
27 27
         };
28 28
 
29
-        $temporary = function ($pimple) {
29
+        $temporary = function($pimple) {
30 30
             return new Temporary($pimple['access_token']);
31 31
         };
32 32
 
Please login to merge, or discard this patch.
src/Foundation/ServiceProviders/CardServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function register(Container $pimple)
23 23
     {
24
-        $pimple['card'] = function ($pimple) {
24
+        $pimple['card'] = function($pimple) {
25 25
             $card = new Card($pimple['access_token']);
26 26
             $card->setCache($pimple['cache']);
27 27
 
Please login to merge, or discard this patch.
src/Foundation/ServiceProviders/JsServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@
 block discarded – undo
22 22
      */
23 23
     public function register(Container $pimple)
24 24
     {
25
-        $pimple['js'] = function ($pimple) {
25
+        $pimple['js'] = function($pimple) {
26 26
             $js = new Js($pimple['access_token']);
27 27
             $js->setCache($pimple['cache']);
28 28
 
29 29
             return $js;
30 30
         };
31 31
 
32
-        $contact = function ($pimple) {
32
+        $contact = function($pimple) {
33 33
             $js = new Contact($pimple['access_token']);
34 34
             $js->setCache($pimple['cache']);
35 35
 
Please login to merge, or discard this patch.
src/Foundation/ServiceProviders/PaymentServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function register(Container $pimple)
27 27
     {
28
-        $pimple['merchant'] = function ($pimple) {
28
+        $pimple['merchant'] = function($pimple) {
29 29
             $config = array_merge(
30 30
                 ['app_id' => $pimple['config']['app_id']],
31 31
                 $pimple['config']->get('payment', [])
@@ -34,19 +34,19 @@  discard block
 block discarded – undo
34 34
             return new Merchant($config);
35 35
         };
36 36
 
37
-        $pimple['payment'] = function ($pimple) {
37
+        $pimple['payment'] = function($pimple) {
38 38
             return new Payment($pimple['merchant']);
39 39
         };
40 40
 
41
-        $pimple['lucky_money'] = function ($pimple) {
41
+        $pimple['lucky_money'] = function($pimple) {
42 42
             return new LuckyMoney($pimple['merchant']);
43 43
         };
44 44
 
45
-        $pimple['merchant_pay'] = function ($pimple) {
45
+        $pimple['merchant_pay'] = function($pimple) {
46 46
             return new MerchantPay($pimple['merchant']);
47 47
         };
48 48
 
49
-        $pimple['cash_coupon'] = function ($pimple) {
49
+        $pimple['cash_coupon'] = function($pimple) {
50 50
             return new CashCoupon($pimple['merchant']);
51 51
         };
52 52
     }
Please login to merge, or discard this patch.
src/Foundation/Application.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         parent::__construct();
78 78
 
79
-        $this['config'] = function () use ($config) {
79
+        $this['config'] = function() use ($config) {
80 80
             return new Config($config);
81 81
         };
82 82
 
@@ -210,19 +210,19 @@  discard block
 block discarded – undo
210 210
      */
211 211
     private function registerBase()
212 212
     {
213
-        $this['request'] = function () {
213
+        $this['request'] = function() {
214 214
             return Request::createFromGlobals();
215 215
         };
216 216
 
217 217
         if (!empty($this['config']['cache']) && $this['config']['cache'] instanceof CacheInterface) {
218 218
             $this['cache'] = $this['config']['cache'];
219 219
         } else {
220
-            $this['cache'] = function () {
220
+            $this['cache'] = function() {
221 221
                 return new FilesystemCache(sys_get_temp_dir());
222 222
             };
223 223
         }
224 224
 
225
-        $this['access_token'] = function () {
225
+        $this['access_token'] = function() {
226 226
             return new AccessToken(
227 227
                 $this['config']['corp_id'],
228 228
                 $this['config']['secret'],
Please login to merge, or discard this patch.