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

cweagans / composer-patches / 4116908618

pending completion
4116908618

push

github

GitHub
Merge pull request #447 from cweagans/2.x-wip

457 of 457 new or added lines in 28 files covered. (100.0%)

456 of 570 relevant lines covered (80.0%)

3.29 hits per line

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

0.0
/src/Command/PatchesCommandBase.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace cweagans\Composer\Command;
6

7
use Composer\Command\BaseCommand;
8
use cweagans\Composer\Plugin\Patches;
9

10
abstract class PatchesCommandBase extends BaseCommand
11
{
12
    /**
13
     * Get the Patches plugin
14
     *
15
     * @return Patches|null
16
     */
17
    protected function getPatchesPluginInstance(): ?Patches
18
    {
19
        foreach ($this->requireComposer()->getPluginManager()->getPlugins() as $plugin) {
×
20
            if ($plugin instanceof Patches) {
×
21
                return $plugin;
×
22
            }
23
        }
24

25
        return null;
×
26
    }
27
}
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