• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visavi / rotor / 27918035804

21 Jun 2026 09:28PM UTC coverage: 16.223% (-0.03%) from 16.253%
27918035804

push

github

visavi
Синхронизация симлинков и публикаций в модулях + проверка пути публикации статики

0 of 17 new or added lines in 3 files covered. (0.0%)

3 existing lines in 3 files now uncovered.

970 of 5979 relevant lines covered (16.22%)

2.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/Console/Commands/ModuleSync.php
1
<?php
2

3
namespace App\Console\Commands;
4

5
use App\Models\Module;
6
use Illuminate\Console\Command;
7
use Symfony\Component\Console\Command\Command as SymfonyCommand;
8

9
class ModuleSync extends Command
10
{
11
    /**
12
     * The name and signature of the console command.
13
     */
14
    protected $signature = 'module:sync';
15

16
    /**
17
     * The console command description.
18
     */
19
    protected $description = 'Sync active modules with the core: symlinks, published files and cache';
20

21
    /**
22
     * Execute the console command.
23
     */
24
    public function handle(): int
×
25
    {
26
        // Обновление ядра затирает опубликованные файлы — публикуем заново.
27
        // syncAll изолирует битые модули и сам сбрасывает кэш скана модулей.
NEW
28
        $failed = Module::syncAll();
×
29

NEW
30
        foreach ($failed as $name => $message) {
×
NEW
31
            $this->warn(sprintf('Module "%s" failed: %s', $name, $message));
×
32
        }
33

UNCOV
34
        $this->info('Modules links created and files published.');
×
35

36
        return SymfonyCommand::SUCCESS;
×
37
    }
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc