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

FriendsOfPHP / PHP-CS-Fixer / 4976
90%
master: 93%

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 28 Dec 2015 10:08PM UTC
Jobs 7
Files 147
Run time 4min
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
4976

push

travis-ci

keradus
feature #1610 HashToSlashCommentFixer - Add (SpacePossum)

This PR was merged into the 1.12 branch.

Discussion
----------

HashToSlashCommentFixer - Add

Just a little fixer from my collection I think others might want to use once in a while (so on contrib level).
It changes single line comments starting with `#` to starting with `\\`.
PHP handles those the same so changing those should not be a problem.
For example

```php
<h1>This is an <?php #echo 123;?> example</h1>
```
to
```php
<h1>This is an <?php //echo 123;?> example</h1>
```

```php
<?php
    # test
```
to
```php
<?php
    // test
```

Commits
-------

4994b61 Add HashToSlashCommentFixer.

4745 of 5358 relevant lines covered (88.56%)

466.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4976.1 (COMPOSER_FLAGS="--prefer-stable --prefer-lowest") 28 Dec 2015 10:03PM UTC 0
86.26
Travis Job 4976.1
2 4976.2 28 Dec 2015 10:04PM UTC 0
87.34
Travis Job 4976.2
3 4976.3 28 Dec 2015 10:06PM UTC 0
87.46
Travis Job 4976.3
4 4976.4 28 Dec 2015 10:07PM UTC 0
87.66
Travis Job 4976.4
5 4976.5 (SYMFONY_VERSION="~2.8") 28 Dec 2015 10:09PM UTC 0
91.55
Travis Job 4976.5
6 4976.6 (SYMFONY_VERSION="~3.0") 28 Dec 2015 10:09PM UTC 0
91.55
Travis Job 4976.6
7 4976.7 28 Dec 2015 10:10PM UTC 0
82.06
Travis Job 4976.7
Source Files on build 4976
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4976
  • 4b5e0497 on github
  • Prev Build on 1.12 (#4974)
  • Next Build on 1.12 (#5010)
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