Completed
Push — master ( 75748b...36048b )
by Michael
06:58
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/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.
lib/Event/EveApiEventEmitterTrait.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -91,35 +91,35 @@
 block discarded – undo
91 91
         $event = null;
92 92
         foreach ($eventNames as $eventName) {
93 93
             $this->getYem()
94
-                 ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $this->getEmittingEventMessage($data, $eventName));
94
+                    ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $this->getEmittingEventMessage($data, $eventName));
95 95
             $event = $this->getYem()
96
-                          ->triggerEveApiEvent($eventName, $data);
96
+                            ->triggerEveApiEvent($eventName, $data);
97 97
             $data = $event->getData();
98 98
             if ($event->hasBeenHandled()) {
99 99
                 $this->getYem()
100
-                     ->triggerLogEvent(
101
-                         'Yapeal.Log.log',
102
-                         Logger::INFO,
103
-                         $this->getWasHandledEventMessage($data, $eventName)
104
-                     );
100
+                        ->triggerLogEvent(
101
+                            'Yapeal.Log.log',
102
+                            Logger::INFO,
103
+                            $this->getWasHandledEventMessage($data, $eventName)
104
+                        );
105 105
                 break;
106 106
             }
107 107
             if ($event->isSufficientlyHandled()) {
108 108
                 $this->getYem()
109
-                     ->triggerLogEvent(
110
-                         'Yapeal.Log.log',
111
-                         Logger::INFO,
112
-                         $this->getSufficientlyHandledEventMessage($data, $eventName)
113
-                     );
109
+                        ->triggerLogEvent(
110
+                            'Yapeal.Log.log',
111
+                            Logger::INFO,
112
+                            $this->getSufficientlyHandledEventMessage($data, $eventName)
113
+                        );
114 114
             }
115 115
         }
116 116
         if (null === $event || !$event->isSufficientlyHandled()) {
117 117
             $this->getYem()
118
-                 ->triggerLogEvent(
119
-                     'Yapeal.Log.log',
120
-                     Logger::NOTICE,
121
-                     $this->getNonHandledEventMessage($data, $eventSuffix)
122
-                 );
118
+                    ->triggerLogEvent(
119
+                        'Yapeal.Log.log',
120
+                        Logger::NOTICE,
121
+                        $this->getNonHandledEventMessage($data, $eventSuffix)
122
+                    );
123 123
             return false;
124 124
         }
125 125
         return true;
Please login to merge, or discard this patch.