@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | class MetadataProvider extends MetadataBaseProvider |
| 14 | 14 | { |
| 15 | - protected $multConstraints = [ '0..1' => ['1'], '1' => ['0..1', '*'], '*' => ['1', '*']]; |
|
| 15 | + protected $multConstraints = ['0..1' => ['1'], '1' => ['0..1', '*'], '*' => ['1', '*']]; |
|
| 16 | 16 | protected static $METANAMESPACE = "Data"; |
| 17 | 17 | |
| 18 | 18 | /** |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function register() |
| 77 | 77 | { |
| 78 | - $this->app->singleton('metadata', function ($app) { |
|
| 78 | + $this->app->singleton('metadata', function($app) { |
|
| 79 | 79 | return new SimpleMetadataProvider('Data', self::$METANAMESPACE); |
| 80 | 80 | }); |
| 81 | 81 | } |
@@ -196,11 +196,11 @@ discard block |
||
| 196 | 196 | $dependentProperty = $foreign[$dependentType]['property']; |
| 197 | 197 | assert( |
| 198 | 198 | in_array($dependentMult, $this->multConstraints[$principalMult]), |
| 199 | - "Cannot pair multiplicities " . $dependentMult . " and " . $principalMult |
|
| 199 | + "Cannot pair multiplicities ".$dependentMult." and ".$principalMult |
|
| 200 | 200 | ); |
| 201 | 201 | assert( |
| 202 | 202 | in_array($principalMult, $this->multConstraints[$dependentMult]), |
| 203 | - "Cannot pair multiplicities " . $principalMult . " and " . $dependentMult |
|
| 203 | + "Cannot pair multiplicities ".$principalMult." and ".$dependentMult |
|
| 204 | 204 | ); |
| 205 | 205 | // generate forward and reverse relations |
| 206 | 206 | list($forward, $reverse) = $this->calculateRoundTripRelationsGenForwardReverse( |
@@ -244,11 +244,11 @@ discard block |
||
| 244 | 244 | $dependentProperty = $foreign['property']; |
| 245 | 245 | assert( |
| 246 | 246 | in_array($dependentMult, $this->multConstraints[$principalMult]), |
| 247 | - "Cannot pair multiplicities " . $dependentMult . " and " . $principalMult |
|
| 247 | + "Cannot pair multiplicities ".$dependentMult." and ".$principalMult |
|
| 248 | 248 | ); |
| 249 | 249 | assert( |
| 250 | 250 | in_array($principalMult, $this->multConstraints[$dependentMult]), |
| 251 | - "Cannot pair multiplicities " . $principalMult . " and " . $dependentMult |
|
| 251 | + "Cannot pair multiplicities ".$principalMult." and ".$dependentMult |
|
| 252 | 252 | ); |
| 253 | 253 | // generate forward and reverse relations |
| 254 | 254 | list($forward, $reverse) = $this->calculateRoundTripRelationsGenForwardReverse( |