x Sorry, these patches are not available anymore due to data migration. Please run a fresh inspection.
Passed
Pull Request — master (#20)
by
unknown
03:33
created
src/Laravel/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     protected function registerRoutes()
52 52
     {
53
-        Route::prefix('easywechat-composer')->namespace('EasyWeChatComposer\Laravel\Http\Controllers')->group(function () {
53
+        Route::prefix('easywechat-composer')->namespace('EasyWeChatComposer\Laravel\Http\Controllers')->group(function() {
54 54
             $this->loadRoutesFrom(__DIR__.'/routes.php');
55 55
         });
56 56
     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $ttl = (version_compare(Application::VERSION, '5.8') === -1) ? 30 : 1800;
109 109
 
110
-        return Cache::remember('easywechat-composer.encryption_key', $ttl, function () {
110
+        return Cache::remember('easywechat-composer.encryption_key', $ttl, function() {
111 111
             throw_unless(file_exists($path = base_path('composer.lock')), RuntimeException::class, 'No encryption key provided.');
112 112
 
113 113
             return md5_file($path);
Please login to merge, or discard this patch.
src/ManifestManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@
 block discarded – undo
85 85
     {
86 86
         $manifest = [];
87 87
 
88
-        $packages = array_filter($packages, function ($package) {
89
-            if(isset($package['type'])){
88
+        $packages = array_filter($packages, function($package) {
89
+            if (isset($package['type'])) {
90 90
                 return $package['type'] === self::PACKAGE_TYPE;
91 91
             }
92 92
         });
Please login to merge, or discard this patch.