Completed
Push — master ( d830a9...721bff )
by Christopher
39:46
created
src/MetadataV3/mapping/cs/TEntityTypeMappingType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
             $msg = 'Type name cannot be null or empty';
137 137
             return false;
138 138
         }
139
-        if (null != $this->modificationFunctionMapping && !$this->modificationFunctionMapping>isOK($msg)) {
139
+        if (null != $this->modificationFunctionMapping && !$this->modificationFunctionMapping > isOK($msg)) {
140 140
             return false;
141 141
         }
142 142
         if (!$this->isValidArray(
Please login to merge, or discard this patch.
tests/TestTypeTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -188,14 +188,14 @@  discard block
 block discarded – undo
188 188
     {
189 189
         $bar = m::mock(testType::class);
190 190
         // closure needs to return true to match the matcher and thus trip the andReturn(false) bit
191
-        $bar->shouldReceive('isOK')->with(m::on(function (&$msg) {
191
+        $bar->shouldReceive('isOK')->with(m::on(function(&$msg) {
192 192
             $msg = 'OH NOES!';
193 193
             return true;
194 194
         }))->andReturn(false);
195 195
 
196 196
         $msg = null;
197 197
         $expected = "OH NOES!";
198
-        $arr = [ $bar ];
198
+        $arr = [$bar];
199 199
 
200 200
         $foo = new testType();
201 201
         $this->assertFalse($foo->isChildArrayOK($arr, $msg), $msg);
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $msg = null;
248 248
         $obj = m::mock(testType::class);
249 249
         // closure needs to return true to match the matcher and thus trip the andReturn(false) bit
250
-        $obj->shouldReceive('isOK')->with(m::on(function (&$msg) {
250
+        $obj->shouldReceive('isOK')->with(m::on(function(&$msg) {
251 251
             $msg = null;
252 252
             return true;
253 253
         }))->andReturn(true);
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         $msg = null;
261 261
         $obj = m::mock(testType::class);
262 262
         // closure needs to return true to match the matcher and thus trip the andReturn(false) bit
263
-        $obj->shouldReceive('isOK')->with(m::on(function (&$msg) {
263
+        $obj->shouldReceive('isOK')->with(m::on(function(&$msg) {
264 264
             $msg = 'OH NOES!';
265 265
             return true;
266 266
         }))->andReturn(false);
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     {
286 286
         $foo = m::mock(testType::class)->makePartial();
287 287
         $foo->shouldReceive('isValidArray')->withAnyArgs()->andReturn(true);
288
-        $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function (&$msg) {
288
+        $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function(&$msg) {
289 289
             $msg = 'OH NOES!';
290 290
             return true;
291 291
         }))->andReturn(false);
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
     {
300 300
         $foo = m::mock(testType::class)->makePartial();
301 301
         $foo->shouldReceive('isValidArray')->withAnyArgs()->andReturn(true);
302
-        $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function (&$msg) {
302
+        $foo->shouldReceive('isChildArrayOK')->with(m::any(), m::on(function(&$msg) {
303 303
             $msg = null;
304 304
             return true;
305 305
         }))->andReturn(true);
Please login to merge, or discard this patch.
src/MetadataV3/edm/TAnonymousFunctionExpressionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     
19 19
     public function __construct()
20 20
     {
21
-        $this->gExpressionMaximum = (0 == count($this->parameters)) ? 1 : 0 ;
21
+        $this->gExpressionMaximum = (0 == count($this->parameters)) ? 1 : 0;
22 22
     }
23 23
     
24 24
     /**
Please login to merge, or discard this patch.
src/MetadataV3/edm/TFunctionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
         }
279 279
         foreach ($this->returnType as $type) {
280 280
             if (!is_string($type) || !$this->isTCommandTextValid($type)) {
281
-                $msg = $type . " must be a valid TCommandText";
281
+                $msg = $type." must be a valid TCommandText";
282 282
                 return false;
283 283
             }
284 284
         }
Please login to merge, or discard this patch.
src/MetadataV3/edm/EntityContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -348,7 +348,7 @@
 block discarded – undo
348 348
     public function isOK(&$msg = null)
349 349
     {
350 350
         if (!$this->isTSimpleIdentifierValid($this->name)) {
351
-            $msg = "Name(" . $this->name . ") must be a valid TSimpleIdentifier " . __FILE__ . ":" . __LINE__;
351
+            $msg = "Name(".$this->name.") must be a valid TSimpleIdentifier ".__FILE__.":".__LINE__;
352 352
             return false;
353 353
         }
354 354
 
Please login to merge, or discard this patch.
src/MetadataManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         if (!$this->V3Edmx->isOK($msg)) {
18 18
             throw new \Exception($msg);
19 19
         }
20
-        $ymlDir = dirname(__DIR__) . DIRECTORY_SEPARATOR . "MetadataV3" . DIRECTORY_SEPARATOR . "JMSmetadata";
20
+        $ymlDir = dirname(__DIR__).DIRECTORY_SEPARATOR."MetadataV3".DIRECTORY_SEPARATOR."JMSmetadata";
21 21
         $this->serializer =
22 22
             \JMS\Serializer\SerializerBuilder::create()
23 23
                 ->addMetadataDir($ymlDir)
Please login to merge, or discard this patch.
tests/EdmxTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $edmx = new Edmx();
21 21
         $this->assertTrue($edmx->isOK($msg), $msg);
22 22
         $this->assertNull($msg);
23
-        $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata";
23
+        $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata";
24 24
         $serializer =
25 25
             \JMS\Serializer\SerializerBuilder::create()
26 26
                 ->addMetadataDir($ymlDir)
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $ds = DIRECTORY_SEPARATOR;
35 35
         $xml = new \DOMDocument();
36 36
         $xml->loadXML($data);
37
-        $xml->schemaValidate(dirname(__DIR__) . $ds . "xsd" . $ds . "/Microsoft.Data.Entity.Design.Edmx_3.xsd");
37
+        $xml->schemaValidate(dirname(__DIR__).$ds."xsd".$ds."/Microsoft.Data.Entity.Design.Edmx_3.xsd");
38 38
     }
39 39
 
40 40
     public function testWithSingleEntitySerializeOk()
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->assertNull($msg);
52 52
 
53 53
 
54
-        $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata";
54
+        $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata";
55 55
         $serializer =
56 56
             \JMS\Serializer\SerializerBuilder::create()
57 57
                 ->addMetadataDir($ymlDir)
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->assertNull($msg);
79 79
 
80 80
 
81
-        $ymlDir = dirname(__DIR__) . $ds . "src" . $ds . "MetadataV3" . $ds . "JMSmetadata";
81
+        $ymlDir = dirname(__DIR__).$ds."src".$ds."MetadataV3".$ds."JMSmetadata";
82 82
         $serializer =
83 83
             \JMS\Serializer\SerializerBuilder::create()
84 84
                 ->addMetadataDir($ymlDir)
Please login to merge, or discard this patch.
src/Annotations/TGenerationPatternTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public function isTGenerationPatternValid($string)
12 12
     {
13 13
         if (!is_string($string)) {
14
-            $msg = "Input must be a string: " . get_class($this);
14
+            $msg = "Input must be a string: ".get_class($this);
15 15
             throw new \InvalidArgumentException($msg);
16 16
         }
17 17
         return 'None' == $string || 'Identity' == $string || 'Computed' == $string;
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TCommandTextTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public function isTCommandTextValid($string)
12 12
     {
13 13
         if (!is_string($string)) {
14
-            $msg = "Input must be a string: ". get_class($this);
14
+            $msg = "Input must be a string: ".get_class($this);
15 15
             throw new \InvalidArgumentException($msg);
16 16
         }
17 17
         return true;
Please login to merge, or discard this patch.