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

FriendsOfPHP / PHP-CS-Fixer / 3751
67%
master: 93%

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 03 Sep 2015 08:02PM UTC
Jobs 5
Files 131
Run time 5min
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
3751

push

travis-ci

Dariusz Ruminski
bug #1369 Fix not well-formed XML output (junichi11)

This PR was submitted for the 1.11 branch but it was merged into the 1.10 branch instead (closes #1369).

Discussion
----------

Fix not well-formed XML output

PR for #1363

Remove time and memory tags.

#### 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
<?xml version="1.0" encoding="UTF-8"?>
<files>
  <file id="1" name="/home/junichi11/Some.php">
    <applied_fixers>
      <applied_fixer name="phpdoc_short_description"/>
      <applied_fixer name="blankline_after_open_tag"/>
      <applied_fixer name="psr0"/>
      <applied_fixer name="line_after_namespace"/>
      <applied_fixer name="braces"/>
    </applied_fixers>
    <diff><![CDATA[      --- Original
      +++ New
      @@ @@
       <?php
      +
       namespace Foo\Bar;
      +
       /**
      - * Description of Some
      + * Description of Some.
        *
        * @author junichi11
        */
      -class Some2 {
      +class Some
      +{
       }

      ]]></diff>
  </file>
</files>
<time unit="s">
  <total value="0.092"/>
</time>
<memory value="3.75" unit="MB"/>
```
#### After
```xml
<?xml version="1.0" encoding="UTF-8"?>
<files>
  <file id="1" name="/home/junichi11/NetBeansProjects/issue-254585/Some.php">
    <applied_fixers>
      <applied_fixer name="phpdoc_short_description"/>
      <applied_fixer name="blankline_after_open_tag"/>
      <applied_fixer name="psr0"/>
      <applied_fixer name="line_after_namespace"/>
      <applied_fixer name="braces"/>
    </applied_fixers>
    <diff><![CDATA[      --- Original
      +++ New
      @@ @@
       <?php
      +
       namespace Foo\Bar;
      +
       /**
      - * Description of Some
      + * Description of Some.
        *
        * @author junichi11
        */
      -class Some2 {
      +class Some
      +{
       }

      ]]></diff>
  </file>
</files>
```

Thanks.

Commits
-------

64780b6 Fix not well-formed XML output

4169 of 4839 relevant lines covered (86.15%)

263.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3751.1 03 Sep 2015 07:56PM UTC 0
84.45
Travis Job 3751.1
2 3751.2 03 Sep 2015 07:57PM UTC 0
85.04
Travis Job 3751.2
3 3751.3 03 Sep 2015 07:57PM UTC 0
85.17
Travis Job 3751.3
4 3751.4 03 Sep 2015 08:03PM UTC 0
85.28
Travis Job 3751.4
6 3751.6 03 Sep 2015 08:04PM UTC 0
78.1
Travis Job 3751.6
Source Files on build 3751
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3751
  • e27f97f0 on github
  • Prev Build on 1.10 (#3710)
  • Next Build on 1.10 (#3889)
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