Completed
Push — master ( 524ecf...598fe1 )
by Michael
02:48
created
lib/Configuration/XmlWiring.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
     public function wire(ContainerInterface $dic)
51 51
     {
52 52
         if (empty($dic['Yapeal.Xml.Data'])) {
53
-            $dic['Yapeal.Xml.Data'] = $dic->factory(function ($dic) {
53
+            $dic['Yapeal.Xml.Data'] = $dic->factory(function($dic) {
54 54
                 return new $dic['Yapeal.Xml.Handlers.data']();
55 55
             });
56 56
         }
57 57
         if (empty($dic['Yapeal.Xml.Error.Subscriber'])) {
58
-            $dic['Yapeal.Xml.Error.Subscriber'] = function () use ($dic) {
58
+            $dic['Yapeal.Xml.Error.Subscriber'] = function() use ($dic) {
59 59
                 return new $dic['Yapeal.Xml.Handlers.error']();
60 60
             };
61 61
         }
Please login to merge, or discard this patch.
lib/Configuration/EventWiring.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains class EventWiring.
5 5
  *
@@ -50,20 +50,20 @@  discard block
 block discarded – undo
50 50
     {
51 51
         if (empty($dic['Yapeal.Event.EveApiEvent'])) {
52 52
             $dic['Yapeal.Event.EveApi'] = $dic->factory(
53
-                function ($dic) {
53
+                function($dic) {
54 54
                     return new $dic['Yapeal.Event.Factories.eveApi']();
55 55
                 }
56 56
             );
57 57
         }
58 58
         if (empty($dic['Yapeal.Event.LogEvent'])) {
59 59
             $dic['Yapeal.Event.LogEvent'] = $dic->factory(
60
-                function ($dic) {
60
+                function($dic) {
61 61
                     return new $dic['Yapeal.Event.Factories.log'];
62 62
                 }
63 63
             );
64 64
         }
65 65
         if (empty($dic['Yapeal.Event.Mediator'])) {
66
-            $dic['Yapeal.Event.Mediator'] = function ($dic) {
66
+            $dic['Yapeal.Event.Mediator'] = function($dic) {
67 67
                 return new $dic['Yapeal.Event.Handlers.mediator']($dic);
68 68
             };
69 69
         }
Please login to merge, or discard this patch.
lib/Configuration/Wiring.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
          * @var WiringInterface $class
103 103
          */
104 104
         foreach ($names as $name) {
105
-            $setting = $base . strtolower($name);
105
+            $setting = $base.strtolower($name);
106 106
             if (!empty($dic[$setting])
107 107
                 && is_subclass_of($dic[$setting], '\\Yapeal\\Configuration\\WiringInterface', true)
108 108
             ) {
@@ -110,11 +110,11 @@  discard block
 block discarded – undo
110 110
                 $class->wire($dic);
111 111
                 continue;
112 112
             }
113
-            $methodName = 'wire' . $name;
113
+            $methodName = 'wire'.$name;
114 114
             if (method_exists($this, $methodName)) {
115 115
                 $this->$methodName();
116 116
             } else {
117
-                $mess = 'Could NOT find class or method for ' . $name;
117
+                $mess = 'Could NOT find class or method for '.$name;
118 118
                 throw new \LogicException($mess);
119 119
             }
120 120
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $dic = $this->dic;
138 138
         do {
139 139
             $settings = preg_replace_callback($regEx,
140
-                function ($match) use ($settings, $dic) {
140
+                function($match) use ($settings, $dic) {
141 141
                     if (!empty($settings[$match['name']])) {
142 142
                         return $settings[$match['name']];
143 143
                     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             if (PREG_NO_ERROR !== $lastError) {
158 158
                 $constants = array_flip(get_defined_constants(true)['pcre']);
159 159
                 $lastError = $constants[$lastError];
160
-                $mess = 'Received preg error ' . $lastError;
160
+                $mess = 'Received preg error '.$lastError;
161 161
                 throw new \DomainException($mess);
162 162
             }
163 163
         } while ($count > 0);
@@ -177,16 +177,16 @@  discard block
 block discarded – undo
177 177
             $dic['Yapeal.baseDir'] = $path;
178 178
         }
179 179
         if (empty($dic['Yapeal.libDir'])) {
180
-            $dic['Yapeal.libDir'] = $path . 'lib/';
180
+            $dic['Yapeal.libDir'] = $path.'lib/';
181 181
         }
182 182
         $configFiles = [
183
-            $fpn->normalizeFile(__DIR__ . '/yapeal_defaults.yaml'),
184
-            $fpn->normalizeFile($dic['Yapeal.baseDir'] . 'config/yapeal.yaml')
183
+            $fpn->normalizeFile(__DIR__.'/yapeal_defaults.yaml'),
184
+            $fpn->normalizeFile($dic['Yapeal.baseDir'].'config/yapeal.yaml')
185 185
         ];
186 186
         $vendorPos = strpos($path, 'vendor/');
187 187
         if (false !== $vendorPos) {
188 188
             $dic['Yapeal.vendorParentDir'] = substr($path, 0, $vendorPos);
189
-            $configFiles[] = $fpn->normalizeFile($dic['Yapeal.vendorParentDir'] . 'config/yapeal.yaml');
189
+            $configFiles[] = $fpn->normalizeFile($dic['Yapeal.vendorParentDir'].'config/yapeal.yaml');
190 190
         }
191 191
         $settings = [];
192 192
         // Process each file in turn so any substitutions are done in a more
Please login to merge, or discard this patch.
lib/Xsd/Validator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains Validator class.
5 5
  *
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function __construct($dir = __DIR__)
55 55
     {
56
-        $this->setRelativeBaseDir($dir . '/');
56
+        $this->setRelativeBaseDir($dir.'/');
57 57
     }
58 58
     /**
59 59
      * @param EveApiEventInterface $event
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             $mess = 'Received HTML result from ';
78 78
             $yem->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $this->createEveApiMessage($mess, $data));
79 79
             $apiName = $data->getEveApiName();
80
-            $data->setEveApiName('Invalid_' . $apiName);
80
+            $data->setEveApiName('Invalid_'.$apiName);
81 81
             // Cache error html.
82 82
             $this->emitEvents($data, 'preserve', 'Yapeal.Xml.Error');
83 83
             $data->setEveApiName($apiName);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             libxml_use_internal_errors(false);
108 108
             libxml_clear_errors();
109 109
             $apiName = $data->getEveApiName();
110
-            $data->setEveApiName('Invalid_' . $apiName);
110
+            $data->setEveApiName('Invalid_'.$apiName);
111 111
             // Cache error causing XML.
112 112
             $this->emitEvents($data, 'preserve', 'Yapeal.Xml.Error');
113 113
             $data->setEveApiName($apiName);
Please login to merge, or discard this patch.
lib/Xsl/TransformerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains WiringInterface Interface.
5 5
  *
Please login to merge, or discard this patch.
lib/Log/LineFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains WiringInterface Interface.
5 5
  *
Please login to merge, or discard this patch.
lib/Log/ActivationStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains WiringInterface Interface.
5 5
  *
Please login to merge, or discard this patch.
lib/EveApi/Map/Kills.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains WiringInterface Interface.
5 5
  *
Please login to merge, or discard this patch.
lib/EveApi/Map/MapSection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains WiringInterface Interface.
5 5
  *
Please login to merge, or discard this patch.