Completed
Push — master ( 31b5db...524ecf )
by Michael
03:26
created
lib/Configuration/NetworkWiring.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function wire(ContainerInterface $dic)
50 50
     {
51 51
         if (empty($dic['Yapeal.Network.Client'])) {
52
-            $dic['Yapeal.Network.Client'] = function ($dic) {
52
+            $dic['Yapeal.Network.Client'] = function($dic) {
53 53
                 $appComment = $dic['Yapeal.Network.appComment'];
54 54
                 $appName = $dic['Yapeal.Network.appName'];
55 55
                 $appVersion = $dic['Yapeal.Network.appVersion'];
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 ];
80 80
                 // Clean up any extra spaces and EOL chars from Yaml.
81 81
                 array_walk($headers,
82
-                    function (&$value) {
82
+                    function(&$value) {
83 83
                         $value = trim(str_replace(' ', '', (string)$value));
84 84
                     });
85 85
                 if ('' !== $userAgent) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             };
97 97
         }
98 98
         if (empty($dic['Yapeal.Network.Retriever'])) {
99
-            $dic['Yapeal.Network.Retriever'] = function ($dic) {
99
+            $dic['Yapeal.Network.Retriever'] = function($dic) {
100 100
                 return new $dic['Yapeal.Network.Handlers.retrieve']($dic['Yapeal.Network.Client'],
101 101
                     $dic['Yapeal.Network.Cache:retrieve']);
102 102
             };
Please login to merge, or discard this patch.
lib/Container/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             throw new \InvalidArgumentException('Extension service definition is not a Closure or invokable object.');
88 88
         }
89 89
         $factory = $this->values[$id];
90
-        $extended = function ($c) use ($callable, $factory) {
90
+        $extended = function($c) use ($callable, $factory) {
91 91
             return $callable($factory($c), $c);
92 92
         };
93 93
         if (isset($this->factories[$factory])) {
Please login to merge, or discard this patch.
lib/Configuration/SqlWiring.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -52,17 +52,17 @@  discard block
 block discarded – undo
52 52
     public function wire(ContainerInterface $dic)
53 53
     {
54 54
         if (empty($dic['Yapeal.Sql.CommonQueries'])) {
55
-            $dic['Yapeal.Sql.CommonQueries'] = function ($dic) {
55
+            $dic['Yapeal.Sql.CommonQueries'] = function($dic) {
56 56
                 return new $dic['Yapeal.Sql.Handlers.queries']($dic['Yapeal.Sql.database'],
57 57
                     $dic['Yapeal.Sql.tablePrefix']);
58 58
             };
59 59
         }
60 60
         if (empty($dic['Yapeal.Sql.Connection'])) {
61 61
             if ('mysql' !== $dic['Yapeal.Sql.platform']) {
62
-                $mess = 'Unknown platform, was given ' . $dic['Yapeal.Sql.platform'];
62
+                $mess = 'Unknown platform, was given '.$dic['Yapeal.Sql.platform'];
63 63
                 throw new YapealDatabaseException($mess);
64 64
             }
65
-            $dic['Yapeal.Sql.Connection'] = function ($dic) {
65
+            $dic['Yapeal.Sql.Connection'] = function($dic) {
66 66
                 $dsn = '%1$s:host=%2$s;charset=utf8mb4';
67 67
                 $subs = [$dic['Yapeal.Sql.platform'], $dic['Yapeal.Sql.hostName']];
68 68
                 if (!empty($dic['Yapeal.Sql.port'])) {
@@ -81,20 +81,20 @@  discard block
 block discarded – undo
81 81
                 $database->exec('SET SESSION TIME_ZONE=\'+00:00\'');
82 82
                 $database->exec('SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci');
83 83
                 $database->exec('SET COLLATION_CONNECTION=utf8mb4_unicode_520_ci');
84
-                $database->exec('SET DEFAULT_STORAGE_ENGINE=' . $dic['Yapeal.Sql.engine']);
84
+                $database->exec('SET DEFAULT_STORAGE_ENGINE='.$dic['Yapeal.Sql.engine']);
85 85
                 return $database;
86 86
             };
87 87
         }
88 88
         if (empty($dic['Yapeal.Sql.Creator'])) {
89
-            $dic['Yapeal.Sql.Creator'] = function () use ($dic) {
89
+            $dic['Yapeal.Sql.Creator'] = function() use ($dic) {
90 90
                 $loader = new \Twig_Loader_Filesystem($dic['Yapeal.Sql.dir']);
91 91
                 $twig = new \Twig_Environment($loader,
92 92
                     ['debug' => true, 'strict_variables' => true, 'autoescape' => false]);
93
-                $filter = new \Twig_SimpleFilter('ucFirst', function ($value) {
93
+                $filter = new \Twig_SimpleFilter('ucFirst', function($value) {
94 94
                     return ucfirst($value);
95 95
                 });
96 96
                 $twig->addFilter($filter);
97
-                $filter = new \Twig_SimpleFilter('lcFirst', function ($value) {
97
+                $filter = new \Twig_SimpleFilter('lcFirst', function($value) {
98 98
                     return lcfirst($value);
99 99
                 });
100 100
                 $twig->addFilter($filter);
Please login to merge, or discard this patch.
lib/Log/EventAwareLoggerInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -42,6 +42,7 @@
 block discarded – undo
42 42
 {
43 43
     /**
44 44
      * @param LogEventInterface $event
45
+     * @return void
45 46
      */
46 47
     public function logEvent(LogEventInterface $event);
47 48
 }
Please login to merge, or discard this 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
  * EventAwareLoggerInterface.php
5 5
  *
Please login to merge, or discard this patch.
lib/Configuration/WiringInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -42,6 +42,7 @@
 block discarded – undo
42 42
 {
43 43
     /**
44 44
      * @param LogEventInterface $event
45
+     * @return void
45 46
      */
46 47
     public function logEvent(LogEventInterface $event);
47 48
 }
Please login to merge, or discard this 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/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 Transformer interface.
5 5
  *
Please login to merge, or discard this patch.
lib/Xsl/Transformer.php 1 patch
Spacing   +6 added lines, -6 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 Transformer class.
5 5
  *
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function __construct($dir = __DIR__)
56 56
     {
57
-        $this->setRelativeBaseDir($dir . '/');
57
+        $this->setRelativeBaseDir($dir.'/');
58 58
     }
59 59
     /**
60 60
      * @param EveApiEventInterface $event
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
         $arguments = $data->getEveApiArguments();
113 113
         if (!empty($arguments['vCode'])) {
114
-            $arguments['vCode'] = substr($arguments['vCode'], 0, 8) . '...';
114
+            $arguments['vCode'] = substr($arguments['vCode'], 0, 8).'...';
115 115
         }
116 116
         if (!in_array($data->getEveApiName(), ['accountBalance', 'walletJournal', 'walletTransactions'], true)) {
117 117
             unset($arguments['accountKey']);
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
         $json = json_encode($arguments);
122 122
         $xml = str_replace(["encoding='UTF-8'?>\r\n<eveapi", "encoding='UTF-8'?>\n<eveapi"],
123 123
             [
124
-                "encoding='UTF-8'?>\r\n<?yapeal.parameters.json " . $json . "?>\r\n<eveapi",
125
-                "encoding='UTF-8'?>\n<?yapeal.parameters.json " . $json . "?>\n<eveapi"
124
+                "encoding='UTF-8'?>\r\n<?yapeal.parameters.json ".$json."?>\r\n<eveapi",
125
+                "encoding='UTF-8'?>\n<?yapeal.parameters.json ".$json."?>\n<eveapi"
126 126
             ],
127 127
             $xml);
128 128
         $data->setEveApiXml($xml);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 }
170 170
             }
171 171
             $apiName = $data->getEveApiName();
172
-            $data->setEveApiName('Untransformed_' . $apiName);
172
+            $data->setEveApiName('Untransformed_'.$apiName);
173 173
             // Cache error causing XML.
174 174
             $this->emitEvents($data, 'preserve', 'Yapeal.Xml.Error');
175 175
             $data->setEveApiName($apiName);
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 class LineFormatter.
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 class ActivationStrategy.
5 5
  *
Please login to merge, or discard this patch.