From 3ad5dfaf869566b6bbe4560544e6d40d9c3c9a87 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Wed, 12 Feb 2020 19:12:02 +0000
Subject: [PATCH] Dance to the pipes of phpcs

---
 lib/SimpleSAML/Module.php | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/lib/SimpleSAML/Module.php b/lib/SimpleSAML/Module.php
index e536c105f..f4d61c383 100644
--- a/lib/SimpleSAML/Module.php
+++ b/lib/SimpleSAML/Module.php
@@ -169,12 +169,19 @@ class Module
 
         $config = Configuration::getInstance();
 
-        // rebuild REQUEST_URI and SCRIPT_NAME just in case we need to. This is needed for server aliases and rewrites
+        // rebuild REQUEST_URI and SCRIPT_NAME just in case we need to.
+        // This is needed for server aliases and rewrites
         $translated_uri = $config->getBasePath() . 'module.php/' . $module . '/' . $url;
         $request->server->set('REQUEST_URI', $translated_uri);
         $request->server->set('SCRIPT_NAME', $config->getBasePath() . 'module.php');
-        // strip any NULL files (form file fields with nothing selected) because initialize() will throw an error on them
-        $request_files = array_filter($request->files->all(), function($val){return !is_null($val);});
+        // strip any NULL files (form file fields with nothing selected)
+        // because initialize() will throw an error on them
+        $request_files = array_filter(
+            $request->files->all(),
+            function ($val) {
+                return !is_null($val);
+            }
+        );
         $request->initialize(
             $request->query->all(),
             $request->request->all(),
-- 
GitLab