Completed
Push — master ( 25a62d...a2c373 )
by Toby
65:26 queued 02:17
created
src/Resource.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $array = $this->toIdentifier();
79 79
 
80
-        if (! $this->isIdentifier()) {
80
+        if (!$this->isIdentifier()) {
81 81
             $attributes = $this->getAttributes();
82 82
             if ($attributes) {
83 83
                 $array['attributes'] = $attributes;
@@ -91,26 +91,26 @@  discard block
 block discarded – undo
91 91
         }
92 92
 
93 93
         $links = [];
94
-        if (! empty($this->links)) {
94
+        if (!empty($this->links)) {
95 95
             $links = $this->links;
96 96
         }
97 97
         $serializerLinks = $this->serializer->getLinks($this->data);
98
-        if (! empty($serializerLinks)) {
98
+        if (!empty($serializerLinks)) {
99 99
             $links = array_merge($serializerLinks, $links);
100 100
         }
101
-        if (! empty($links)) {
101
+        if (!empty($links)) {
102 102
             $array['links'] = $links;
103 103
         }
104 104
 
105 105
         $meta = [];
106
-        if (! empty($this->meta)) {
106
+        if (!empty($this->meta)) {
107 107
             $meta = $this->meta;
108 108
         }
109 109
         $serializerMeta = $this->serializer->getMeta($this->data);
110
-        if (! empty($serializerMeta)) {
110
+        if (!empty($serializerMeta)) {
111 111
             $meta = array_merge($serializerMeta, $meta);
112 112
         }
113
-        if (! empty($meta)) {
113
+        if (!empty($meta)) {
114 114
             $array['meta'] = $meta;
115 115
         }
116 116
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function isIdentifier()
127 127
     {
128
-        return ! is_object($this->data) && ! is_array($this->data);
128
+        return !is_object($this->data) && !is_array($this->data);
129 129
     }
130 130
 
131 131
     /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function toIdentifier()
135 135
     {
136
-        if (! $this->data) {
136
+        if (!$this->data) {
137 137
             return;
138 138
         }
139 139
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             'id' => $this->getId()
143 143
         ];
144 144
 
145
-        if (! empty($this->meta)) {
145
+        if (!empty($this->meta)) {
146 146
             $array['meta'] = $this->meta;
147 147
         }
148 148
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function getId()
168 168
     {
169
-        if (! is_object($this->data) && ! is_array($this->data)) {
169
+        if (!is_object($this->data) && !is_array($this->data)) {
170 170
             return (string) $this->data;
171 171
         }
172 172
 
Please login to merge, or discard this patch.