Passed
Push — master ( 4d9724...cfb21b )
by Tim
02:15
created
src/StatDataset.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         $timeresconfig = $timeresconfigs->getConfigItem($timeres);
75 75
         if ($timeresconfig === null) {
76
-            throw new Error\ConfigurationError('Missing \'timeres.' . $timeres . '\' in module configuration.');
76
+            throw new Error\ConfigurationError('Missing \'timeres.'.$timeres.'\' in module configuration.');
77 77
         }
78 78
 
79 79
         $this->timeresconfig = $timeresconfig;
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
                 'Statistics\FieldPresentation'
358 358
             );
359 359
             if (!class_exists($classname)) {
360
-                throw new Exception('Could not find field presentation plugin [' . $classname . ']: No class found');
360
+                throw new Exception('Could not find field presentation plugin ['.$classname.']: No class found');
361 361
             }
362 362
             $presentationHandler = new $classname($availdelimiters, $fieldpresConfig->getValue('config'), $t);
363 363
 
@@ -399,17 +399,17 @@  discard block
 block discarded – undo
399 399
         $rules = $this->ruleid;
400 400
         foreach ($rules as $rule) {
401 401
             // Get file and extract results.
402
-            $resultFileName = $statdir . '/' . $rule . '-' . $this->timeres . '-' . $this->fileslot . '.stat';
402
+            $resultFileName = $statdir.'/'.$rule.'-'.$this->timeres.'-'.$this->fileslot.'.stat';
403 403
             if (!file_exists($resultFileName)) {
404
-                throw new Exception('Aggregated statitics file [' . $resultFileName . '] not found.');
404
+                throw new Exception('Aggregated statitics file ['.$resultFileName.'] not found.');
405 405
             }
406 406
             if (!is_readable($resultFileName)) {
407
-                throw new Exception('Could not read statitics file [' . $resultFileName . ']. Bad file permissions?');
407
+                throw new Exception('Could not read statitics file ['.$resultFileName.']. Bad file permissions?');
408 408
             }
409 409
             $resultfile = file_get_contents($resultFileName);
410 410
             $newres = unserialize($resultfile);
411 411
             if (empty($newres)) {
412
-                throw new Exception('Aggregated statistics in file [' . $resultFileName . '] was empty.');
412
+                throw new Exception('Aggregated statistics in file ['.$resultFileName.'] was empty.');
413 413
             }
414 414
             $resarray[] = $newres;
415 415
         }
Please login to merge, or discard this patch.
config-templates/module_statistics.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     'statrules' => [
98 98
         'sloratio' => [
99 99
             'name'         => 'SLO to SSO ratio',
100
-            'descr'        => 'Comparison of the number of Single Log-Out compared to Single Sign-On.' .
100
+            'descr'        => 'Comparison of the number of Single Log-Out compared to Single Sign-On.'.
101 101
                 ' Graph shows how many logouts where initiated for each Single Sign-On.',
102 102
             'type'         => 'calculated',
103 103
             'presenter'    => 'statistics:Ratio',
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         ],
110 110
         'ssomulti' => [
111 111
             'name'         => 'Requests per session',
112
-            'descr'        => 'Number of SSO request pairs exchanged between IdP and SP within the same IdP session.' .
112
+            'descr'        => 'Number of SSO request pairs exchanged between IdP and SP within the same IdP session.'.
113 113
                 ' A high number indicates that the session at the SP is timing out faster than at the IdP.',
114 114
             'type'         => 'calculated',
115 115
             'presenter'    => 'statistics:Ratio',
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         ],
152 152
         'consent' => [
153 153
             'name'         => 'Consent',
154
-            'descr'        => 'Consent statistics. Every time a user logs in to a service an entry is logged for' .
154
+            'descr'        => 'Consent statistics. Every time a user logs in to a service an entry is logged for'.
155 155
                 ' one of three states: consent was found, consent was not found or consent storage was not available.',
156 156
             'action'       => 'consent',
157 157
             'col'          => 6,
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         ],
163 163
         'consentresponse' => [
164 164
             'name'         => 'Consent response',
165
-            'descr'        => 'Consent response statistics. Every time a user accepts consent,' .
165
+            'descr'        => 'Consent response statistics. Every time a user accepts consent,'.
166 166
                 ' it is logged whether the user selected to remember the consent to next time.',
167 167
             'action'       => 'consentResponse',
168 168
             'col'          => 6,
Please login to merge, or discard this patch.
src/Controller/Statistics.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                     $data = $dataset->getDebugData();
182 182
                     foreach ($data as $de) {
183 183
                         if (isset($de[1])) {
184
-                            echo '"' . $de[0] . '",' . $de[1] . "\n";
184
+                            echo '"'.$de[0].'",'.$de[1]."\n";
185 185
                         }
186 186
                     }
187 187
                     exit;
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             }
240 240
         }
241 241
         if ($type === 'get') {
242
-            return Module::getModuleURL("statistics/") . '?' . http_build_query($vars, '', '&');
242
+            return Module::getModuleURL("statistics/").'?'.http_build_query($vars, '', '&');
243 243
         }
244 244
         return $vars;
245 245
     }
Please login to merge, or discard this patch.