Skip to content

Commit

Permalink
CI re-enable php-cs-fixer (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Sep 10, 2024
1 parent adebff4 commit 6bfc348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
- name: "Install Composer dependencies"
uses: "ramsey/composer-install@v2"

# - name: "Check coding style"
# run: composer cs
- name: "Check coding style"
run: composer cs

test:
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions src/SimplePie.php
Original file line number Diff line number Diff line change
Expand Up @@ -1653,12 +1653,15 @@ private function clean_hash(string $rss): string
$ctx = hash_init('sha1');
while ($stream_data = fread($stream, 1048576)) {
hash_update(
$ctx, preg_replace(
$ctx,
preg_replace(
[
'#<(lastBuildDate|pubDate|updated|feedDate|dc:date|slash:comments)>[^<]+</\\1>#',
'#<(media:starRating|media:statistics) [^/<>]+/>#',
'#<!--.+?-->#s',
], '', $stream_data
],
'',
$stream_data
)
);
}
Expand Down

0 comments on commit 6bfc348

Please sign in to comment.