@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $table->char('uuid', 36); |
18 | 18 | /** @var \Illuminate\Support\Fluent $fluent */ |
19 | 19 | $fluent = $table->unique('uuid', 'uuid'); |
20 | - if (! is_null($comment)) { |
|
20 | + if (!is_null($comment)) { |
|
21 | 21 | $fluent->comment = $comment; |
22 | 22 | } |
23 | 23 | } |
@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | |
37 | 37 | public static function addChangedByUserFields(Blueprint $table, array $fields = ['created_by', 'updated_by', 'deleted_by'], string $relation = 'users', string $foreign = 'id', string $onDelete = self::REFERENTIAL_ACTION_CASCADE) |
38 | 38 | { |
39 | - if (! isset($fields[0]) || ! is_string($fields[0])) { |
|
39 | + if (!isset($fields[0]) || !is_string($fields[0])) { |
|
40 | 40 | $fields[0] = 'created_by'; |
41 | 41 | } |
42 | - if (! isset($fields[1]) || ! is_string($fields[1])) { |
|
42 | + if (!isset($fields[1]) || !is_string($fields[1])) { |
|
43 | 43 | $fields[1] = 'updated_by'; |
44 | 44 | } |
45 | - if (! isset($fields[2]) || ! is_string($fields[2])) { |
|
45 | + if (!isset($fields[2]) || !is_string($fields[2])) { |
|
46 | 46 | $fields[2] = 'deleted_by'; |
47 | 47 | } |
48 | 48 | self::addCreatedByUser($table, $fields[0], $relation, $foreign, $onDelete); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('_val')) { |
|
3 | +if (!function_exists('_val')) { |
|
4 | 4 | /** |
5 | 5 | * @param mixed $value |
6 | 6 | * @param null|mixed $default |