Completed
Branch 4.0 (c710b5)
by Serhii
02:04
created
src/Detector.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@
 block discarded – undo
78 78
         var_dump($this->resultObject);
79 79
     }
80 80
 
81
+    /**
82
+     * @param string $type
83
+     */
81 84
     private function detect($config, $type)
82 85
     {
83 86
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use EndorphinStudio\Detector\Data\Result;
13 13
 use EndorphinStudio\Detector\Exception\StorageException;
14 14
 use EndorphinStudio\Detector\Storage\StorageInterface;
15
-use Twig\Parser;
16 15
 
17 16
 class Detector
18 17
 {
Please login to merge, or discard this patch.
src/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         if (preg_match($version, $uaString)) {
19 19
             preg_match($version, $uaString, $v);
20 20
             $version = $v[0];
21
-            $version = preg_replace('/' . $phrase . '/', '', $version);
21
+            $version = preg_replace('/'.$phrase.'/', '', $version);
22 22
             $version = str_replace(';', '', $version);
23 23
             $version = str_replace(' ', '', $version);
24 24
             $version = str_replace('/', '', $version);
Please login to merge, or discard this patch.
src/Storage/FileStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@
 block discarded – undo
18 18
 
19 19
     protected function getFileNames(string $directory = 'default'): array
20 20
     {
21
-        if($directory === 'default') {
21
+        if ($directory === 'default') {
22 22
             $directoryIterator = new \DirectoryIterator($this->dataDirectory);
23 23
         } else {
24 24
             $directoryIterator = new \DirectoryIterator($directory);
25 25
         }
26 26
         $files = new Set();
27 27
         foreach ($directoryIterator as $file) {
28
-            if($file->isDir() && !$file->isDot()) {
28
+            if ($file->isDir() && !$file->isDot()) {
29 29
                 $dirFiles = $this->getFileNames($file->getRealPath());
30 30
                 $files->add($dirFiles);
31 31
             }
32 32
 
33
-            if($file->isFile() && !$file->isLink() && $file->isReadable()) {
33
+            if ($file->isFile() && !$file->isLink() && $file->isReadable()) {
34 34
                 $files->add($file->getRealPath());
35 35
             }
36 36
         }
Please login to merge, or discard this patch.