@@ -101,7 +101,7 @@ public function __construct(array $config, $reserved)
101101 if (!is_bool ($ config ['includeValues ' ])) {
102102 throw new Error \Exception (
103103 'Consent: includeValues must be boolean. ' .
104- var_export ($ config ['includeValues ' ], true ) . ' given. '
104+ var_export ($ config ['includeValues ' ], true ) . ' given. ' ,
105105 );
106106 }
107107 $ this ->includeValues = $ config ['includeValues ' ];
@@ -111,7 +111,7 @@ public function __construct(array $config, $reserved)
111111 if (!is_bool ($ config ['checked ' ])) {
112112 throw new Error \Exception (
113113 'Consent: checked must be boolean. ' .
114- var_export ($ config ['checked ' ], true ) . ' given. '
114+ var_export ($ config ['checked ' ], true ) . ' given. ' ,
115115 );
116116 }
117117 $ this ->checked = $ config ['checked ' ];
@@ -121,7 +121,7 @@ public function __construct(array $config, $reserved)
121121 if (!in_array ($ config ['focus ' ], ['yes ' , 'no ' ], true )) {
122122 throw new Error \Exception (
123123 'Consent: focus must be a string with values `yes` or `no`. ' .
124- var_export ($ config ['focus ' ], true ) . ' given. '
124+ var_export ($ config ['focus ' ], true ) . ' given. ' ,
125125 );
126126 }
127127 $ this ->focus = $ config ['focus ' ];
@@ -131,7 +131,7 @@ public function __construct(array $config, $reserved)
131131 if (!is_array ($ config ['hiddenAttributes ' ])) {
132132 throw new Error \Exception (
133133 'Consent: hiddenAttributes must be an array. ' .
134- var_export ($ config ['hiddenAttributes ' ], true ) . ' given. '
134+ var_export ($ config ['hiddenAttributes ' ], true ) . ' given. ' ,
135135 );
136136 }
137137 $ this ->hiddenAttributes = $ config ['hiddenAttributes ' ];
@@ -141,7 +141,7 @@ public function __construct(array $config, $reserved)
141141 if (!is_array ($ config ['attributes.exclude ' ])) {
142142 throw new Error \Exception (
143143 'Consent: attributes.exclude must be an array. ' .
144- var_export ($ config ['attributes.exclude ' ], true ) . ' given. '
144+ var_export ($ config ['attributes.exclude ' ], true ) . ' given. ' ,
145145 );
146146 }
147147 $ this ->noconsentattributes = $ config ['attributes.exclude ' ];
@@ -153,7 +153,7 @@ public function __construct(array $config, $reserved)
153153 } catch (Exception $ e ) {
154154 Logger::error (
155155 'Consent: Could not create consent storage: ' .
156- $ e ->getMessage ()
156+ $ e ->getMessage (),
157157 );
158158 }
159159 }
@@ -168,11 +168,11 @@ public function __construct(array $config, $reserved)
168168 Assert::keyExists (
169169 $ config ,
170170 'identifyingAttribute ' ,
171- "Consent: Missing mandatory 'identifyingAttribute' config setting. "
171+ "Consent: Missing mandatory 'identifyingAttribute' config setting. " ,
172172 );
173173 Assert::stringNotEmpty (
174174 $ config ['identifyingAttribute ' ],
175- "Consent: 'identifyingAttribute' must be a non-empty string. "
175+ "Consent: 'identifyingAttribute' must be a non-empty string. " ,
176176 );
177177 $ this ->identifyingAttribute = $ config ['identifyingAttribute ' ];
178178 }
@@ -296,7 +296,7 @@ public function process(array &$state): void
296296 Assert::keyExists (
297297 $ attributes ,
298298 $ this ->identifyingAttribute ,
299- "Consent: Missing ' " . $ this ->identifyingAttribute . "' in user's attributes. "
299+ "Consent: Missing ' " . $ this ->identifyingAttribute . "' in user's attributes. " ,
300300 );
301301
302302 $ source = $ state ['Source ' ]['metadata-set ' ] . '| ' . $ idpEntityId ;
@@ -305,7 +305,7 @@ public function process(array &$state): void
305305 Assert::keyExists (
306306 $ attributes ,
307307 $ this ->identifyingAttribute ,
308- sprintf ("Consent: No attribute '%s' was found in the user's attributes. " , $ this ->identifyingAttribute )
308+ sprintf ("Consent: No attribute '%s' was found in the user's attributes. " , $ this ->identifyingAttribute ),
309309 );
310310
311311 $ userId = $ attributes [$ this ->identifyingAttribute ][0 ];
@@ -327,7 +327,7 @@ public function process(array &$state): void
327327 $ attributeSet = self ::getAttributeHash ($ attributes , $ this ->includeValues );
328328
329329 Logger::debug (
330- 'Consent: hasConsent() [ ' . $ hashedUserId . '| ' . $ targetedId . '| ' . $ attributeSet . '] '
330+ 'Consent: hasConsent() [ ' . $ hashedUserId . '| ' . $ targetedId . '| ' . $ attributeSet . '] ' ,
331331 );
332332
333333 try {
@@ -366,7 +366,7 @@ public function process(array &$state): void
366366 Stats::log ('consent:nopassive ' , $ statsData );
367367 throw new Module \saml \Error \NoPassive (
368368 Constants::STATUS_REQUESTER ,
369- 'Unable to give consent on passive request. '
369+ 'Unable to give consent on passive request. ' ,
370370 );
371371 }
372372
0 commit comments