Passed
Pull Request — master (#224)
by Christopher
07:35
created
src/Models/ObjectMap/Entities/EntityGubbins.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,13 +120,13 @@  discard block
 block discarded – undo
120 120
     public function setFields(array $fields)
121 121
     {
122 122
         if (0 == count($fields)) {
123
-            $msg = 'Fields array must not be empty for '.$this->getClassName();
123
+            $msg = 'Fields array must not be empty for ' . $this->getClassName();
124 124
             throw new \Exception($msg);
125 125
         }
126 126
         $keys = [];
127 127
         foreach ($fields as $propName => $field) {
128 128
             if (!$field instanceof EntityField) {
129
-                $msg = 'Fields array must only have EntityField objects for '.$this->getClassName();
129
+                $msg = 'Fields array must only have EntityField objects for ' . $this->getClassName();
130 130
                 throw new \Exception($msg);
131 131
             }
132 132
             if ($field->getIsKeyField()) {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             }
135 135
         }
136 136
         if (0 == count($keys)) {
137
-            $msg = 'No key field supplied in fields array for '.$this->getClassName();
137
+            $msg = 'No key field supplied in fields array for ' . $this->getClassName();
138 138
             throw new \Exception($msg);
139 139
         }
140 140
         $this->fields    = $fields;
Please login to merge, or discard this patch.
src/Providers/MetadataProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     {
117 117
         /** @var SimpleMetadataProvider $meta */
118 118
         $meta      = App::make('metadata');
119
-        $namespace = $meta->getContainerNamespace().'.';
119
+        $namespace = $meta->getContainerNamespace() . '.';
120 120
 
121 121
         $entities = $objectModel->getEntities();
122 122
         foreach ($entities as $entity) {
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
             $entity->setOdataResourceType($entityType);
132 132
             $this->implementProperties($entity);
133 133
             $meta->addResourceSet($pluralName, $entityType);
134
-            $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace.$entityName];
134
+            $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace . $entityName];
135 135
         }
136 136
         $metaCount   = count($meta->oDataEntityMap);
137 137
         $entityCount = count($entities);
138 138
         $expected    = 2 * $entityCount;
139 139
         if ($metaCount != $expected) {
140
-            $msg = 'Expected ' . $expected . ' items, actually got '.$metaCount;
140
+            $msg = 'Expected ' . $expected . ' items, actually got ' . $metaCount;
141 141
             throw new InvalidOperationException($msg);
142 142
         }
143 143
 
Please login to merge, or discard this patch.
src/Serialisers/SerialiserLowLevelWriters.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $kVal     = $typeKind;
69 69
         if (!(ResourceTypeKind::PRIMITIVE() == $kVal || ResourceTypeKind::COMPLEX() == $kVal)) {
70 70
             $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE'
71
-                   .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
71
+                    .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
72 72
             throw new InvalidOperationException($msg);
73 73
         }
74 74
         if (null == $result) {
Please login to merge, or discard this patch.
src/Serialisers/IronicSerialiser.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $targClass = $resourceType->getInstanceType()->getName();
129 129
         if (!($res instanceof $targClass)) {
130 130
             $msg = 'Object being serialised not instance of expected class, '
131
-                   . $targClass . ', is actually ' . $payloadClass;
131
+                    . $targClass . ', is actually ' . $payloadClass;
132 132
             throw new InvalidOperationException($msg);
133 133
         }
134 134
 
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
             if (!(ResourcePropertyKind::RESOURCESET_REFERENCE == $propKind
573 573
                   || ResourcePropertyKind::RESOURCE_REFERENCE == $propKind)) {
574 574
                 $msg = '$propKind != ResourcePropertyKind::RESOURCESET_REFERENCE &&'
575
-                       . ' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE';
575
+                        . ' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE';
576 576
                 throw new InvalidOperationException($msg);
577 577
             }
578 578
             $propTail             = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed';
Please login to merge, or discard this patch.