Completed
Pull Request — master (#100)
by
unknown
63:31
created
src/Resource.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -81,26 +81,26 @@  discard block
 block discarded – undo
81 81
         }
82 82
 
83 83
         $links = [];
84
-        if (! empty($this->links)) {
84
+        if (!empty($this->links)) {
85 85
             $links = $this->links;
86 86
         }
87 87
         $serializerLinks = $this->serializer->getLinks($this->data);
88
-        if (! empty($serializerLinks)) {
88
+        if (!empty($serializerLinks)) {
89 89
             $links = array_merge($serializerLinks, $links);
90 90
         }
91
-        if (! empty($links)) {
91
+        if (!empty($links)) {
92 92
             $array['links'] = $links;
93 93
         }
94 94
 
95 95
         $meta = [];
96
-        if (! empty($this->meta)) {
96
+        if (!empty($this->meta)) {
97 97
             $meta = $this->meta;
98 98
         }
99 99
         $serializerMeta = $this->serializer->getMeta($this->data);
100
-        if (! empty($serializerMeta)) {
100
+        if (!empty($serializerMeta)) {
101 101
             $meta = array_merge($serializerMeta, $meta);
102 102
         }
103
-        if (! empty($meta)) {
103
+        if (!empty($meta)) {
104 104
             $array['meta'] = $meta;
105 105
         }
106 106
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function isIdentifier()
117 117
     {
118
-        return ! is_object($this->data) && ! is_array($this->data);
118
+        return !is_object($this->data) && !is_array($this->data);
119 119
     }
120 120
 
121 121
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function toIdentifier()
125 125
     {
126
-        if (! $this->data) {
126
+        if (!$this->data) {
127 127
             return null;
128 128
         }
129 129
         
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
131 131
             'type' => $this->getType()
132 132
         ];
133 133
         
134
-        if($this->getId()) {
134
+        if ($this->getId()) {
135 135
             $array['id'] = $this->getId();
136 136
         }
137 137
 
138
-        if (! empty($this->meta)) {
138
+        if (!empty($this->meta)) {
139 139
             $array['meta'] = $this->meta;
140 140
         }
141 141
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      */
160 160
     public function getId()
161 161
     {
162
-        if (! is_object($this->data) && ! is_array($this->data)) {
162
+        if (!is_object($this->data) && !is_array($this->data)) {
163 163
             return (string) $this->data;
164 164
         }
165 165
 
Please login to merge, or discard this patch.