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

keradus / PHP-CS-Fixer / 848
94%
1.11: 82%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 11 Sep 2015 08:44PM UTC
Jobs 5
Files 143
Run time 6min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
848

push

travis-ci

Dariusz Ruminski
minor #1392 Add report to XML report as the root node (junichi11)

This PR was merged into the 2.0-dev branch.

Discussion
----------

Add report to XML report as the root node

Continuation of #1376

Add `report` as the root node. Then, use it instead of `files`.

#### Command
`php-cs-fixer fix --no-ansi --verbose --dry-run --diff --format=xml --no-interaction /home/junichi11/Some.php`

#### PHP File
Some.php
```php
<?php
namespace Foo\Bar;
/**
 * Description of Some
 *
 * @author junichi11
 */
class Some2 {
}

```

#### Before
```xml
<files>
  <file id="1" name="/home/junichi11/Some.php">
    <applied_fixers>
      <applied_fixer name="line_after_namespace"/>
      <applied_fixer name="braces"/>
    </applied_fixers>
    <diff><![CDATA[      --- Original
      +++ New
      @@ @@
       <?php
       namespace Foo\Bar;
      +
       /**
        * Description of Some
        *
        * @author junichi11
        */
      -class Some2 {
      +class Some2
      +{
       }

      ]]></diff>
  </file>
  <time unit="s">
    <total value="0.062"/>
  </time>
  <memory value="5.5" unit="MB"/>
</files>
```

#### After
```xml
<report>
  <files>
    <file id="1" name="/home/junichi11/Some.php">
      <applied_fixers>
        <applied_fixer name="line_after_namespace"/>
        <applied_fixer name="braces"/>
      </applied_fixers>
      <diff><![CDATA[      --- Original
      +++ New
      @@ @@
       <?php
       namespace Foo\Bar;
      +
       /**
        * Description of Some
        *
        * @author junichi11
        */
      -class Some2 {
      +class Some2
      +{
       }

      ]]></diff>
    </file>
  </files>
  <time unit="s">
    <total value="0.047"/>
  </time>
  <memory value="5.5" unit="MB"/>
</report>
```

Commits
-------

4054083 Add report to XML report as the root node

4901 of 5417 relevant lines covered (90.47%)

391.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 848.1 11 Sep 2015 08:37PM UTC 0
89.13
Travis Job 848.1
2 848.2 11 Sep 2015 08:37PM UTC 0
89.59
Travis Job 848.2
3 848.3 11 Sep 2015 08:38PM UTC 0
89.71
Travis Job 848.3
4 848.4 11 Sep 2015 08:39PM UTC 0
89.9
Travis Job 848.4
6 848.6 11 Sep 2015 08:42PM UTC 0
83.53
Travis Job 848.6
Source Files on build 848
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #848
  • 43657f29 on github
  • Prev Build on master (#825)
  • Next Build on master (#875)
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