Completed
Push — master ( 71be44...8b1d39 )
by Jakob
01:52
created
src/DataType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace JSKOS;
4 4
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         }
40 40
     }
41 41
 
42
-    protected function setField(string $field, $value, bool $strict=true)
42
+    protected function setField(string $field, $value, bool $strict = true)
43 43
     {
44 44
         if ($field == '@context') {
45 45
             return;
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
         } elseif (is_array($type)) { # Set or Listing
61 61
             if ($type[0] == 'Set') {
62 62
                 if (is_array($value)) {
63
-                    $class = 'JSKOS\\'.$type[1];
63
+                    $class = 'JSKOS\\' . $type[1];
64 64
                     $value = new Set(
65
-                        array_map(function ($m) use ($class) {
65
+                        array_map(function($m) use ($class) {
66 66
                             if (is_null($m)) {
67 67
                                 return null;
68 68
                             }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                         }, $value)
74 74
                     );
75 75
                 } elseif (!is_a($value, 'JSKOS\Set')) {
76
-                    $msg = get_called_class()."->$field must be a Set";
76
+                    $msg = get_called_class() . "->$field must be a Set";
77 77
                     throw new InvalidArgumentException($msg);
78 78
                 } else {
79 79
                     # TODO: check member types
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             if ($type == 'ConceptScheme') {
98 98
                 $value = new ConceptScheme($value);
99 99
             } else {
100
-                $msg = get_called_class()."->$field must match JSKOS\DataType::is$type";
100
+                $msg = get_called_class() . "->$field must match JSKOS\DataType::is$type";
101 101
                 throw new InvalidArgumentException($msg);
102 102
             }
103 103
         }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             }
123 123
         } else {
124 124
             trigger_error(
125
-                "Undefined property: ".get_called_class()."::$$field",
125
+                "Undefined property: " . get_called_class() . "::$$field",
126 126
                 \E_USER_NOTICE
127 127
             );
128 128
             return null;
Please login to merge, or discard this patch.
src/ObjectConstructor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace JSKOS;
4 4
 
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      *
12 12
      * @param Array|Object JSON data to copy
13 13
      */
14
-    public function __construct($data=null, bool $strict=false)
14
+    public function __construct($data = null, bool $strict = false)
15 15
     {
16 16
         if (is_array($data) || is_object($data)) {
17 17
             foreach ($data as $key => $value) {
Please login to merge, or discard this patch.
src/LanguageMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace JSKOS;
4 4
 
Please login to merge, or discard this patch.