Passed
Push — master ( b7efe0...85d086 )
by Tim
02:39
created
src/StatDataset.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $timeresconfig = $timeresconfigs->getOptionalConfigItem($timeres, null);
80 80
         if ($timeresconfig === null) {
81
-            throw new Error\ConfigurationError('Missing \'timeres.' . $timeres . '\' in module configuration.');
81
+            throw new Error\ConfigurationError('Missing \'timeres.'.$timeres.'\' in module configuration.');
82 82
         }
83 83
 
84 84
         $this->timeresconfig = $timeresconfig;
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
                 'Statistics\FieldPresentation',
360 360
             );
361 361
             if (!class_exists($classname)) {
362
-                throw new Exception('Could not find field presentation plugin [' . $classname . ']: No class found');
362
+                throw new Exception('Could not find field presentation plugin ['.$classname.']: No class found');
363 363
             }
364 364
             $presentationHandler = new $classname($availdelimiters, $fieldpresConfig->getValue('config'), $t);
365 365
 
@@ -400,17 +400,17 @@  discard block
 block discarded – undo
400 400
         $rules = $this->ruleid;
401 401
         foreach ($rules as $rule) {
402 402
             // Get file and extract results.
403
-            $resultFileName = $statdir . '/' . $rule . '-' . $this->timeres . '-' . $this->fileslot . '.stat';
403
+            $resultFileName = $statdir.'/'.$rule.'-'.$this->timeres.'-'.$this->fileslot.'.stat';
404 404
             if (!file_exists($resultFileName)) {
405
-                throw new Exception('Aggregated statitics file [' . $resultFileName . '] not found.');
405
+                throw new Exception('Aggregated statitics file ['.$resultFileName.'] not found.');
406 406
             }
407 407
             if (!is_readable($resultFileName)) {
408
-                throw new Exception('Could not read statitics file [' . $resultFileName . ']. Bad file permissions?');
408
+                throw new Exception('Could not read statitics file ['.$resultFileName.']. Bad file permissions?');
409 409
             }
410 410
             $resultfile = file_get_contents($resultFileName);
411 411
             $newres = unserialize($resultfile);
412 412
             if (empty($newres)) {
413
-                throw new Exception('Aggregated statistics in file [' . $resultFileName . '] was empty.');
413
+                throw new Exception('Aggregated statistics in file ['.$resultFileName.'] was empty.');
414 414
             }
415 415
             $resarray[] = $newres;
416 416
         }
Please login to merge, or discard this patch.