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