Passed
Push — master ( 5a1f0b...37476b )
by Delete
02:47
created
src/Parser/Sqlite/Parser.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     }
72 72
 
73 73
     /**
74
-     * @return mixed
74
+     * @return SourceInterface
75 75
      * @throws InvalidArgumentException
76 76
      * @throws UnexpectedValueException
77 77
      */
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     }
129 129
 
130 130
     /**
131
-     * @param $directory
131
+     * @param string $directory
132 132
      * @param bool $create
133 133
      *
134 134
      * @throws ParserConfigurationException
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Source;
5 5
 
Please login to merge, or discard this patch.
src/Parser/Sqlite/Writer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@
 block discarded – undo
342 342
     /**
343 343
      * @param array $properties
344 344
      *
345
-     * @return int|null
345
+     * @return string|null
346 346
      * @throws ParserRuntimeException
347 347
      */
348 348
     protected function getParentPatternId(array &$properties)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Parser\Sqlite;
5 5
 
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
         asort($keywords);
465 465
 
466 466
         $keywordId = 1;
467
-        foreach($keywords as $keywordValue => $keywordCount) {
467
+        foreach ($keywords as $keywordValue => $keywordCount) {
468 468
             // Do NOT use "CREATE TABLE ... AS" here, because this would automatically add an extra id column,
469 469
             // which requires additional space
470 470
             $adapter->exec(
Please login to merge, or discard this patch.
src/Parser/Sqlite/Reader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Parser\Sqlite;
5 5
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     protected function getDatabasePath() : string
91 91
     {
92
-        $databasePath =  $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName();
92
+        $databasePath = $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName();
93 93
 
94 94
         if (!$this->isFileReadable($databasePath)) {
95 95
             if (!file_exists($databasePath)) {
Please login to merge, or discard this patch.
src/Formatter/PhpGetBrowser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Formatter;
5 5
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function __construct(bool $returnArray = false)
21 21
     {
22
-        $options = self::KEY_LOWER | self::VALUE_BOOLEAN_TO_STRING  | self::VALUE_REG_EXP_LOWER;
22
+        $options = self::KEY_LOWER | self::VALUE_BOOLEAN_TO_STRING | self::VALUE_REG_EXP_LOWER;
23 23
         if ($returnArray) {
24 24
             $options |= self::RETURN_ARRAY;
25 25
         } else {
Please login to merge, or discard this patch.
src/Formatter/Formatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Formatter;
5 5
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $newKey = $key;
94 94
         if (($this->getOptions() & self::KEY_LOWER) > 0) {
95 95
             $newKey = strtolower($key);
96
-        } elseif(($this->getOptions() & self::KEY_UPPER) > 0) {
96
+        } elseif (($this->getOptions() & self::KEY_UPPER) > 0) {
97 97
             $newKey = strtoupper($key);
98 98
         }
99 99
 
Please login to merge, or discard this patch.
src/Source/None.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Source;
5 5
 
Please login to merge, or discard this patch.
src/Source/FileAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Source;
5 5
 
Please login to merge, or discard this patch.
src/Source/SourceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Source;
5 5
 
Please login to merge, or discard this patch.
src/Source/SourceFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Crossjoin\Browscap\Source;
5 5
 
Please login to merge, or discard this patch.