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

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

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 11 Sep 2015 08:50PM UTC
Files 143
Run time 30s
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

11 Sep 2015 08:44PM UTC coverage: 89.905% (+0.2%) from 89.691%
848.4

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

4622 of 5141 relevant lines covered (89.9%)

102.07 hits per line

Source Files on job 848.4
  • Tree
  • List 0
  • Changed 100
  • Source Changed 7
  • Coverage Changed 100
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 848
  • Travis Job 848.4
  • 43657f29 on github
  • Prev Job for on master (#825.4)
  • Next Job for on master (#875.4)
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