@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | * @return void |
| 35 | 35 | */ |
| 36 | 36 | public function configureCreateFields( |
| 37 | - ReflectionClass $class, |
|
| 38 | - FormMapper $formMapper |
|
| 37 | + ReflectionClass $class, |
|
| 38 | + FormMapper $formMapper |
|
| 39 | 39 | ): void { |
| 40 | 40 | $this->configureFields( |
| 41 | - $class, |
|
| 42 | - $formMapper, |
|
| 43 | - FormField::ACTION_CREATE |
|
| 41 | + $class, |
|
| 42 | + $formMapper, |
|
| 43 | + FormField::ACTION_CREATE |
|
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -53,13 +53,13 @@ discard block |
||
| 53 | 53 | * @return void |
| 54 | 54 | */ |
| 55 | 55 | public function configureEditFields( |
| 56 | - ReflectionClass $class, |
|
| 57 | - FormMapper $formMapper |
|
| 56 | + ReflectionClass $class, |
|
| 57 | + FormMapper $formMapper |
|
| 58 | 58 | ): void { |
| 59 | 59 | $this->configureFields( |
| 60 | - $class, |
|
| 61 | - $formMapper, |
|
| 62 | - FormField::ACTION_EDIT |
|
| 60 | + $class, |
|
| 61 | + $formMapper, |
|
| 62 | + FormField::ACTION_EDIT |
|
| 63 | 63 | ); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -73,9 +73,9 @@ discard block |
||
| 73 | 73 | * @return void |
| 74 | 74 | */ |
| 75 | 75 | private function configureFields( |
| 76 | - ReflectionClass $class, |
|
| 77 | - FormMapper $formMapper, |
|
| 78 | - string $action |
|
| 76 | + ReflectionClass $class, |
|
| 77 | + FormMapper $formMapper, |
|
| 78 | + string $action |
|
| 79 | 79 | ): void { |
| 80 | 80 | $propertiesWithPosition = []; |
| 81 | 81 | $propertiesWithoutPosition = []; |
@@ -94,30 +94,30 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | if (!isset($annotation->position)) { |
| 96 | 96 | $propertiesWithoutPosition[] = [ |
| 97 | - 'name' => $property->getName(), |
|
| 98 | - 'settings' => $annotation->getSettings(), |
|
| 97 | + 'name' => $property->getName(), |
|
| 98 | + 'settings' => $annotation->getSettings(), |
|
| 99 | 99 | ]; |
| 100 | 100 | |
| 101 | 101 | continue; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | if (array_key_exists( |
| 105 | - $annotation->position, |
|
| 106 | - $propertiesWithPosition |
|
| 105 | + $annotation->position, |
|
| 106 | + $propertiesWithPosition |
|
| 107 | 107 | )) { |
| 108 | 108 | throw new InvalidArgumentException( |
| 109 | - sprintf( |
|
| 109 | + sprintf( |
|
| 110 | 110 | 'Position "%s" is already in use by "%s", try setting a different position for "%s".', |
| 111 | 111 | $annotation->position, |
| 112 | 112 | $propertiesWithPosition[$annotation->position]['name'], |
| 113 | 113 | $property->getName() |
| 114 | - ) |
|
| 114 | + ) |
|
| 115 | 115 | ); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | $propertiesWithPosition[$annotation->position] = [ |
| 119 | - 'name' => $property->getName(), |
|
| 120 | - 'settings' => $annotation->getSettings(), |
|
| 119 | + 'name' => $property->getName(), |
|
| 120 | + 'settings' => $annotation->getSettings(), |
|
| 121 | 121 | ]; |
| 122 | 122 | } |
| 123 | 123 | } |
@@ -125,8 +125,8 @@ discard block |
||
| 125 | 125 | ksort($propertiesWithPosition); |
| 126 | 126 | |
| 127 | 127 | $properties = array_merge( |
| 128 | - $propertiesWithPosition, |
|
| 129 | - $propertiesWithoutPosition |
|
| 128 | + $propertiesWithPosition, |
|
| 129 | + $propertiesWithoutPosition |
|
| 130 | 130 | ); |
| 131 | 131 | |
| 132 | 132 | foreach ($properties as $property) { |