mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
Fixes the following Codacy issues: * Avoid variables with short names like `$a`. Configured minimum length is 3. * Avoid unused local variables such as '$key'.
22 lines
557 B
PHP
22 lines
557 B
PHP
<?php
|
|
namespace ScummVM\Models;
|
|
|
|
use ScummVM\Objects\CreditsSection;
|
|
|
|
/**
|
|
* The CreditsModel will generate CreditsSection objects.
|
|
*/
|
|
abstract class CreditsModel extends BasicModel
|
|
{
|
|
/* Get all credit sections and their contents. */
|
|
public static function getAllCredits()
|
|
{
|
|
$fname = DIR_DATA . '/credits.yaml';
|
|
$parsedData = \yaml_parse_file($fname);
|
|
foreach (array_values($parsedData['credits']['section']) as $value) {
|
|
$sections[] = new CreditsSection($value);
|
|
}
|
|
return $sections;
|
|
}
|
|
}
|