@@ -49,15 +49,15 @@ function __construct(Tool $tool, string $secret)
49
49
foreach ($ tool ->requiredServices as $ requiredService ) {
50
50
foreach ($ requiredService ->formats as $ format ) {
51
51
$ service = $ tool ->findService ($ format , $ requiredService ->actions );
52
- if (($ service !== false ) && !array_key_exists ($ service ->{ ' @id ' } , $ toolServices )) {
53
- $ id = $ service ->{ ' @id ' } ;
52
+ if (($ service !== false ) && !array_key_exists ($ service ->id , $ toolServices )) {
53
+ $ id = $ service ->id ;
54
54
$ parts = explode (': ' , $ id , 2 );
55
55
if (count ($ parts ) > 1 ) {
56
56
if (array_key_exists ($ parts [0 ], $ tcContexts )) {
57
57
$ id = "{$ tcContexts [$ parts [0 ]]}{$ parts [1 ]}" ;
58
58
}
59
59
}
60
- $ toolServices [$ service ->{ ' @id ' } ] = (object ) [
60
+ $ toolServices [$ service ->id ] = (object ) [
61
61
'@type ' => 'RestServiceProfile ' ,
62
62
'service ' => $ id ,
63
63
'action ' => $ requiredService ->actions
@@ -68,15 +68,15 @@ function __construct(Tool $tool, string $secret)
68
68
foreach ($ tool ->optionalServices as $ optionalService ) {
69
69
foreach ($ optionalService ->formats as $ format ) {
70
70
$ service = $ tool ->findService ($ format , $ optionalService ->actions );
71
- if (($ service !== false ) && !array_key_exists ($ service ->{ ' @id ' } , $ toolServices )) {
72
- $ id = $ service ->{ ' @id ' } ;
71
+ if (($ service !== false ) && !array_key_exists ($ service ->id , $ toolServices )) {
72
+ $ id = $ service ->id ;
73
73
$ parts = explode (': ' , $ id , 2 );
74
74
if (count ($ parts ) > 1 ) {
75
75
if (array_key_exists ($ parts [0 ], $ tcContexts )) {
76
76
$ id = "{$ tcContexts [$ parts [0 ]]}{$ parts [1 ]}" ;
77
77
}
78
78
}
79
- $ toolServices [$ service ->{ ' @id ' } ] = (object ) [
79
+ $ toolServices [$ service ->id ] = (object ) [
80
80
'@type ' => 'RestServiceProfile ' ,
81
81
'service ' => $ id ,
82
82
'action ' => $ optionalService ->actions
0 commit comments