Test Setup Failed
Pull Request — master (#47)
by Alex
03:00
created
src/Providers/MetadataProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
@@ -188,11 +188,11 @@  discard block
 block discarded – undo
188 188
                     $dependentProperty = $foreign[$dependentType]['property'];
189 189
                     assert(
190 190
                         in_array($dependentMult, $this->multConstraints[$principalMult]),
191
-                        "Cannot pair multiplicities " . $dependentMult . " and " . $principalMult
191
+                        "Cannot pair multiplicities ".$dependentMult." and ".$principalMult
192 192
                     );
193 193
                     assert(
194 194
                         in_array($principalMult, $this->multConstraints[$dependentMult]),
195
-                        "Cannot pair multiplicities " . $principalMult . " and " . $dependentMult
195
+                        "Cannot pair multiplicities ".$principalMult." and ".$dependentMult
196 196
                     );
197 197
                     // add forward relation
198 198
                     $forward = [
@@ -247,11 +247,11 @@  discard block
 block discarded – undo
247 247
                         $dependentProperty = $foreign['property'];
248 248
                         assert(
249 249
                             in_array($dependentMult, $this->multConstraints[$principalMult]),
250
-                            "Cannot pair multiplicities " . $dependentMult . " and " . $principalMult
250
+                            "Cannot pair multiplicities ".$dependentMult." and ".$principalMult
251 251
                         );
252 252
                         assert(
253 253
                             in_array($principalMult, $this->multConstraints[$dependentMult]),
254
-                            "Cannot pair multiplicities " . $principalMult . " and " . $dependentMult
254
+                            "Cannot pair multiplicities ".$principalMult." and ".$dependentMult
255 255
                         );
256 256
                         // add forward relation
257 257
                         $forward = [
Please login to merge, or discard this patch.