Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit f02b109

Browse files
cpatrickStyleCIBot
authored andcommitted
Applied fixes from StyleCI
1 parent f4990e8 commit f02b109

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

modules/oai/library/oai/oaidp-util.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,72 +31,72 @@ function oai_error($code, $argument = '', $value = '')
3131
global $request_err;
3232

3333
switch ($code) {
34-
case 'badArgument' :
34+
case 'badArgument':
3535
$text = "The argument '$argument' (value='$value') included in the request is not valid.";
3636
break;
3737

38-
case 'badGranularity' :
38+
case 'badGranularity':
3939
$text = "The value '$value' of the argument '$argument' is not valid.";
4040
$code = 'badArgument';
4141
break;
4242

43-
case 'badResumptionToken' :
43+
case 'badResumptionToken':
4444
$text = "The resumptionToken '$value' does not exist or has already expired.";
4545
break;
4646

47-
case 'badRequestMethod' :
47+
case 'badRequestMethod':
4848
$text = "The request method '$argument' is unknown.";
4949
$code = 'badVerb';
5050
break;
5151

52-
case 'badVerb' :
52+
case 'badVerb':
5353
$text = "The verb '$argument' provided in the request is illegal.";
5454
break;
5555

56-
case 'cannotDisseminateFormat' :
56+
case 'cannotDisseminateFormat':
5757
$text = "The metadata format '$value' given by $argument is not supported by this repository.";
5858
break;
5959

60-
case 'exclusiveArgument' :
60+
case 'exclusiveArgument':
6161
$text = 'The usage of resumptionToken as an argument allows no other arguments.';
6262
$code = 'badArgument';
6363
break;
6464

65-
case 'idDoesNotExist' :
65+
case 'idDoesNotExist':
6666
$text = "The value '$value' of the identifier is illegal for this repository.";
6767
if (!is_valid_uri($value)) {
6868
$code = 'badArgument';
6969
}
7070
break;
7171

72-
case 'missingArgument' :
72+
case 'missingArgument':
7373
$text = "The required argument '$argument' is missing in the request.";
7474
$code = 'badArgument';
7575
break;
7676

77-
case 'noRecordsMatch' :
77+
case 'noRecordsMatch':
7878
$text = 'The combination of the given values results in an empty list.';
7979
break;
8080

81-
case 'noMetadataFormats' :
81+
case 'noMetadataFormats':
8282
$text = 'There are no metadata formats available for the specified item.';
8383
break;
8484

85-
case 'noVerb' :
85+
case 'noVerb':
8686
$text = 'The request does not provide any verb.';
8787
$code = 'badVerb';
8888
break;
8989

90-
case 'noSetHierarchy' :
90+
case 'noSetHierarchy':
9191
$text = 'This repository does not support sets.';
9292
break;
9393

94-
case 'sameArgument' :
94+
case 'sameArgument':
9595
$text = 'Do not use them same argument more than once.';
9696
$code = 'badArgument';
9797
break;
9898

99-
case 'sameVerb' :
99+
case 'sameVerb':
100100
$text = 'Do not use verb more than once.';
101101
$code = 'badVerb';
102102
break;
@@ -164,7 +164,7 @@ function xmlrecord($sqlrecord, $element, $attr = '', $indent = 0)
164164
}
165165
}
166166

167-
function xmlelement($element, $attr = '', &$indent, $open = true)
167+
function xmlelement($element, $attr, &$indent, $open = true)
168168
{
169169
global $SQL;
170170

0 commit comments

Comments
 (0)