Completed
Push — master ( aa5a73...5f3c84 )
by Ondřej
02:54
created
src/Ivory/Type/ITypeDictionaryUndefinedHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,5 +19,5 @@
 block discarded – undo
19 19
      * @param mixed $value
20 20
      * @return IType|null
21 21
      */
22
-    function handleUndefinedType(?int $oid, $schemaName, ?string $typeName, $value): ?IType;
22
+    function handleUndefinedType(?int $oid, $schemaName, ?string $typeName, $value) : ?IType;
23 23
 }
Please login to merge, or discard this patch.
src/Ivory/Type/Postgresql/DomainType.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 Ivory\Type\Postgresql;
5 5
 
Please login to merge, or discard this patch.
src/Ivory/Type/Postgresql/ArrayType.php 1 patch
Spacing   +3 added lines, -3 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 Ivory\Type\Postgresql;
5 5
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      * @param int $maxDim the maximal dimension discovered so far
255 255
      * @return string the PostgreSQL external representation of <tt>$val</tt>
256 256
      */
257
-    private function serializeValuePlain(?array $val, array &$dims = [], int $curDim = 0, int &$maxDim = -1): string
257
+    private function serializeValuePlain(? array $val, array &$dims = [], int $curDim = 0, int & $maxDim = -1) : string
258 258
     {
259 259
         if ($val === null) {
260 260
             return 'NULL';
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      * @param int $maxDim the maximal dimension discovered so far
305 305
      * @return string the PostgreSQL external representation of <tt>$val</tt>
306 306
      */
307
-    private function serializeValueStrict(?array $val, ?array &$bounds = [], int $curDim = 0, int &$maxDim = -1): string
307
+    private function serializeValueStrict(? array $val, ? array &$bounds = [], int $curDim = 0, int & $maxDim = -1) : string
308 308
     {
309 309
         if ($val === null) {
310 310
             return 'NULL';
Please login to merge, or discard this patch.
src/Ivory/Type/BaseType.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 Ivory\Type;
5 5
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $this->setName($schemaName, $name);
16 16
     }
17 17
 
18
-    protected function throwInvalidValue($val, ?\Exception $cause = null): void
18
+    protected function throwInvalidValue($val, ?\Exception $cause = null) : void
19 19
     {
20 20
         $message = "Value '$val' is not valid for type {$this->schemaName}.{$this->name}";
21 21
         throw new \InvalidArgumentException($message, 0, $cause);
Please login to merge, or discard this patch.
src/Ivory/Type/Ivory/UndefinedType.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 Ivory\Type\Ivory;
5 5
 
Please login to merge, or discard this patch.
src/Ivory/Type/Ivory/RelationSerializer.php 1 patch
Spacing   +2 added lines, -3 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 Ivory\Type\Ivory;
5 5
 
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
             $type = $column->getType();
61 61
             if ($type === null) {
62 62
                 $colIdent = ($column->getName() !== null ?
63
-                    'column ' . $column->getName() :
64
-                    StringUtils::englishOrd($i+1) . ' column'
63
+                    'column ' . $column->getName() : StringUtils::englishOrd($i + 1) . ' column'
65 64
                 );
66 65
                 throw new \InvalidArgumentException("Invalid relation for serialization - $colIdent has unknown type");
67 66
             }
Please login to merge, or discard this patch.
src/Ivory/Exception/NotImplementedException.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 Ivory\Exception;
5 5
 
Please login to merge, or discard this patch.
src/Ivory/Connection/CopyControl.php 1 patch
Spacing   +6 added lines, -6 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 Ivory\Connection;
5 5
 
@@ -9,27 +9,27 @@  discard block
 block discarded – undo
9 9
 
10 10
 class CopyControl implements ICopyControl
11 11
 {
12
-    public function copyFromFile(string $file, string $table, ?array $columns = null, array $options = []): ICommandResult
12
+    public function copyFromFile(string $file, string $table, ? array $columns = null, array $options = []) : ICommandResult
13 13
     {
14 14
         throw new NotImplementedException();
15 15
     }
16 16
 
17
-    public function copyFromProgram(string $program, string $table, ?array $columns = null, array $options = []): ICommandResult
17
+    public function copyFromProgram(string $program, string $table, ? array $columns = null, array $options = []) : ICommandResult
18 18
     {
19 19
         throw new NotImplementedException();
20 20
     }
21 21
 
22
-    public function copyFromInput(string $table, ?array $columns = null, array $options = []): ICopyInResult
22
+    public function copyFromInput(string $table, ? array $columns = null, array $options = []) : ICopyInResult
23 23
     {
24 24
         throw new NotImplementedException();
25 25
     }
26 26
 
27
-    public function copyToFile(string $file, $tableOrRelationDefinition, ?array $columns = null, array $options = []): ICommandResult
27
+    public function copyToFile(string $file, $tableOrRelationDefinition, ? array $columns = null, array $options = []) : ICommandResult
28 28
     {
29 29
         throw new NotImplementedException();
30 30
     }
31 31
 
32
-    public function copyToProgram(string $program, $tableOrRelationDefinition, ?array $columns = null, array $options = []): ICommandResult
32
+    public function copyToProgram(string $program, $tableOrRelationDefinition, ? array $columns = null, array $options = []) : ICommandResult
33 33
     {
34 34
         throw new NotImplementedException();
35 35
     }
Please login to merge, or discard this patch.
src/Ivory/Connection/ConnectionParameters.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 Ivory\Connection;
5 5
 
Please login to merge, or discard this patch.