Showing 10 of 36 files from the diff.

@@ -78,7 +78,7 @@
Loading
78 78
    {
79 79
        include_once 'Archive/Tar.php';
80 80
        if (!class_exists('Archive_Tar')) {
81 -
            throw new BuildException("You must have installed the PEAR Archive_Tar class in order to use TarTask.");
81 +
            throw new BuildException("You must have installed the pear/archive_tar package use TarTask.");
82 82
        }
83 83
    }
84 84

@@ -55,8 +55,7 @@
Loading
55 55
        @include_once 'VersionControl/Git.php';
56 56
        if (false == class_exists('VersionControl_Git')) {
57 57
            throw new BuildException(
58 -
                "The Git tasks depend on PEAR\'s "
59 -
                . "VersionControl_Git package.",
58 +
                "The Git tasks depend on the pear/versioncontrol_git package being installed.",
60 59
                $this->getLocation()
61 60
            );
62 61
        }

@@ -1494,10 +1494,6 @@
Loading
1494 1494
        return $paths;
1495 1495
    }
1496 1496
1497 -
    // -------------------------------------------------------------------------------------------
1498 -
    // System-wide methods (moved from System class, which had namespace conflicts w/ PEAR System)
1499 -
    // -------------------------------------------------------------------------------------------
1500 -
1501 1497
    /**
1502 1498
     * Set System constants which can be retrieved by calling Phing::getProperty($propName).
1503 1499
     *

@@ -90,7 +90,7 @@
Loading
90 90
91 91
        if (!$handle = @fopen($autoloader, 'r', true)) {
92 92
            throw new BuildException(
93 -
                'The Growl Notify task requires the Net_Growl PEAR package.'
93 +
                'The Growl Notify task requires the pear/net_growl package.'
94 94
            );
95 95
        }
96 96

@@ -47,7 +47,7 @@
Loading
47 47
    {
48 48
        include_once 'Archive/Tar.php';
49 49
        if (!class_exists('Archive_Tar')) {
50 -
            throw new BuildException("You must have installed the PEAR Archive_Tar class in order to use UntarTask.");
50 +
            throw new BuildException("You must have installed the pear/archive_tar package to use UntarTask.");
51 51
        }
52 52
    }
53 53

@@ -72,7 +72,7 @@
Loading
72 72
        include_once 'VersionControl/SVN.php';
73 73
        $this->fetchMode = VERSIONCONTROL_SVN_FETCHMODE_ASSOC;
74 74
        if (!class_exists('VersionControl_SVN')) {
75 -
            throw new Exception("The SVN tasks depend on the VersionControl_SVN package being installed.");
75 +
            throw new Exception("The SVN tasks depend on the pear/versioncontrol_svn package being installed.");
76 76
        }
77 77
    }
78 78
@@ -369,7 +369,7 @@
Loading
369 369
        $tempSwitches = array_merge($this->svnSwitches, $switches);
370 370
371 371
        if ($this->oldVersion) {
372 -
            $svnstack = PEAR_ErrorStack::singleton('VersionControl_SVN');
372 +
            $svnstack = \PEAR_ErrorStack::singleton('VersionControl_SVN');
373 373
374 374
            if ($output = $this->svn->run($tempArgs, $tempSwitches)) {
375 375
                return $output;

@@ -61,10 +61,10 @@
Loading
61 61
        @include_once 'Mail/mime.php';
62 62
63 63
        if (!class_exists('Mail_mime')) {
64 -
            throw new BuildException('Need the PEAR Mail_mime package to send attachments');
64 +
            throw new BuildException('Need the pear/mail and pear/mail_mime packages installed');
65 65
        }
66 66
67 -
        $mime = new Mail_mime(['text_charset' => 'UTF-8']);
67 +
        $mime = new \Mail_mime(['text_charset' => 'UTF-8']);
68 68
        $hdrs = [
69 69
            'From' => $this->from,
70 70
            'Subject' => $this->subject
@@ -84,7 +84,7 @@
Loading
84 84
        $body = $mime->get();
85 85
        $hdrs = $mime->headers($hdrs);
86 86
87 -
        $mail = Mail::factory($this->backend, $this->backendParams);
87 +
        $mail = \Mail::factory($this->backend, $this->backendParams);
88 88
        $mail->send($this->tolist, $hdrs, $body);
89 89
    }
90 90

@@ -40,7 +40,7 @@
Loading
40 40
        parent::__construct();
41 41
42 42
        if (!class_exists('Mail')) {
43 -
            throw new BuildException('Need the PEAR Mail package to send logs');
43 +
            throw new BuildException('Need the pear/mail_mime package installed to send logs');
44 44
        }
45 45
46 46
        $tolist = Phing::getDefinedProperty('phing.log.mail.recipients');

@@ -548,7 +548,11 @@
Loading
548 548
     */
549 549
    private function fixEncoding($strPath)
550 550
    {
551 -
        $codepage = 'CP' . trim(strstr(setlocale(LC_CTYPE, ''), '.'), '.');
551 +
        $charSet = trim(strstr(setlocale(LC_CTYPE, ''), '.'), '.');
552 +
        if ($charSet === 'utf8') {
553 +
            return $strPath;
554 +
        }
555 +
        $codepage = 'CP' . $charSet;
552 556
        if (function_exists('iconv')) {
553 557
            $strPath = iconv('UTF-8', $codepage . '//IGNORE', $strPath);
554 558
        } elseif (function_exists('mb_convert_encoding')) {

@@ -872,17 +872,6 @@
Loading
872 872
        $this->file = $file;
873 873
    }
874 874
875 -
    /**
876 -
     * Init: pull in the PEAR System class
877 -
     *
878 -
     * @access public
879 -
     * @return void
880 -
     */
881 -
    public function init()
882 -
    {
883 -
        @include_once 'vendor/autoload.php';
884 -
    }
885 -
886 875
    /**
887 876
     * Our main execution of the task.
888 877
     *
Files Complexity Coverage
classes/phing 9,125 54.08%
Project Totals (468 files) 9125 54.08%
4779.10
7.3=.3
TRAVIS_OS_NAME=linux
1
ignore:
2
- "docs"
3
- "etc"
4
- "vendor"
5
coverage:
6
  status:
7
    patch: off
8
    project:
9
      default:
10
        threshold: 2
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading