Completed
Push — swp-2190-php8 ( af8197...aba9ed )
by
unknown
42s
created
src/SWP/Component/MultiTenancy/Resolver/TenantResolver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         $domainString = $result->secondLevelDomain()->toString();
89 89
         if (null !== $result->suffix()->toString()) {
90
-            $domainString = $domainString . '.' . $result->suffix()->toString();
90
+            $domainString = $domainString.'.'.$result->suffix()->toString();
91 91
         }
92 92
 
93 93
         return $domainString;
@@ -127,15 +127,15 @@  discard block
 block discarded – undo
127 127
      */
128 128
     private function getPublicSuffixList(): string
129 129
     {
130
-        return $this->cacheProvider->get('suffix_list', function (ItemInterface $item) {
131
-            $dir = __DIR__ . '/../';
130
+        return $this->cacheProvider->get('suffix_list', function(ItemInterface $item) {
131
+            $dir = __DIR__.'/../';
132 132
             $filesystem = new Filesystem();
133
-            if (!$filesystem->exists($dir . $this->suffixListFilename)) {
133
+            if (!$filesystem->exists($dir.$this->suffixListFilename)) {
134 134
                 throw new \LogicException(
135 135
                     'Public suffix list file not found. Run swp:public-suffix-list:get command'
136 136
                 );
137 137
             }
138
-            return file_get_contents($dir . $this->suffixListFilename);
138
+            return file_get_contents($dir.$this->suffixListFilename);
139 139
         });
140 140
     }
141 141
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Command/GetPublicSuffixListCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,18 +31,18 @@
 block discarded – undo
31 31
 
32 32
     public function execute(InputInterface $input, OutputInterface $output)
33 33
     {
34
-        $output->writeln('<info>Fetching data from </info> ' . $this->suffixListEndpoint);
34
+        $output->writeln('<info>Fetching data from </info> '.$this->suffixListEndpoint);
35 35
         $filesystem = new Filesystem();
36
-        $dir = $this->container->getParameter('kernel.project_dir') . '/src/SWP/Component/MultiTenancy/';
37
-        if ($filesystem->exists($dir . $this->suffixListFilename)) {
38
-            $filesystem->remove($dir . $this->suffixListFilename);
36
+        $dir = $this->container->getParameter('kernel.project_dir').'/src/SWP/Component/MultiTenancy/';
37
+        if ($filesystem->exists($dir.$this->suffixListFilename)) {
38
+            $filesystem->remove($dir.$this->suffixListFilename);
39 39
         }
40 40
         $filesystem->mkdir($dir);
41
-        $filesystem->touch($dir . $this->suffixListFilename);
41
+        $filesystem->touch($dir.$this->suffixListFilename);
42 42
         $data = file_get_contents($this->suffixListEndpoint);
43
-        $filesystem->dumpFile($dir . $this->suffixListFilename, $data);
43
+        $filesystem->dumpFile($dir.$this->suffixListFilename, $data);
44 44
 
45
-        $output->writeln('<info>Data saved into:</info> ' . $dir . $this->suffixListFilename);
45
+        $output->writeln('<info>Data saved into:</info> '.$dir.$this->suffixListFilename);
46 46
         return 0;
47 47
     }
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.