@@ -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 | } |
@@ -168,11 +168,11 @@ discard block |
||
168 | 168 | $dependentProperty = $foreign['property']; |
169 | 169 | assert( |
170 | 170 | in_array($dependentMult, $this->multConstraints[$principalMult]), |
171 | - "Cannot pair multiplicities ".$dependentMult. " and ".$principalMult |
|
171 | + "Cannot pair multiplicities ".$dependentMult." and ".$principalMult |
|
172 | 172 | ); |
173 | 173 | assert( |
174 | 174 | in_array($principalMult, $this->multConstraints[$dependentMult]), |
175 | - "Cannot pair multiplicities ".$principalMult. " and ".$dependentMult |
|
175 | + "Cannot pair multiplicities ".$principalMult." and ".$dependentMult |
|
176 | 176 | ); |
177 | 177 | // add forward relation |
178 | 178 | $forward = ['principalType' => $principalType, 'principalMult' => $principalMult, |
@@ -230,11 +230,11 @@ discard block |
||
230 | 230 | $dependentProperty = $foreign[$dependentType]['property']; |
231 | 231 | assert( |
232 | 232 | in_array($dependentMult, $this->multConstraints[$principalMult]), |
233 | - "Cannot pair multiplicities ".$dependentMult. " and ".$principalMult |
|
233 | + "Cannot pair multiplicities ".$dependentMult." and ".$principalMult |
|
234 | 234 | ); |
235 | 235 | assert( |
236 | 236 | in_array($principalMult, $this->multConstraints[$dependentMult]), |
237 | - "Cannot pair multiplicities ".$principalMult. " and ".$dependentMult |
|
237 | + "Cannot pair multiplicities ".$principalMult." and ".$dependentMult |
|
238 | 238 | ); |
239 | 239 | // add forward relation |
240 | 240 | $forward = ['principalType' => $principalType, 'principalMult' => $principalMult, |