File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 99 * file that was distributed with this source code.
1010 */
1111
12- namespace Symfony \Bundle \MakerBundle ;
12+ namespace Symfony \Bundle \MakerBundle \ Maker ;
1313
1414use Symfony \Bundle \MakerBundle \Exception \RuntimeCommandException ;
1515
@@ -60,15 +60,15 @@ public static function validateBoolean(mixed $value): bool
6060 if (\in_array ($ value , ['true ' , 'false ' ])) {
6161 return 'true ' === $ value ;
6262 }
63- throw new RuntimeCommandException (sprintf ('Value %s is invalid for type boolean ' , $ value ));
63+ throw new RuntimeCommandException (\ sprintf ('Value %s is invalid for type boolean ' , $ value ));
6464 }
6565
6666 public static function validateFloat (mixed $ value ): float
6767 {
6868 if (is_numeric ($ value )) {
6969 return (float ) $ value ;
7070 }
71- throw new RuntimeCommandException (sprintf ('Value %s is invalid for type float ' , $ value ));
71+ throw new RuntimeCommandException (\ sprintf ('Value %s is invalid for type float ' , $ value ));
7272 }
7373
7474 public static function validateInt (mixed $ value ): int
@@ -81,6 +81,6 @@ public static function validateInt(mixed $value): int
8181 return $ val ;
8282 }
8383 }
84- throw new RuntimeCommandException (sprintf ('Value %s is invalid for type int ' , $ value ));
84+ throw new RuntimeCommandException (\ sprintf ('Value %s is invalid for type int ' , $ value ));
8585 }
8686}
Original file line number Diff line number Diff line change 1414use ApiPlatform \Metadata \ApiResource ;
1515use Doctrine \DBAL \Types \Type ;
1616use Symfony \Bundle \MakerBundle \ConsoleStyle ;
17- use Symfony \Bundle \MakerBundle \DefaultValueValidator ;
1817use Symfony \Bundle \MakerBundle \DependencyBuilder ;
1918use Symfony \Bundle \MakerBundle \Doctrine \DoctrineHelper ;
2019use Symfony \Bundle \MakerBundle \Doctrine \EntityClassGenerator ;
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public static function createFromObject(FieldMapping|array $data): self
8080 precision: $ data ->precision ,
8181 scale: $ data ->scale ,
8282 unique: $ data ->unique ?? false ,
83- defaultValue: $ data ->defaultValue ?? null
83+ defaultValue: $ data ->defaultValue ?? null ,
8484 enumType: $ data ->enumType ,
8585 );
8686 }
@@ -101,7 +101,7 @@ enumType: $data->enumType,
101101 precision: $ data ['precision ' ] ?? null ,
102102 scale: $ data ['scale ' ] ?? null ,
103103 unique: $ data ['unique ' ] ?? false ,
104- defaultValue: $ data ['defaultValue ' ] ?? null
104+ defaultValue: $ data ['defaultValue ' ] ?? null ,
105105 enumType: $ data ['enumType ' ] ?? null ,
106106 );
107107 }
You can’t perform that action at this time.
0 commit comments