We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -29,12 +29,12 @@ discard block |
||
29 | 29 | |
30 | 30 | // only register the extra types in sql databases |
31 | 31 | if (self::isSqlConnection()) { |
32 | - if (! method_exists($connection, 'getDoctrineSchemaManager')) { |
|
32 | + if (!method_exists($connection, 'getDoctrineSchemaManager')) { |
|
33 | 33 | return $connection; |
34 | 34 | } |
35 | 35 | $platform = $connection->getDoctrineSchemaManager()->getDatabasePlatform(); |
36 | 36 | foreach ($types as $type_key => $type_value) { |
37 | - if (! $platform->hasDoctrineTypeMappingFor($type_key)) { |
|
37 | + if (!$platform->hasDoctrineTypeMappingFor($type_key)) { |
|
38 | 38 | $platform->registerDoctrineTypeMapping($type_key, $type_value); |
39 | 39 | } |
40 | 40 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function getColumnType($columnName) |
66 | 66 | { |
67 | - if (! self::isSqlConnection()) { |
|
67 | + if (!self::isSqlConnection()) { |
|
68 | 68 | return 'text'; |
69 | 69 | } |
70 | 70 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public static function isColumnNullable($columnName) |
81 | 81 | { |
82 | - if (! self::isSqlConnection()) { |
|
82 | + if (!self::isSqlConnection()) { |
|
83 | 83 | return true; |
84 | 84 | } |
85 | 85 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public static function dbColumnHasDefault($columnName) |
96 | 96 | { |
97 | - if (! self::isSqlConnection()) { |
|
97 | + if (!self::isSqlConnection()) { |
|
98 | 98 | return false; |
99 | 99 | } |
100 | 100 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public static function getDbColumnDefault($columnName) |
111 | 111 | { |
112 | - if (! self::isSqlConnection()) { |
|
112 | + if (!self::isSqlConnection()) { |
|
113 | 113 | return false; |
114 | 114 | } |
115 | 115 |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | { |
15 | 15 | $this->getDbColumnTypes(); |
16 | 16 | |
17 | - array_map(function ($field) use ($setFields, $setColumns) { |
|
18 | - if ($setFields && ! isset($this->getCleanStateFields()[$field])) { |
|
17 | + array_map(function($field) use ($setFields, $setColumns) { |
|
18 | + if ($setFields && !isset($this->getCleanStateFields()[$field])) { |
|
19 | 19 | $this->addField([ |
20 | 20 | 'name' => $field, |
21 | 21 | 'label' => $this->makeLabel($field), |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | ]); |
29 | 29 | } |
30 | 30 | |
31 | - if ($setColumns && ! in_array($field, $this->model->getHidden()) && ! isset($this->columns()[$field])) { |
|
31 | + if ($setColumns && !in_array($field, $this->model->getHidden()) && !isset($this->columns()[$field])) { |
|
32 | 32 | $this->addColumn([ |
33 | 33 | 'name' => $field, |
34 | 34 | 'label' => $this->makeLabel($field), |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $dbColumnTypes = []; |
52 | 52 | |
53 | - if (! $this->driverIsSql()) { |
|
53 | + if (!$this->driverIsSql()) { |
|
54 | 54 | return $dbColumnTypes; |
55 | 55 | } |
56 | 56 | $dbColumns = $this->getDbTableColumns(); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $dbColumnTypes = $this->getDbColumnTypes(); |
117 | 117 | |
118 | - if (! isset($dbColumnTypes[$fieldName])) { |
|
118 | + if (!isset($dbColumnTypes[$fieldName])) { |
|
119 | 119 | return 'text'; |
120 | 120 | } |
121 | 121 | |
@@ -212,12 +212,12 @@ discard block |
||
212 | 212 | { |
213 | 213 | $fillable = $this->model->getFillable(); |
214 | 214 | |
215 | - if (! $this->driverIsSql()) { |
|
215 | + if (!$this->driverIsSql()) { |
|
216 | 216 | $columns = $fillable; |
217 | 217 | } else { |
218 | 218 | // Automatically-set columns should be both in the database, and in the $fillable variable on the Eloquent Model |
219 | 219 | $columns = $this->model::getDbTableSchema()->getColumnsNames(); |
220 | - if (! empty($fillable)) { |
|
220 | + if (!empty($fillable)) { |
|
221 | 221 | $columns = array_intersect($columns, $fillable); |
222 | 222 | } |
223 | 223 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | private static function generateDatabaseSchema(string $connection, string $table) |
34 | 34 | { |
35 | - if (! isset(self::$schema[$connection]) || ! isset(self::$schema[$connection][$table])) { |
|
35 | + if (!isset(self::$schema[$connection]) || !isset(self::$schema[$connection][$table])) { |
|
36 | 36 | self::$schema[$connection] = self::mapTables($connection); |
37 | 37 | } |
38 | 38 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | private static function mapTables(string $connection) |
47 | 47 | { |
48 | - return LazyCollection::make(self::getSchemaManager($connection)->getTables())->mapWithKeys(function ($table, $key) use ($connection) { |
|
48 | + return LazyCollection::make(self::getSchemaManager($connection)->getTables())->mapWithKeys(function($table, $key) use ($connection) { |
|
49 | 49 | $tableName = is_array($table) ? $table['name'] : $table->getName(); |
50 | 50 | if (is_array($table)) { |
51 | 51 | $columns = self::getSchemaManager($connection)->getColumns($tableName); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | public function getNotnull() |
24 | 24 | { |
25 | - return ! $this->column['nullable']; |
|
25 | + return !$this->column['nullable']; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function getDefault() |