Completed
Push — master ( 2cff5f...81de03 )
by Michael
03:19
created
lib/Configuration/XsdWiring.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,19 +50,19 @@  discard block
 block discarded – undo
50 50
     public function wire(ContainerInterface $dic)
51 51
     {
52 52
         if (empty($dic['Yapeal.Xsd.Creator'])) {
53
-            $dic['Yapeal.Xsd.Creator'] = function () use ($dic) {
53
+            $dic['Yapeal.Xsd.Creator'] = function() use ($dic) {
54 54
                     $loader = new \Twig_Loader_Filesystem($dic['Yapeal.Xsd.dir']);
55 55
                     $twig = new \Twig_Environment(
56 56
                         $loader, ['debug' => true, 'strict_variables' => true, 'autoescape' => false]
57 57
                     );
58 58
                     $filter = new \Twig_SimpleFilter(
59
-                        'ucFirst', function ($value) {
59
+                        'ucFirst', function($value) {
60 60
                         return ucfirst($value);
61 61
                     }
62 62
                     );
63 63
                     $twig->addFilter($filter);
64 64
                     $filter = new \Twig_SimpleFilter(
65
-                        'lcFirst', function ($value) {
65
+                        'lcFirst', function($value) {
66 66
                         return lcfirst($value);
67 67
                     }
68 68
                     );
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 };
79 79
         }
80 80
         if (empty($dic['Yapeal.Xsd.Validator'])) {
81
-            $dic['Yapeal.Xsd.Validator'] = function () use ($dic) {
81
+            $dic['Yapeal.Xsd.Validator'] = function() use ($dic) {
82 82
                     return new $dic['Yapeal.Xsd.validate']($dic['Yapeal.Xsd.dir']);
83 83
                 };
84 84
         }
Please login to merge, or discard this patch.
lib/Configuration/XmlWiring.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
     {
52 52
         if (empty($dic['Yapeal.Xml.Data'])) {
53 53
             $dic['Yapeal.Xml.Data'] = $dic->factory(
54
-                function ($dic) {
54
+                function($dic) {
55 55
                     return new $dic['Yapeal.Xml.data']();
56 56
                 }
57 57
             );
58 58
         }
59 59
         if (empty($dic['Yapeal.Xml.Error.Subscriber'])) {
60
-            $dic['Yapeal.Xml.Error.Subscriber'] = function () use ($dic) {
60
+            $dic['Yapeal.Xml.Error.Subscriber'] = function() use ($dic) {
61 61
                     return new $dic['Yapeal.Xml.Handlers.error']();
62 62
                 };
63 63
         }
Please login to merge, or discard this patch.
lib/Configuration/XslWiring.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function wire(ContainerInterface $dic)
51 51
     {
52 52
         if (empty($dic['Yapeal.Xsl.Transformer'])) {
53
-            $dic['Yapeal.Xsl.Transformer'] = function () use ($dic) {
53
+            $dic['Yapeal.Xsl.Transformer'] = function() use ($dic) {
54 54
                     return new $dic['Yapeal.Xsl.transform']($dic['Yapeal.Xsl.dir']);
55 55
                 };
56 56
         }
Please login to merge, or discard this patch.
lib/Configuration/SqlWiring.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  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.sharedSql']($dic['Yapeal.Sql.database'], $dic['Yapeal.Sql.tablePrefix']);
57 57
             };
58 58
         }
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
             return $this;
61 61
         }
62 62
         if ('mysql' !== $dic['Yapeal.Sql.platform']) {
63
-            $mess = 'Unknown platform, was given ' . $dic['Yapeal.Sql.platform'];
63
+            $mess = 'Unknown platform, was given '.$dic['Yapeal.Sql.platform'];
64 64
             throw new YapealDatabaseException($mess);
65 65
         }
66
-        $dic['Yapeal.Sql.Connection'] = function ($dic) {
67
-            $dsn = $dic['Yapeal.Sql.platform'] . ':host=' . $dic['Yapeal.Sql.hostName'] . ';charset=utf8mb4';
66
+        $dic['Yapeal.Sql.Connection'] = function($dic) {
67
+            $dsn = $dic['Yapeal.Sql.platform'].':host='.$dic['Yapeal.Sql.hostName'].';charset=utf8mb4';
68 68
             if (!empty($dic['Yapeal.Sql.port'])) {
69
-                $dsn .= ';port=' . $dic['Yapeal.Sql.port'];
69
+                $dsn .= ';port='.$dic['Yapeal.Sql.port'];
70 70
             }
71 71
             /**
72 72
              * @var \PDO $database
@@ -78,19 +78,19 @@  discard block
 block discarded – undo
78 78
             $database->exec('SET SESSION TIME_ZONE=\'+00:00\'');
79 79
             $database->exec('SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci');
80 80
             $database->exec('SET COLLATION_CONNECTION=utf8mb4_unicode_520_ci');
81
-            $database->exec('SET DEFAULT_STORAGE_ENGINE=' . $dic['Yapeal.Sql.engine']);
81
+            $database->exec('SET DEFAULT_STORAGE_ENGINE='.$dic['Yapeal.Sql.engine']);
82 82
             return $database;
83 83
         };
84 84
         if (empty($dic['Yapeal.Sql.Creator'])) {
85
-            $dic['Yapeal.Sql.Creator'] = function () use ($dic) {
85
+            $dic['Yapeal.Sql.Creator'] = function() use ($dic) {
86 86
                 $loader = new \Twig_Loader_Filesystem($dic['Yapeal.Sql.dir']);
87 87
                 $twig = new \Twig_Environment($loader,
88 88
                     ['debug' => true, 'strict_variables' => true, 'autoescape' => false]);
89
-                $filter = new \Twig_SimpleFilter('ucFirst', function ($value) {
89
+                $filter = new \Twig_SimpleFilter('ucFirst', function($value) {
90 90
                     return ucfirst($value);
91 91
                 });
92 92
                 $twig->addFilter($filter);
93
-                $filter = new \Twig_SimpleFilter('lcFirst', function ($value) {
93
+                $filter = new \Twig_SimpleFilter('lcFirst', function($value) {
94 94
                     return lcfirst($value);
95 95
                 });
96 96
                 $twig->addFilter($filter);
Please login to merge, or discard this patch.
lib/Configuration/ErrorWiring.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.Error.Strategy'])) {
53
-            $dic['Yapeal.Error.Strategy'] = function () use ($dic) {
53
+            $dic['Yapeal.Error.Strategy'] = function() use ($dic) {
54 54
                 return new $dic['Yapeal.Error.Handlers.strategy']((int)$dic['Yapeal.Error.threshold']);
55 55
             };
56 56
         }
57 57
         if (empty($dic['Yapeal.Error.Logger'])) {
58
-            $dic['Yapeal.Error.Logger'] = function () use ($dic) {
58
+            $dic['Yapeal.Error.Logger'] = function() use ($dic) {
59 59
                 /**
60 60
                  * @var Logger $logger
61 61
                  */
Please login to merge, or discard this patch.
lib/Configuration/LogWiring.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if (empty($dic['Yapeal.Log.Strategy'])) {
52 52
             $dic['Yapeal.Log.Strategy'] = function () use ($dic) {
53 53
                 return new $dic['Yapeal.Log.Handlers.strategy']((int)$dic['Yapeal.Log.threshold']);
54
-           };
54
+            };
55 55
         }
56 56
         if (empty($dic['Yapeal.Log.Logger'])) {
57 57
             $dic['Yapeal.Log.Logger'] = function () use ($dic) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
     public function wire(ContainerInterface $dic)
50 50
     {
51 51
         if (empty($dic['Yapeal.Log.Strategy'])) {
52
-            $dic['Yapeal.Log.Strategy'] = function () use ($dic) {
52
+            $dic['Yapeal.Log.Strategy'] = function() use ($dic) {
53 53
                 return new $dic['Yapeal.Log.Handlers.strategy']((int)$dic['Yapeal.Log.threshold']);
54 54
            };
55 55
         }
56 56
         if (empty($dic['Yapeal.Log.Logger'])) {
57
-            $dic['Yapeal.Log.Logger'] = function () use ($dic) {
57
+            $dic['Yapeal.Log.Logger'] = function() use ($dic) {
58 58
                 $group = [];
59 59
                 $lineFormatter = new LineFormatter(null, 'Ymd His.u', true, true);
60 60
                 $lineFormatter->includeStacktraces();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     $handler->setFormatter($lineFormatter);
67 67
                     $group[] = $handler;
68 68
                 }
69
-                $handler = new $dic['Yapeal.Log.Handlers.stream']($dic['Yapeal.Log.dir'] . $dic['Yapeal.Log.fileName'],
69
+                $handler = new $dic['Yapeal.Log.Handlers.stream']($dic['Yapeal.Log.dir'].$dic['Yapeal.Log.fileName'],
70 70
                     100);
71 71
                 $group[] = $handler->setFormatter($lineFormatter);
72 72
                 return new $dic['Yapeal.Log.Handlers.class']($dic['Yapeal.Log.channel'], [
Please login to merge, or discard this patch.
lib/Sql/Creator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             'className' => lcfirst($this->apiName),
105 105
             'tables' => $this->tables,
106 106
             'sectionName' => lcfirst($this->sectionName),
107
-            'version' => gmdate('YmdHis', $sec) . substr($mSec, 1, 4)
107
+            'version' => gmdate('YmdHis', $sec).substr($mSec, 1, 4)
108 108
         ];
109 109
         try {
110 110
             $contents = $this->getTwig()
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 $platform,
178 178
                 $suffix));
179 179
         foreach ($names as $fileName) {
180
-            if (is_file($this->getDir() . $fileName)) {
180
+            if (is_file($this->getDir().$fileName)) {
181 181
                 return $fileName;
182 182
             }
183 183
         }
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
                 $columns['ownerID'] = 'BIGINT(20) UNSIGNED NOT NULL';
262 262
             }
263 263
             uksort($columns,
264
-                function ($alpha, $beta) {
264
+                function($alpha, $beta) {
265 265
                     $alpha = strtolower($alpha);
266 266
                     $beta = strtolower($beta);
267 267
                     if ($alpha < $beta) {
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
             $columns['ownerID'] = 'BIGINT(20) UNSIGNED NOT NULL';
305 305
         }
306 306
         uksort($columns,
307
-            function ($alpha, $beta) {
307
+            function($alpha, $beta) {
308 308
                 $alpha = strtolower($alpha);
309 309
                 $beta = strtolower($beta);
310 310
                 if ($alpha < $beta) {
Please login to merge, or discard this patch.
lib/Xsl/Transformer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -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
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         }
111 111
         $arguments = $data->getEveApiArguments();
112 112
         if (!empty($arguments['vCode'])) {
113
-            $arguments['vCode'] = substr($arguments['vCode'], 0, 8) . '...';
113
+            $arguments['vCode'] = substr($arguments['vCode'], 0, 8).'...';
114 114
         }
115 115
         if (!in_array($data->getEveApiName(), ['accountBalance', 'walletJournal', 'walletTransactions'], true)) {
116 116
             unset($arguments['accountKey']);
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
         $json = json_encode($arguments);
121 121
         $xml = str_replace(["encoding='UTF-8'?>\r\n<eveapi", "encoding='UTF-8'?>\n<eveapi"],
122 122
             [
123
-                "encoding='UTF-8'?>\r\n<?yapeal.parameters.json " . $json . "?>\r\n<eveapi",
124
-                "encoding='UTF-8'?>\n<?yapeal.parameters.json " . $json . "?>\n<eveapi"
123
+                "encoding='UTF-8'?>\r\n<?yapeal.parameters.json ".$json."?>\r\n<eveapi",
124
+                "encoding='UTF-8'?>\n<?yapeal.parameters.json ".$json."?>\n<eveapi"
125 125
             ],
126 126
             $xml);
127 127
         $data->setEveApiXml($xml);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                 }
169 169
             }
170 170
             $apiName = $data->getEveApiName();
171
-            $data->setEveApiName('Untransformed_' . $apiName);
171
+            $data->setEveApiName('Untransformed_'.$apiName);
172 172
             // Cache error causing XML.
173 173
             $this->emitEvents($data, 'preserve', 'Yapeal.Xml.Error');
174 174
             $data->setEveApiName($apiName);
Please login to merge, or discard this patch.
lib/EveApi/Corp/IndustryJobs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
             $this->setYem($yem);
74 74
         }
75 75
         $data = $event->getData();
76
-        $data->setEveApiName($data->getEveApiName() . 'History');
76
+        $data->setEveApiName($data->getEveApiName().'History');
77 77
         // Insure history has already been updated first so current data overwrites old data.
78 78
         $this->emitEvents($data, 'start');
79 79
         return parent::startEveApi($event, $eventName, $yem);
Please login to merge, or discard this patch.