Completed
Push — master ( 7c429e...75748b )
by Michael
03:23
created
lib/Xsd/Creator.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
         }
92 92
         $this->sectionName = $data->getEveApiSectionName();
93 93
         $xml = $data->getEveApiXml();
94
-         if (false === $xml) {
95
-             return $event->setHandledSufficiently();
96
-          }
94
+            if (false === $xml) {
95
+                return $event->setHandledSufficiently();
96
+            }
97 97
         $sxi = new SimpleXMLIterator($xml);
98 98
         $this->tables = [];
99 99
         $this->processValueOnly($sxi, lcfirst($data->getEveApiName()));
@@ -154,18 +154,18 @@  discard block
 block discarded – undo
154 154
         }
155 155
         $name = strtolower($name);
156 156
         foreach ([
157
-                     'descr'          => 'xs:string',
158
-                     'name'           => 'eveNameType',
159
-                     'balance'        => 'eveISKType',
160
-                     'isk'            => 'eveISKType',
161
-                     'tax'            => 'eveISKType',
162
-                     'timeefficiency' => 'xs:unsignedByte',
163
-                     'date'           => 'eveNEDTType',
164
-                     'time'           => 'eveNEDTType',
165
-                     'until'          => 'eveNEDTType',
166
-                     'errorcode'      => 'xs:unsignedShort',
167
-                     'level'          => 'xs:unsignedShort'
168
-                 ] as $search => $replace) {
157
+                        'descr'          => 'xs:string',
158
+                        'name'           => 'eveNameType',
159
+                        'balance'        => 'eveISKType',
160
+                        'isk'            => 'eveISKType',
161
+                        'tax'            => 'eveISKType',
162
+                        'timeefficiency' => 'xs:unsignedByte',
163
+                        'date'           => 'eveNEDTType',
164
+                        'time'           => 'eveNEDTType',
165
+                        'until'          => 'eveNEDTType',
166
+                        'errorcode'      => 'xs:unsignedShort',
167
+                        'level'          => 'xs:unsignedShort'
168
+                    ] as $search => $replace) {
169 169
             if (false !== strpos($name, $search)) {
170 170
                 return $replace;
171 171
             }
Please login to merge, or discard this patch.
lib/Event/LogEvent.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
         array $context = []
53 53
     ) {
54 54
         $this->setLevel($level)
55
-             ->setMessage($message)
56
-             ->setContext($context);
55
+                ->setMessage($message)
56
+                ->setContext($context);
57 57
     }
58 58
     /**
59 59
      * @return array
Please login to merge, or discard this patch.
lib/Event/Mediator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@
 block discarded – undo
86 86
             $event = new LogEvent();
87 87
         }
88 88
         $event->setLevel($level)
89
-              ->setMessage($message)
90
-              ->setContext($context);
89
+                ->setMessage($message)
90
+                ->setContext($context);
91 91
         return $this->trigger($eventName, $event);
92 92
     }
93 93
 }
Please login to merge, or discard this patch.
lib/EveApi/Creator.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -160,16 +160,16 @@
 block discarded – undo
160 160
         $name = strtolower($name);
161 161
         $column = 'null';
162 162
         foreach ([
163
-                     'descr'          => '\'\'',
164
-                     'name'           => '\'\'',
165
-                     'balance'        => '\'0.0\'',
166
-                     'isk'            => '\'0.0\'',
167
-                     'tax'            => '\'0.0\'',
168
-                     'timeefficiency' => 'null',
169
-                     'date'           => '\'1970-01-01 00:00:01\'',
170
-                     'time'           => '\'1970-01-01 00:00:01\'',
171
-                     'until'          => '\'1970-01-01 00:00:01\''
172
-                 ] as $search => $replace) {
163
+                        'descr'          => '\'\'',
164
+                        'name'           => '\'\'',
165
+                        'balance'        => '\'0.0\'',
166
+                        'isk'            => '\'0.0\'',
167
+                        'tax'            => '\'0.0\'',
168
+                        'timeefficiency' => 'null',
169
+                        'date'           => '\'1970-01-01 00:00:01\'',
170
+                        'time'           => '\'1970-01-01 00:00:01\'',
171
+                        'until'          => '\'1970-01-01 00:00:01\''
172
+                    ] as $search => $replace) {
173 173
             if (false !== strpos($name, $search)) {
174 174
                 return $replace;
175 175
             }
Please login to merge, or discard this patch.
lib/Sql/Creator.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -238,18 +238,18 @@
 block discarded – undo
238 238
         }
239 239
         $name = strtolower($name);
240 240
         foreach ([
241
-                     'descr'          => 'TEXT NOT NULL',
242
-                     'name'           => 'CHAR(100) NOT NULL',
243
-                     'balance'        => 'DECIMAL(17, 2) NOT NULL',
244
-                     'isk'            => 'DECIMAL(17, 2) NOT NULL',
245
-                     'tax'            => 'DECIMAL(17, 2) NOT NULL',
246
-                     'timeefficiency' => 'TINYINT(3) UNSIGNED NOT NULL',
247
-                     'date'           => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
248
-                     'time'           => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
249
-                     'until'          => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
250
-                     'errorcode'      => 'SMALLINT(4) UNSIGNED NOT NULL',
251
-                     'level'          => 'SMALLINT(4) UNSIGNED NOT NULL'
252
-                 ] as $search => $replace) {
241
+                        'descr'          => 'TEXT NOT NULL',
242
+                        'name'           => 'CHAR(100) NOT NULL',
243
+                        'balance'        => 'DECIMAL(17, 2) NOT NULL',
244
+                        'isk'            => 'DECIMAL(17, 2) NOT NULL',
245
+                        'tax'            => 'DECIMAL(17, 2) NOT NULL',
246
+                        'timeefficiency' => 'TINYINT(3) UNSIGNED NOT NULL',
247
+                        'date'           => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
248
+                        'time'           => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
249
+                        'until'          => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
250
+                        'errorcode'      => 'SMALLINT(4) UNSIGNED NOT NULL',
251
+                        'level'          => 'SMALLINT(4) UNSIGNED NOT NULL'
252
+                    ] as $search => $replace) {
253 253
             if (false !== strpos($name, $search)) {
254 254
                 return $replace;
255 255
             }
Please login to merge, or discard this patch.
lib/EveApi/Char/AssetList.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -74,28 +74,28 @@  discard block
 block discarded – undo
74 74
         }
75 75
         $ownerID = $this->extractOwnerID($data->getEveApiArguments());
76 76
         $this->getYem()
77
-             ->triggerLogEvent(
78
-                 'Yapeal.Log.log',
79
-                 Logger::DEBUG,
80
-                 $this->getReceivedEventMessage($data, $eventName, __CLASS__)
81
-             );
77
+                ->triggerLogEvent(
78
+                    'Yapeal.Log.log',
79
+                    Logger::DEBUG,
80
+                    $this->getReceivedEventMessage($data, $eventName, __CLASS__)
81
+                );
82 82
         $this->getPdo()
83
-             ->beginTransaction();
83
+                ->beginTransaction();
84 84
         try {
85 85
             $this->preserveToAssetList($xml, $ownerID);
86 86
             $this->getPdo()
87
-                 ->commit();
87
+                    ->commit();
88 88
         } catch (PDOException $exc) {
89 89
             $mess = 'Failed to upsert data of';
90 90
             $this->getYem()
91
-                 ->triggerLogEvent(
92
-                     'Yapeal.Log.log',
93
-                     Logger::WARNING,
94
-                     $this->createEveApiMessage($mess, $data),
95
-                     ['exception' => $exc]
96
-                 );
91
+                    ->triggerLogEvent(
92
+                        'Yapeal.Log.log',
93
+                        Logger::WARNING,
94
+                        $this->createEveApiMessage($mess, $data),
95
+                        ['exception' => $exc]
96
+                    );
97 97
             $this->getPdo()
98
-                 ->rollBack();
98
+                    ->rollBack();
99 99
             return $event;
100 100
         }
101 101
         return $event->setHandledSufficiently();
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
         $sql = $this->getCsq()
114 114
                     ->getDeleteFromTableWithOwnerID($tableName, $ownerID);
115 115
         $this->getYem()
116
-             ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $sql);
116
+                ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $sql);
117 117
         $this->getPdo()
118
-             ->exec($sql);
118
+                ->exec($sql);
119 119
         $columnDefaults = [
120 120
             'flag' => '0',
121 121
             'itemID' => null,
Please login to merge, or discard this patch.
lib/Sql/PreserverTrait.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,18 +86,18 @@
 block discarded – undo
86 86
         $rowCount = count($columns) / count($columnNames);
87 87
         $mess = sprintf('Have %1$s row(s) to upsert into %2$s table', $rowCount, $tableName);
88 88
         $this->getYem()
89
-             ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
89
+                ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
90 90
         $sql = $this->getCsq()
91 91
                     ->getUpsert($tableName, $columnNames, $rowCount);
92 92
         $mess = preg_replace('/(,\(\?(?:,\?)*\))+/', ',...', $sql);
93 93
         $this->getYem()
94
-             ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
94
+                ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
95 95
         $mess = substr(implode(',', $columns), 0, 255);
96 96
         $this->getYem()
97
-             ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $mess);
97
+                ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $mess);
98 98
         $this->getPdo()
99
-             ->prepare($sql)
100
-             ->execute($columns);
99
+                ->prepare($sql)
100
+                ->execute($columns);
101 101
         return $this;
102 102
     }
103 103
     /**
Please login to merge, or discard this patch.
lib/Xsd/Validator.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
         $this->setYem($yem);
71 71
         $data = $event->getData();
72 72
         $this->getYem()
73
-             ->triggerLogEvent(
74
-                 'Yapeal.Log.log',
75
-                 Logger::DEBUG,
76
-                 $this->getReceivedEventMessage($data, $eventName, __CLASS__)
77
-             );
73
+                ->triggerLogEvent(
74
+                    'Yapeal.Log.log',
75
+                    Logger::DEBUG,
76
+                    $this->getReceivedEventMessage($data, $eventName, __CLASS__)
77
+                );
78 78
         $fileName = $this->findEveApiFile($data->getEveApiSectionName(), $data->getEveApiName(), 'xsd');
79 79
         if ('' === $fileName) {
80 80
             return $event;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             if (0 !== count($errors)) {
92 92
                 foreach ($errors as $error) {
93 93
                     $this->getYem()
94
-                         ->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $error->message);
94
+                            ->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $error->message);
95 95
                 }
96 96
             }
97 97
             libxml_clear_errors();
Please login to merge, or discard this patch.
lib/EveApi/Corp/AssetList.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -74,28 +74,28 @@  discard block
 block discarded – undo
74 74
         }
75 75
         $ownerID = $this->extractOwnerID($data->getEveApiArguments());
76 76
         $this->getYem()
77
-             ->triggerLogEvent(
78
-                 'Yapeal.Log.log',
79
-                 Logger::DEBUG,
80
-                 $this->getReceivedEventMessage($data, $eventName, __CLASS__)
81
-             );
77
+                ->triggerLogEvent(
78
+                    'Yapeal.Log.log',
79
+                    Logger::DEBUG,
80
+                    $this->getReceivedEventMessage($data, $eventName, __CLASS__)
81
+                );
82 82
         $this->getPdo()
83
-             ->beginTransaction();
83
+                ->beginTransaction();
84 84
         try {
85 85
             $this->preserveToAssetList($xml, $ownerID);
86 86
             $this->getPdo()
87
-                 ->commit();
87
+                    ->commit();
88 88
         } catch (PDOException $exc) {
89 89
             $mess = 'Failed to upsert data of';
90 90
             $this->getYem()
91
-                 ->triggerLogEvent(
92
-                     'Yapeal.Log.log',
93
-                     Logger::WARNING,
94
-                     $this->createEveApiMessage($mess, $data),
95
-                     ['exception' => $exc]
96
-                 );
91
+                    ->triggerLogEvent(
92
+                        'Yapeal.Log.log',
93
+                        Logger::WARNING,
94
+                        $this->createEveApiMessage($mess, $data),
95
+                        ['exception' => $exc]
96
+                    );
97 97
             $this->getPdo()
98
-                 ->rollBack();
98
+                    ->rollBack();
99 99
             return $event;
100 100
         }
101 101
         return $event->setHandledSufficiently();
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
         $sql = $this->getCsq()
114 114
                     ->getDeleteFromTableWithOwnerID($tableName, $ownerID);
115 115
         $this->getYem()
116
-             ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $sql);
116
+                ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $sql);
117 117
         $this->getPdo()
118
-             ->exec($sql);
118
+                ->exec($sql);
119 119
         $columnDefaults = [
120 120
             'flag' => '0',
121 121
             'itemID' => null,
Please login to merge, or discard this patch.