mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-02 22:47:50 -05:00
* Improve code style and PSR-12 compliance - refactored code formatting to adhere to PSR-12 guidelines - standardized coding conventions across the codebase - added missing framework files and reverted markup changes - reformatted arrays for enhanced readability - updated language files for consistent styling and clarity - minor miscellaneous improvements
20 lines
467 B
PHP
20 lines
467 B
PHP
<?php
|
|
|
|
$fp = fopen("/root/commits.txt", "r");
|
|
|
|
$commits = array();
|
|
$previous_author = '';
|
|
while (($line = fgets($fp)) !== FALSE) {
|
|
list($mode, $sha, $current_author, $subject) = explode('|', $line);
|
|
if ($previous_author == '' || $previous_author !== $current_author) {
|
|
$previous_author = $current_author;
|
|
} else {
|
|
$mode = 'f';
|
|
}
|
|
$output[] = implode(' ', array($mode, $sha, $subject));
|
|
}
|
|
|
|
fclose($fp);
|
|
|
|
print implode(' ', $output);
|