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

piwik / component-ini / 37
82%

Build:
DEFAULT BRANCH: master
Ran 18 Jan 2017 05:01PM UTC
Jobs 1
Files 4
Run time 0s
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
37

Pull #5

travis-ci

web-flow
Also propagate the comments

Adding the possibility to also propagate the comments when writing the ini file. Works as follows:

$ini = 'piwik.ini';
$reader = new \Piwik\Ini\IniReader();
$config = $reader->readFile($ini);
$comments = $reader->readComments($ini);
$writer = new \Piwik\Ini\IniWriter();
$writer->writeToFile('piwik-new.ini', $config, '', $comments);

Things that do not work:

1 pre-section comments disappear:
  ; section comment
  [MySection]
  ; option comment
  myOption = 1

becomes
  [MySection]
  ; option comment
  myOption = 1

2 Individual array comments disappear:
  [MySection]
  ; comment a
  ar[] = "a"
  ; comment b
  ar[] = "b"
  ; comment c
  ar[] = "c"

becomes
  [MySection]
  ; comment a
  ar[] = "a"
  ar[] = "b"
  ar[] = "c"
Pull Request #5: Also propagate the comments

147 of 208 relevant lines covered (70.67%)

4.44 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
27
100.0
src/IniWriter.php
Jobs
ID Job ID Ran Files Coverage
4 37.4 18 Jan 2017 05:01PM UTC 0
70.67
Travis Job 37.4
Source Files on build 37
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #37
  • Pull Request #5
  • PR Base - master (#35)
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