Completed
Push — master ( e502a6...b659c5 )
by Michael
08:23
created
lib/Configuration/SqlWiring.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function wire(ContainerInterface $dic)
55 55
     {
56 56
         if (empty($dic['Yapeal.Sql.CommonQueries'])) {
57
-            $dic['Yapeal.Sql.CommonQueries'] = function ($dic) {
57
+            $dic['Yapeal.Sql.CommonQueries'] = function($dic) {
58 58
                 /**
59 59
                  * @var CommonSqlQueries $csq
60 60
                  */
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         if (empty($dic['Yapeal.Sql.Connection'])) {
79 79
             $replacements = $this->getSqlSubs($dic);
80
-            $dic['Yapeal.Sql.Connection'] = function () use ($dic, $replacements) {
80
+            $dic['Yapeal.Sql.Connection'] = function() use ($dic, $replacements) {
81 81
                 $dsn = $replacements['{dsn}'];
82 82
                 $dsn = str_replace(array_keys($replacements), array_values($replacements), $dsn);
83 83
                 /**
@@ -103,15 +103,15 @@  discard block
 block discarded – undo
103 103
     private function wireCreator(ContainerInterface $dic)
104 104
     {
105 105
         if (empty($dic['Yapeal.Sql.Creator'])) {
106
-            $dic['Yapeal.Sql.Creator'] = function () use ($dic) {
106
+            $dic['Yapeal.Sql.Creator'] = function() use ($dic) {
107 107
                 $loader = new \Twig_Loader_Filesystem($dic['Yapeal.Sql.dir']);
108 108
                 $twig = new \Twig_Environment($loader,
109 109
                     ['debug' => true, 'strict_variables' => true, 'autoescape' => false]);
110
-                $filter = new \Twig_SimpleFilter('ucFirst', function ($value) {
110
+                $filter = new \Twig_SimpleFilter('ucFirst', function($value) {
111 111
                     return ucfirst($value);
112 112
                 });
113 113
                 $twig->addFilter($filter);
114
-                $filter = new \Twig_SimpleFilter('lcFirst', function ($value) {
114
+                $filter = new \Twig_SimpleFilter('lcFirst', function($value) {
115 115
                     return lcfirst($value);
116 116
                 });
117 117
                 $twig->addFilter($filter);
Please login to merge, or discard this patch.
lib/Configuration/EventWiring.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,17 +49,17 @@
 block discarded – undo
49 49
     public function wire(ContainerInterface $dic)
50 50
     {
51 51
         if (empty($dic['Yapeal.Event.EveApiEvent'])) {
52
-            $dic['Yapeal.Event.EveApi'] = $dic->factory(function ($dic) {
52
+            $dic['Yapeal.Event.EveApi'] = $dic->factory(function($dic) {
53 53
                 return new $dic['Yapeal.Event.Factories.eveApi']();
54 54
             });
55 55
         }
56 56
         if (empty($dic['Yapeal.Event.LogEvent'])) {
57
-            $dic['Yapeal.Event.LogEvent'] = $dic->factory(function ($dic) {
57
+            $dic['Yapeal.Event.LogEvent'] = $dic->factory(function($dic) {
58 58
                 return new $dic['Yapeal.Event.Factories.log'];
59 59
             });
60 60
         }
61 61
         if (empty($dic['Yapeal.Event.Mediator'])) {
62
-            $dic['Yapeal.Event.Mediator'] = function ($dic) {
62
+            $dic['Yapeal.Event.Mediator'] = function($dic) {
63 63
                 return new $dic['Yapeal.Event.Handlers.mediator']($dic);
64 64
             };
65 65
         }
Please login to merge, or discard this patch.
lib/Cli/Schema/SchemaTimestamp.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
     public function execute(InputInterface $input, OutputInterface $output): int
74 74
     {
75 75
         list($mSec, $sec) = explode(' ', microtime());
76
-        $output->writeln(gmdate('YmdHis', (int)$sec) . substr($mSec, 1, 4));
76
+        $output->writeln(gmdate('YmdHis', (int)$sec).substr($mSec, 1, 4));
77 77
         return 0;
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
lib/Cli/Network/NetworkCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             ->setEveApiArguments($posts);
137 137
         if ($output::VERBOSITY_QUIET !== $output->getVerbosity()) {
138 138
             $mess = sprintf('<info>Starting %1$s of', $this->getName());
139
-            $mess = $this->createEveApiMessage($mess, $data) . '</info>';
139
+            $mess = $this->createEveApiMessage($mess, $data).'</info>';
140 140
             $this->getYem()
141 141
                 ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, strip_tags($mess));
142 142
             $output->writeln($mess);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         if (false === $data->getEveApiXml()) {
148 148
             if ($output::VERBOSITY_QUIET !== $output->getVerbosity()) {
149 149
                 $mess = '<error>Could NOT retrieve Eve Api data of';
150
-                $mess = $this->createEveApiMessage($mess, $data) . '</error>';
150
+                $mess = $this->createEveApiMessage($mess, $data).'</error>';
151 151
                 $this->getYem()
152 152
                     ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, strip_tags($mess));
153 153
                 $output->writeln($mess);
Please login to merge, or discard this patch.
lib/FileSystem/SafeFileHandlingTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         if (false === $handle) {
96 96
             return false;
97 97
         }
98
-        $tmpFile = sprintf('%1$s/%2$s.tmp', $path, hash('sha1', $baseFile . random_bytes(8)));
98
+        $tmpFile = sprintf('%1$s/%2$s.tmp', $path, hash('sha1', $baseFile.random_bytes(8)));
99 99
         if (false === $this->safeDataWrite($tmpFile, $data)) {
100 100
             $this->releaseHandle($handle);
101 101
             return false;
Please login to merge, or discard this patch.
lib/Cli/Yapeal/YapealSetup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $dic = $this->getDic();
165 165
             /** @noinspection PhpParamsInspection */
166 166
             if (array_key_exists('Yapeal.vendorParentDir', $dic)) {
167
-                $appConfigFile = $dic['Yapeal.vendorParentDir'] . 'config/yapeal.yaml';
167
+                $appConfigFile = $dic['Yapeal.vendorParentDir'].'config/yapeal.yaml';
168 168
                 $this->configFile = is_readable($appConfigFile) && is_file($appConfigFile);
169 169
             }
170 170
         }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                 $this->schema = false;
198 198
             }
199 199
             $result = array_values($result->fetchAll(\PDO::FETCH_COLUMN));
200
-            $schemaName = $dic['Yapeal.Sql.Platforms.' . $dic['Yapeal.Sql.platform'] . '.schema'];
200
+            $schemaName = $dic['Yapeal.Sql.Platforms.'.$dic['Yapeal.Sql.platform'].'.schema'];
201 201
             if (!in_array($schemaName, $result, false)) {
202 202
                 $this->schema = false;
203 203
             }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
     private function yamlMenu(InputInterface $input, OutputInterface $output)
264 264
     {
265 265
         if ($this->hasConfigFile()) {
266
-            $ycf = new YamlConfigFile($this->getDic()['Yapeal.vendorParentDir'] . 'config');
266
+            $ycf = new YamlConfigFile($this->getDic()['Yapeal.vendorParentDir'].'config');
267 267
             $ycf->read();
268 268
             $this->yamlFile = $ycf->getSettings();
269 269
         }
Please login to merge, or discard this patch.
lib/Sql/SqlSubsTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $lines = explode("\n", $sql);
72 72
         // Filter out non-sql lines like comments and blank lines.
73 73
         $lines = array_filter($lines,
74
-            function ($line) {
74
+            function($line) {
75 75
                 $line = trim($line);
76 76
                 $nonSql = '' === $line
77 77
                     || 0 === strpos($line, '--')
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
     protected function getSqlSubs(ContainerInterface $dic)
92 92
     {
93 93
         $keys = $dic->keys();
94
-        $platform = '.' . $dic['Yapeal.Sql.platform'];
94
+        $platform = '.'.$dic['Yapeal.Sql.platform'];
95 95
         /**
96 96
          * @var array $filteredKeys
97 97
          */
98 98
         $filteredKeys = array_filter($keys,
99
-            function ($key) use ($platform) {
99
+            function($key) use ($platform) {
100 100
                 if (0 !== strpos($key, 'Yapeal.Sql.')) {
101 101
                     return false;
102 102
                 }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             });
108 108
         $replacements = [];
109 109
         foreach ($filteredKeys as $key) {
110
-            $subName = '{' . substr($key, strrpos($key, '.') + 1) . '}';
110
+            $subName = '{'.substr($key, strrpos($key, '.') + 1).'}';
111 111
             $replacements[$subName] = $dic[$key];
112 112
         }
113 113
         return $replacements;
Please login to merge, or discard this patch.
lib/Container/ContainerSearchTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function findKeysByPrefix(string $prefix): array
54 54
     {
55
-        $callback = function (string $key) use ($prefix) {
55
+        $callback = function(string $key) use ($prefix) {
56 56
             return 0 === strpos($key, $prefix);
57 57
         };
58 58
         return array_filter($this->getDic()->keys(), $callback);
Please login to merge, or discard this patch.
lib/Xml/EveApiXmlData.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public function getEveApiArgument(string $name): string
74 74
     {
75 75
         if (!array_key_exists($name, $this->eveApiArguments)) {
76
-            $mess = 'Unknown argument ' . $name;
76
+            $mess = 'Unknown argument '.$name;
77 77
             throw new \DomainException($mess);
78 78
         }
79 79
         return $this->eveApiArguments[$name];
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function getHash(): string
134 134
     {
135
-        $hash = $this->getEveApiName() . $this->getEveApiSectionName();
135
+        $hash = $this->getEveApiName().$this->getEveApiSectionName();
136 136
         $arguments = $this->getEveApiArguments();
137 137
         unset($arguments['mask'], $arguments['rowCount']);
138 138
         ksort($arguments);
139 139
         foreach ($arguments as $key => $value) {
140
-            $hash .= $key . $value;
140
+            $hash .= $key.$value;
141 141
         }
142 142
         return hash('md5', $hash);
143 143
     }
Please login to merge, or discard this patch.