Passed
Push — master ( aa176a...182801 )
by Petr
03:29
created
php-src/Storage/Database/PDO/Oracle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $connection->setAttribute(PDO::ATTR_PERSISTENT, true);
38 38
         }
39 39
 
40
-        foreach ($this->attributes as $key => $value){
40
+        foreach ($this->attributes as $key => $value) {
41 41
             $connection->setAttribute($key, $value);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
php-src/Storage/Database/PDO/SQLite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $connection->setAttribute(PDO::ATTR_PERSISTENT, true);
38 38
         }
39 39
 
40
-        foreach ($this->attributes as $key => $value){
40
+        foreach ($this->attributes as $key => $value) {
41 41
             $connection->setAttribute($key, $value);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
php-src/Storage/Database/PDO/MSSQL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $connection->setAttribute(PDO::ATTR_PERSISTENT, true);
38 38
         }
39 39
 
40
-        foreach ($this->attributes as $key => $value){
40
+        foreach ($this->attributes as $key => $value) {
41 41
             $connection->setAttribute($key, $value);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
php-src/Storage/Database/PDO/MySQL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $connection->setAttribute(PDO::ATTR_PERSISTENT, true);
38 38
         }
39 39
 
40
-        foreach ($this->attributes as $key => $value){
40
+        foreach ($this->attributes as $key => $value) {
41 41
             $connection->setAttribute($key, $value);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
php-src/Mappers/Shared/TFinder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@
 block discarded – undo
42 42
         // through relations
43 43
         foreach ($toCompare as $relationKey => $compareValue) {
44 44
             foreach ($this->records as $positionKey => $knownRecord) {
45
-                if ( !isset($toProcess[$positionKey]) ) { // not twice
45
+                if (!isset($toProcess[$positionKey])) { // not twice
46 46
                     continue;
47 47
                 }
48
-                if ( !$knownRecord->offsetExists($relationKey) ) { // unknown relation key in record is not allowed into compare
48
+                if (!$knownRecord->offsetExists($relationKey)) { // unknown relation key in record is not allowed into compare
49 49
                     unset($toProcess[$positionKey]);
50 50
                     continue;
51 51
                 }
52
-                if ( strval($knownRecord->offsetGet($relationKey)) != strval($compareValue) ) {
52
+                if (strval($knownRecord->offsetGet($relationKey)) != strval($compareValue)) {
53 53
                     unset($toProcess[$positionKey]);
54 54
                     continue;
55 55
                 }
Please login to merge, or discard this patch.
php-src/Mappers/Shared/TStore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         foreach ($this->getPrimaryKeys() as $key) {
76 76
             $toComplete[] = $record->offsetGet($key);
77 77
         }
78
-        return (count(array_filter($toComplete))) ? implode('_', $toComplete) : null ;
78
+        return (count(array_filter($toComplete))) ? implode('_', $toComplete) : null;
79 79
     }
80 80
 
81 81
     /**
Please login to merge, or discard this patch.
php-src/Storage/Shared/FormatFiles/Ini.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,17 +56,17 @@
 block discarded – undo
56 56
                     if (is_array($sval)) {
57 57
                         foreach ($sval as $_skey => $_sval) {
58 58
                             if (is_numeric($_skey)) {
59
-                                $data[] = $skey.'[] = '.(is_numeric($_sval) ? $_sval : (ctype_upper($_sval) ? $_sval : '"'.$_sval.'"'));
59
+                                $data[] = $skey . '[] = ' . (is_numeric($_sval) ? $_sval : (ctype_upper($_sval) ? $_sval : '"' . $_sval . '"'));
60 60
                             } else {
61
-                                $data[] = $skey.'['.$_skey.'] = '.(is_numeric($_sval) ? $_sval : (ctype_upper($_sval) ? $_sval : '"'.$_sval.'"'));
61
+                                $data[] = $skey . '[' . $_skey . '] = ' . (is_numeric($_sval) ? $_sval : (ctype_upper($_sval) ? $_sval : '"' . $_sval . '"'));
62 62
                             }
63 63
                         }
64 64
                     } else {
65
-                        $data[] = $skey.' = '.(is_numeric($sval) ? $sval : (ctype_upper($sval) ? $sval : '"'.$sval.'"'));
65
+                        $data[] = $skey . ' = ' . (is_numeric($sval) ? $sval : (ctype_upper($sval) ? $sval : '"' . $sval . '"'));
66 66
                     }
67 67
                 }
68 68
             } else {
69
-                $data[] = $key.' = '.(is_numeric($val) ? $val : (ctype_upper($val) ? $val : '"'.$val.'"'));
69
+                $data[] = $key . ' = ' . (is_numeric($val) ? $val : (ctype_upper($val) ? $val : '"' . $val . '"'));
70 70
             }
71 71
             // empty line
72 72
             $data[] = null;
Please login to merge, or discard this patch.
php-src/Mappers/Shared/TWriteFileTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             $entry = $record->getEntry($primaryKey);
51 51
             if (in_array($entry->getType(), [IEntryType::TYPE_INTEGER, IEntryType::TYPE_FLOAT])) {
52 52
                 if (empty($entry->getData())) {
53
-                    $data = empty($records) ? 1 : intval(max(array_column($records, $primaryKey))) + 1 ;
53
+                    $data = empty($records) ? 1 : intval(max(array_column($records, $primaryKey))) + 1;
54 54
                     $entry->setData($data);
55 55
                 }
56 56
             }
Please login to merge, or discard this patch.
php-src/Storage/Database/Odbc/AOdbc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $this->connect();
52 52
 
53
-        list($updQuery, $binds, ) = $this->bindFromNamedToQuestions($query, $params);
53
+        list($updQuery, $binds,) = $this->bindFromNamedToQuestions($query, $params);
54 54
         $statement = odbc_prepare($this->getConnection(), $updQuery); // @phpstan-ignore-line
55 55
 
56 56
         if ((false !== $statement) && odbc_execute($statement, $binds)) { // @phpstan-ignore-line
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             }
62 62
 
63 63
             $numFields = odbc_num_fields($statement);
64
-            for ($i=1; $i<=$numFields; $i++) {
64
+            for ($i = 1; $i <= $numFields; $i++) {
65 65
                 // odbc starts its indexes at 1 but since I am
66 66
                 // trying to emulate the functionality of *_fetch_array
67 67
                 // for other dbs (ie mysql) I'm going to decrement my
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         $this->connect();
92 92
 
93
-        list($updQuery, $binds, ) = $this->bindFromNamedToQuestions($query, $params);
93
+        list($updQuery, $binds,) = $this->bindFromNamedToQuestions($query, $params);
94 94
         $statement = odbc_prepare($this->getConnection(), strval($updQuery));
95 95
         if (false !== $statement) {
96 96
             $result = odbc_execute($statement, $binds); // @phpstan-ignore-line
Please login to merge, or discard this patch.