Completed
Push — dev ( 0cb5be...30da7c )
by Jakob
02:44
created
src/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
      */
176 176
     public function jsonLDSerialize(string $context = self::DEFAULT_CONTEXT)
177 177
     {
178
-        $set = array_map(function ($m) {
178
+        $set = array_map(function($m) {
179 179
             return is_object($m) ? $m->jsonLDSerialize('') : $m;
180 180
         }, $this->members);
181 181
 
Please login to merge, or discard this patch.
src/Concept.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 block discarded – undo
16 16
     ];
17 17
 
18 18
     const FIELDS = [
19
-        'narrower'      => ['Set','Concept'],
20
-        'broader'       => ['Set','Concept'],
21
-        'related'       => ['Set','Concept'],
22
-        'previous'      => ['Set','Concept'],
23
-        'next'          => ['Set','Concept'],
24
-        'ancestors'     => ['Set','Concept'],
25
-        'inScheme'      => ['Set','ConceptScheme'],
26
-        'topConceptOf'  => ['Set','ConceptScheme'],
19
+        'narrower'      => ['Set', 'Concept'],
20
+        'broader'       => ['Set', 'Concept'],
21
+        'related'       => ['Set', 'Concept'],
22
+        'previous'      => ['Set', 'Concept'],
23
+        'next'          => ['Set', 'Concept'],
24
+        'ancestors'     => ['Set', 'Concept'],
25
+        'inScheme'      => ['Set', 'ConceptScheme'],
26
+        'topConceptOf'  => ['Set', 'ConceptScheme'],
27 27
     ];
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
src/Resource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
         'created'     => 'Date',
25 25
         'issued'      => 'Date',
26 26
         'modified'    => 'Date',
27
-        'creator'     => ['Set','Concept'],
28
-        'contributor' => ['Set','Concept'],
29
-        'publisher'   => ['Set','Concept'],
30
-        'partOf'      => ['Set','Concept'],
27
+        'creator'     => ['Set', 'Concept'],
28
+        'contributor' => ['Set', 'Concept'],
29
+        'publisher'   => ['Set', 'Concept'],
30
+        'partOf'      => ['Set', 'Concept'],
31 31
     ];
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/DataType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * Get field definition from FIELDS, including parent classes.
33 33
      */
34
-    protected static function fieldType(string $field, bool $strict=false)
34
+    protected static function fieldType(string $field, bool $strict = false)
35 35
     {
36 36
         $class = get_called_class();
37 37
         while ($class && $class != self::class) {
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
     private function fieldException($field, $message)
52 52
     {
53 53
         return new InvalidArgumentException(
54
-            get_called_class()."->$field must $message"
54
+            get_called_class() . "->$field must $message"
55 55
         );
56 56
     }
57 57
 
58
-    protected function setField(string $field, $value, bool $strict=true)
58
+    protected function setField(string $field, $value, bool $strict = true)
59 59
     {
60 60
         if ($field == '@context') {
61 61
             return;
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
         } elseif (is_array($type)) { # Set or Listing
72 72
             if ($type[0] == 'Set') {
73 73
                 if (is_array($value)) {
74
-                    $class = 'JSKOS\\'.$type[1];
74
+                    $class = 'JSKOS\\' . $type[1];
75 75
                     $value = new Set(
76
-                        array_map(function ($m) use ($class) {
76
+                        array_map(function($m) use ($class) {
77 77
                             if (is_null($m)) {
78 78
                                 return null;
79 79
                             }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             }
133 133
         } else {
134 134
             trigger_error(
135
-                "Undefined property: ".get_called_class()."::$$field",
135
+                "Undefined property: " . get_called_class() . "::$$field",
136 136
                 \E_USER_NOTICE
137 137
             );
138 138
         }
Please login to merge, or discard this patch.