Completed
Push — master ( 2b818c...df4948 )
by Michael
04:25
created
lib/Configuration/CacheWiring.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
     {
51 51
         if ('none' !== $dic['Yapeal.Cache.fileSystemMode']) {
52 52
             if (empty($dic['Yapeal.FileSystem.CachePreserver'])) {
53
-                $dic['Yapeal.FileSystem.CachePreserver'] = function () use ($dic) {
53
+                $dic['Yapeal.FileSystem.CachePreserver'] = function() use ($dic) {
54 54
                     return new $dic['Yapeal.Cache.Handlers.preserve']($dic['Yapeal.Cache.dir']);
55 55
                 };
56 56
             }
57 57
             if (empty($dic['Yapeal.FileSystem.CacheRetriever'])) {
58
-                $dic['Yapeal.FileSystem.CacheRetriever'] = function () use ($dic) {
58
+                $dic['Yapeal.FileSystem.CacheRetriever'] = function() use ($dic) {
59 59
                     return new $dic['Yapeal.Cache.Handlers.retrieve']($dic['Yapeal.Cache.dir']);
60 60
                 };
61 61
             }
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
@@ -50,20 +50,20 @@
 block discarded – undo
50 50
     {
51 51
         if (empty($dic['Yapeal.Event.EveApiEvent'])) {
52 52
             $dic['Yapeal.Event.EveApi'] = $dic->factory(
53
-                function ($dic) {
53
+                function($dic) {
54 54
                     return new $dic['Yapeal.Event.Factories.eveApi']();
55 55
                 }
56 56
             );
57 57
         }
58 58
         if (empty($dic['Yapeal.Event.LogEvent'])) {
59 59
             $dic['Yapeal.Event.LogEvent'] = $dic->factory(
60
-                function ($dic) {
60
+                function($dic) {
61 61
                     return new $dic['Yapeal.Event.Factories.log'];
62 62
                 }
63 63
             );
64 64
         }
65 65
         if (empty($dic['Yapeal.Event.Mediator'])) {
66
-            $dic['Yapeal.Event.Mediator'] = function ($dic) {
66
+            $dic['Yapeal.Event.Mediator'] = function($dic) {
67 67
                 return new $dic['Yapeal.Event.mediator']($dic);
68 68
             };
69 69
         }
Please login to merge, or discard this patch.
lib/Configuration/NetworkWiring.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public function wire(ContainerInterface $dic)
51 51
     {
52 52
         if (empty($dic['Yapeal.Network.Client'])) {
53
-            $dic['Yapeal.Network.Client'] = function ($dic) {
53
+            $dic['Yapeal.Network.Client'] = function($dic) {
54 54
                 $appComment = $dic['Yapeal.Network.appComment'];
55 55
                 $appName = $dic['Yapeal.Network.appName'];
56 56
                 $appVersion = $dic['Yapeal.Network.appVersion'];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                     'Keep-Alive' => $dic['Yapeal.Network.Headers.Keep-Alive']
87 87
                 ];
88 88
                 // Clean up any extra spaces and EOL chars from Yaml.
89
-                array_walk($headers, function (&$value) {
89
+                array_walk($headers, function(&$value) {
90 90
                     /** @noinspection ReferenceMismatchInspection */
91 91
                     return trim(str_replace(' ', '', $value));
92 92
                 });
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             };
105 105
         }
106 106
         if (empty($dic['Yapeal.Network.Retriever'])) {
107
-            $dic['Yapeal.Network.Retriever'] = function ($dic) {
107
+            $dic['Yapeal.Network.Retriever'] = function($dic) {
108 108
                 return new GuzzleNetworkRetriever($dic['Yapeal.Network.Client']);
109 109
             };
110 110
         }
Please login to merge, or discard this patch.
lib/Configuration/XsdWiring.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,19 +54,19 @@  discard block
 block discarded – undo
54 54
     {
55 55
         if (empty($dic['Yapeal.Xsd.Creator'])) {
56 56
             $dic['Yapeal.Xsd.Creator'] = $dic->factory(
57
-                function ($dic) {
57
+                function($dic) {
58 58
                     $loader = new Twig_Loader_Filesystem($dic['Yapeal.Xsd.dir']);
59 59
                     $twig = new Twig_Environment(
60 60
                         $loader, ['debug' => true, 'strict_variables' => true, 'autoescape' => false]
61 61
                     );
62 62
                     $filter = new Twig_SimpleFilter(
63
-                        'ucFirst', function ($value) {
63
+                        'ucFirst', function($value) {
64 64
                         return ucfirst($value);
65 65
                     }
66 66
                     );
67 67
                     $twig->addFilter($filter);
68 68
                     $filter = new Twig_SimpleFilter(
69
-                        'lcFirst', function ($value) {
69
+                        'lcFirst', function($value) {
70 70
                         return lcfirst($value);
71 71
                     }
72 72
                     );
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         }
85 85
         if (empty($dic['Yapeal.Xsd.Validator'])) {
86 86
             $dic['Yapeal.Xsd.Validator'] = $dic->factory(
87
-                function ($dic) {
87
+                function($dic) {
88 88
                     return new $dic['Yapeal.Xsd.validate']($dic['Yapeal.Xsd.dir']);
89 89
                 }
90 90
             );
Please login to merge, or discard this patch.
lib/Configuration/LogWiring.php 1 patch
Spacing   +2 added lines, -2 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.Log.Logger'])) {
52
-            $dic['Yapeal.Log.Logger'] = function () use ($dic) {
52
+            $dic['Yapeal.Log.Logger'] = function() use ($dic) {
53 53
                 $group = [];
54 54
                 $lineFormatter = new LineFormatter();
55 55
                 $lineFormatter->includeStacktraces();
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                     $group[] = $handler;
66 66
                 }
67 67
                 $handler = new $dic['Yapeal.Log.Handlers.stream'](
68
-                    $dic['Yapeal.Log.dir'] . $dic['Yapeal.Log.fileName'], 100
68
+                    $dic['Yapeal.Log.dir'].$dic['Yapeal.Log.fileName'], 100
69 69
                 );
70 70
                 $handler->setFormatter($lineFormatter);
71 71
                 $group[] = $handler;
Please login to merge, or discard this patch.
lib/Yapeal.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -77,25 +77,25 @@  discard block
 block discarded – undo
77 77
         $this->setYem($dic['Yapeal.Event.Mediator']);
78 78
         $mess = 'Let the magic begin!';
79 79
         $this->getYem()
80
-             ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
80
+                ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
81 81
         /**
82 82
          * @var CommonSqlQueries $csq
83 83
          */
84 84
         $csq = $dic['Yapeal.Sql.CommonQueries'];
85 85
         $sql = $csq->getActiveApis();
86 86
         $this->getYem()
87
-             ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $sql);
87
+                ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $sql);
88 88
         try {
89 89
             /**
90 90
              * @var PDO $pdo
91 91
              */
92 92
             $pdo = $dic['Yapeal.Sql.Connection'];
93 93
             $records = $pdo->query($sql)
94
-                           ->fetchAll(PDO::FETCH_ASSOC);
94
+                            ->fetchAll(PDO::FETCH_ASSOC);
95 95
         } catch (PDOException $exc) {
96 96
             $mess = 'Could not access utilEveApi table';
97 97
             $this->getYem()
98
-                 ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess, ['exception' => $exc]);
98
+                    ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess, ['exception' => $exc]);
99 99
             return 1;
100 100
         }
101 101
         // Always check APIKeyInfo.
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
              */
117 117
             $data = $dic['Yapeal.Xml.Data'];
118 118
             $data->setEveApiName($record['apiName'])
119
-                 ->setEveApiSectionName($record['sectionName'])
120
-                 ->setCacheInterval($record['interval']);
119
+                    ->setEveApiSectionName($record['sectionName'])
120
+                    ->setCacheInterval($record['interval']);
121 121
             $this->emitEvents($data, 'start');
122 122
         }
123 123
         return 0;
Please login to merge, or discard this patch.
lib/Console/Command/EveApiCreatorTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
     protected function saveToFile($fileName, $contents)
132 132
     {
133 133
         $fileName = $this->getFpn()
134
-                         ->normalizeFile($fileName);
134
+                            ->normalizeFile($fileName);
135 135
         return file_put_contents($fileName, $contents);
136 136
     }
137 137
     /**
Please login to merge, or discard this patch.
lib/Console/Command/EveApiCreator.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
          */
89 89
         $data = $this->getDic()['Yapeal.Xml.Data'];
90 90
         $data->setEveApiName($apiName)
91
-             ->setEveApiSectionName($sectionName)
92
-             ->setEveApiArguments($posts);
91
+                ->setEveApiSectionName($sectionName)
92
+                ->setEveApiArguments($posts);
93 93
         foreach (['retrieve', 'create', 'transform', 'validate', 'cache'] as $eventName) {
94 94
             if (false === $this->emitEvents($data, $eventName)) {
95 95
                 return 2;
@@ -115,13 +115,13 @@  discard block
 block discarded – undo
115 115
 
116 116
 EOF;
117 117
         $this->addArgument('section_name', InputArgument::REQUIRED, 'Name of Eve Api section to retrieve.')
118
-             ->addArgument('api_name', InputArgument::REQUIRED, 'Name of Eve Api to retrieve.')
119
-             ->addArgument('mask', InputArgument::REQUIRED, 'Bit mask for Eve Api.')
120
-             ->addArgument('post', InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
121
-                 'Optional list of additional POST parameter(s) to send to server.', [])
122
-             ->addOption('overwrite', null, InputOption::VALUE_NONE,
123
-                 'Causes command to overwrite any existing per Eve API files.')
124
-             ->setHelp($help);
118
+                ->addArgument('api_name', InputArgument::REQUIRED, 'Name of Eve Api to retrieve.')
119
+                ->addArgument('mask', InputArgument::REQUIRED, 'Bit mask for Eve Api.')
120
+                ->addArgument('post', InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
121
+                    'Optional list of additional POST parameter(s) to send to server.', [])
122
+                ->addOption('overwrite', null, InputOption::VALUE_NONE,
123
+                    'Causes command to overwrite any existing per Eve API files.')
124
+                ->setHelp($help);
125 125
     }
126 126
     /** @noinspection PhpMissingParentCallCommonInspection */
127 127
     /**
Please login to merge, or discard this patch.
lib/Console/Command/NetworkRetriever.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
92 92
 
93 93
 EOF;
94 94
         $this->addArgument('section_name', InputArgument::REQUIRED, 'Name of Eve Api section to retrieve.')
95
-             ->addArgument('api_name', InputArgument::REQUIRED, 'Name of Eve Api to retrieve.')
96
-             ->addArgument('post', InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
97
-                 'Optional list of additional POST parameter(s) to send to server.', [])
98
-             ->addOption('directory', 'd', InputOption::VALUE_REQUIRED, 'Directory that XML will be sent to.')
99
-             ->setHelp($help);
95
+                ->addArgument('api_name', InputArgument::REQUIRED, 'Name of Eve Api to retrieve.')
96
+                ->addArgument('post', InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
97
+                    'Optional list of additional POST parameter(s) to send to server.', [])
98
+                ->addOption('directory', 'd', InputOption::VALUE_REQUIRED, 'Directory that XML will be sent to.')
99
+                ->setHelp($help);
100 100
     }
101 101
     /** @noinspection PhpMissingParentCallCommonInspection */
102 102
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $this->setYem($dic['Yapeal.Event.Mediator']);
130 130
         $mess = 'Starting Network retrieve';
131 131
         $this->getYem()
132
-             ->triggerLogEvent('Yapeal.Log.log', Logger::ERROR, $mess);
132
+                ->triggerLogEvent('Yapeal.Log.log', Logger::ERROR, $mess);
133 133
         /**
134 134
          * Get new Data instance from factory.
135 135
          *
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
          */
138 138
         $data = $dic['Yapeal.Xml.Data'];
139 139
         $data->setEveApiName($apiName)
140
-             ->setEveApiSectionName($sectionName)
141
-             ->setEveApiArguments($posts);
140
+                ->setEveApiSectionName($sectionName)
141
+                ->setEveApiArguments($posts);
142 142
         foreach (['retrieve', 'cache'] as $eventName) {
143 143
             $this->emitEvents($data, $eventName);
144 144
         }
Please login to merge, or discard this patch.