This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$baselineFile = 'phpstan-baseline.neon'; | |
$branch = 'origin/main'; | |
echo "date;count\n"; | |
foreach (explode("\n", `git log {$branch} --pretty="format:%H;%cI" --date-order --reverse {$baselineFile}`) as $line) { | |
[$hash, $date] = explode(';', $line); | |
preg_match_all('`^\s+count:\s+(\d+)`m', `git show $hash:{$baselineFile}`, $matches); | |
echo $date, ';', array_sum(array_map('intval', $matches[1])), "\n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Course; | |
use PHPCR\NodeInterface; | |
use PHPCR\SessionInterface; | |
use PHPCR\Util\UUIDHelper; | |
use Sulu\Bundle\ArticleBundle\Document\Behavior\DateShardingBehavior; | |
use Sulu\Component\DocumentManager\Event\FlushEvent; | |
use Sulu\Component\DocumentManager\Event\PersistEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Imagine\Image\Point; | |
use Imagine\Image\ImageInterface; | |
use Imagine\Filter\FilterInterface; | |
use Imagine\Filter\Advanced\OnPixelBased; | |
use Imagine\Image\Palette\Color\RGB; | |
/** | |
* Duotone |