sebastianbergmann/php-code-coverage — pull request #299 by henriquemoody (2014-12-31 16:54:01+00:00)
Title: Update license and copyright in all files

Removes the date from `@copyright` annotations.

```bash
egrep '\@copyright +2009-2014,? Sebastian Bergmann' -Rn . |
cut -d : -f 1 |
sort -u |
xargs sed -Ei 's/\@copyright( +)2009-2014,? Sebastian Bergmann/@copyright\1Sebastian Bergmann/g'
```

Replaces headers:
```php

*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
EOF;

foreach ($regex as $file) {
$filename = $file[0];
$pattern = '@<\?php\n/\*+\n \* PHP_CodeCoverage.+\*/\n\n@s';
$oldContent = file_get_contents($filename);
$newContent = preg_replace($pattern, $header.PHP_EOL.PHP_EOL, $oldContent);
file_put_contents($filename, $newContent);
}
```
This code above, written in PHP, is not 100% reliable, that's why I had to check every file.