@@ -207,9 +207,7 @@ module Spife {
207207 rh .getARequestSource ( ) .ref ( ) .getAPropertyRead ( [ "headers" , "rawHeaders" ] ) .getAPropertyRead ( )
208208 }
209209
210- override string getAHeaderName ( ) {
211- result = super .getPropertyName ( ) .toLowerCase ( )
212- }
210+ override string getAHeaderName ( ) { result = super .getPropertyName ( ) .toLowerCase ( ) }
213211
214212 override RouteHandler getRouteHandler ( ) { result = rh }
215213
@@ -233,9 +231,7 @@ module Spife {
233231 result = this and
234232 t .start ( )
235233 or
236- exists ( DataFlow:: TypeTracker t2 |
237- result = this .reachesHandlerReturn ( t2 ) .track ( t2 , t )
238- )
234+ exists ( DataFlow:: TypeTracker t2 | result = this .reachesHandlerReturn ( t2 ) .track ( t2 , t ) )
239235 }
240236
241237 /**
@@ -254,7 +250,6 @@ module Spife {
254250 * An HTTP header defined in a Spife response.
255251 */
256252 private class HeaderDefinition extends Http:: ExplicitHeaderDefinition , DataFlow:: MethodCallNode instanceof ReplySource {
257-
258253 HeaderDefinition ( ) {
259254 // reply.header(RESPONSE, 'Cache-Control', 'no-cache')
260255 exists ( DataFlow:: MethodCallNode call |
@@ -316,7 +311,6 @@ module Spife {
316311 */
317312 private class ContentTypeRouteHandlerHeader extends Http:: ImplicitHeaderDefinition ,
318313 DataFlow:: FunctionNode instanceof RouteHandler {
319-
320314 override predicate defines ( string headerName , string headerValue ) {
321315 headerName = "content-type" and headerValue = "application/json"
322316 }
@@ -328,7 +322,6 @@ module Spife {
328322 * An HTTP cookie defined in a Spife HTTP response.
329323 */
330324 private class CookieDefinition extends Http:: CookieDefinition , DataFlow:: MethodCallNode instanceof ReplySource {
331-
332325 CookieDefinition ( ) {
333326 // reply.cookie(RESPONSE, 'TEST', 'FOO', {"maxAge": 1000, "httpOnly": true, "secure": true})
334327 this .ref ( ) .( DataFlow:: MethodCallNode ) .getMethodName ( ) = "cookie"
@@ -400,10 +393,7 @@ module Spife {
400393 * An invocation of the `redirect` method of an HTTP response object.
401394 */
402395 private class RedirectInvocation extends Http:: RedirectInvocation , DataFlow:: MethodCallNode instanceof ReplySource {
403-
404- RedirectInvocation ( ) {
405- this .ref ( ) .( DataFlow:: MethodCallNode ) .getMethodName ( ) = "redirect"
406- }
396+ RedirectInvocation ( ) { this .ref ( ) .( DataFlow:: MethodCallNode ) .getMethodName ( ) = "redirect" }
407397
408398 override DataFlow:: Node getUrlArgument ( ) { result = this .getAnArgument ( ) }
409399
@@ -413,10 +403,9 @@ module Spife {
413403 /**
414404 * A call to `reply.template('template', { ... })`, seen as a template instantiation.
415405 */
416- private class TemplateCall extends Templating:: TemplateInstantiation:: Range , DataFlow:: MethodCallNode instanceof ReplySource {
417- TemplateCall ( ) {
418- this .getMethodName ( ) = "template"
419- }
406+ private class TemplateCall extends Templating:: TemplateInstantiation:: Range ,
407+ DataFlow:: MethodCallNode instanceof ReplySource {
408+ TemplateCall ( ) { this .getMethodName ( ) = "template" }
420409
421410 override DataFlow:: SourceNode getOutput ( ) { result = this }
422411
0 commit comments