Completed
Pull Request — develop (#1249)
by
unknown
01:07 queued 37s
created
src/SWP/Bundle/CoreBundle/Util/SwpLogger.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
 class SwpLogger
6 6
 {
7 7
 
8
-    public static function log(string $message,bool $echo = false, string $fileName = 'swp.log')
8
+    public static function log(string $message, bool $echo = false, string $fileName = 'swp.log')
9 9
     {
10 10
         $trace = debug_backtrace()[1];
11
-        $message = '[' . date('Y-m-d H:i:s') . '][' . $trace['class'] . '::' . $trace['function'] . '] ' . $message . PHP_EOL;
11
+        $message = '['.date('Y-m-d H:i:s').']['.$trace['class'].'::'.$trace['function'].'] '.$message.PHP_EOL;
12 12
 
13 13
         if (!empty($fileName)) {
14
-            file_put_contents('/tmp/' . $fileName, $message, FILE_APPEND);
14
+            file_put_contents('/tmp/'.$fileName, $message, FILE_APPEND);
15 15
         }
16 16
         if ($echo) {
17 17
             echo $message;
Please login to merge, or discard this patch.
src/SWP/Bundle/FixturesBundle/DataFixtures/ORM/LoadArticlesData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
     {
226 226
         $articleDataProvider = $this->container->get(ArticleDataProvider::class);
227 227
 
228
-        echo "\n\n>>>>>>>>>>>>> Load Articles ENV: " . $env . "\n\n";
228
+        echo "\n\n>>>>>>>>>>>>> Load Articles ENV: ".$env."\n\n";
229 229
         if ('dev' === $env) {
230 230
             $data = $this->loadFixtures([
231 231
                     '@SWPFixturesBundle/Resources/fixtures/ORM/'.$env.'/package.yml',
Please login to merge, or discard this patch.
src/SWP/Bundle/FixturesBundle/DataFixtures/ORM/LoadTenantsData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function load(ObjectManager $manager): void
29 29
     {
30 30
         $env = $this->getEnvironment();
31
-        echo "\n\n>>>>>>>>>>>>> Load Tenants ENV: " . $env . "\n\n";
31
+        echo "\n\n>>>>>>>>>>>>> Load Tenants ENV: ".$env."\n\n";
32 32
 
33 33
         $this->loadFixtures(
34 34
             [
Please login to merge, or discard this patch.