Completed
Push — master ( 65034b...7b1ef3 )
by Maxim
02:33
created
src/Support/EventsEmitter.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use League\Event\EventInterface;
7 7
 use League\Event\ListenerInterface;
8 8
 use Notimatica\Driver\StatisticsStorages\AbstractStorage;
9
-use Notimatica\Driver\StatisticsStoragesFactory;
10 9
 
11 10
 trait EventsEmitter
12 11
 {
Please login to merge, or discard this patch.
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
             || class_exists($this->project->config['statistics']['storage'])) {
81 81
             $storage = $this->project->config['statistics']['storage'];
82 82
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 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
     }
@@ -77,7 +78,8 @@  discard block
 block discarded – undo
77 78
     protected function makeStatisticsStorage()
78 79
     {
79 80
         if (!empty($this->project->config['statistics']['storage'])
80
-            || class_exists($this->project->config['statistics']['storage'])) {
81
+            || class_exists($this->project->config['statistics']['storage']))
82
+        {
81 83
             $storage = $this->project->config['statistics']['storage'];
82 84
 
83 85
             return new $storage;
Please login to merge, or discard this patch.