Skip to content

Commit 5518090

Browse files
author
Vítězslav Dvořák
committed
Refactor evidence class name resolution to use Functions::evidenceToClassName
1 parent c0c9bab commit 5518090

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/update_actions_class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class Actions
136136
* @var array<string,array<string,string>>
137137
*/
138138
';
139-
$evidenceActions .= ' static public $' . lcfirst(RO::evidenceToClassName($evidencePath)) . ' = ' . varexport($structure,
139+
$evidenceActions .= ' static public $' . lcfirst(Functions::evidenceToClassName($evidencePath)) . ' = ' . varexport($structure,
140140
true) . ';
141141
';
142142

tools/update_formats_class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public static function contentTypeToResponseFormat(string $contentType, string $
299299
* @var array
300300
*/
301301
';
302-
$evidenceFormats .= ' static public $' . lcfirst(RO::evidenceToClassName($evidencePath)) . ' = ' . varexport($structure,
302+
$evidenceFormats .= ' static public $' . lcfirst(Functions::evidenceToClassName($evidencePath)) . ' = ' . varexport($structure,
303303
true) . ';
304304
';
305305
$syncer->addStatusMessage($pos . ' of ' . count(EvidenceList::$name) . ' ' . $evidencePath . ': formats: ' . implode(',', $structure), 'success');

tools/update_relations_class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Relations
9898
* @var array
9999
*/
100100
';
101-
$evidenceRels .= ' static public $' . lcfirst(RO::evidenceToClassName($evidencePath)) . ' = ' . varexport($structure,
101+
$evidenceRels .= ' static public $' . lcfirst(Functions::evidenceToClassName($evidencePath)) . ' = ' . varexport($structure,
102102
true) . ';
103103
';
104104

0 commit comments

Comments
 (0)