Completed
Push — master ( 7b1ef3...9d50ee )
by Maxim
02:41
created
src/Support/EventsEmitter.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $statisticsStorage = $this->makeStatisticsStorage();
34 34
 
35
-        if (! is_null($statisticsStorage)) {
35
+        if ( ! is_null($statisticsStorage)) {
36 36
             static::$events->useListenerProvider($statisticsStorage);
37 37
         }
38 38
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     protected function makeStatisticsStorage()
78 78
     {
79
-        if (! empty($this->project->config['statistics']['storage'])) {
79
+        if ( ! empty($this->project->config['statistics']['storage'])) {
80 80
             $storage = $this->project->config['statistics']['storage'];
81 81
 
82 82
             if (class_exists($storage)) return new $storage;
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,8 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $statisticsStorage = $this->makeStatisticsStorage();
34 34
 
35
-        if (! is_null($statisticsStorage)) {
35
+        if (! is_null($statisticsStorage))
36
+        {
36 37
             static::$events->useListenerProvider($statisticsStorage);
37 38
         }
38 39
     }
@@ -76,10 +77,14 @@  discard block
 block discarded – undo
76 77
      */
77 78
     protected function makeStatisticsStorage()
78 79
     {
79
-        if (! empty($this->project->config['statistics']['storage'])) {
80
+        if (! empty($this->project->config['statistics']['storage']))
81
+        {
80 82
             $storage = $this->project->config['statistics']['storage'];
81 83
 
82
-            if (class_exists($storage)) return new $storage;
84
+            if (class_exists($storage))
85
+            {
86
+                return new $storage;
87
+            }
83 88
         }
84 89
 
85 90
         return null;
Please login to merge, or discard this patch.