Completed
Pull Request — master (#116)
by Sorin Valer
03:15
created
src/Http/Headers/MediaType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         $this->type       = $type;
74 74
         $this->subType    = $subType;
75
-        $this->mediaType  = $type . '/' . $subType;
75
+        $this->mediaType  = $type.'/'.$subType;
76 76
         $this->parameters = $parameters;
77 77
     }
78 78
 
Please login to merge, or discard this patch.
src/Http/Parameters/RestrictiveQueryChecker.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,8 +149,7 @@
 block discarded – undo
149 149
      */
150 150
     protected function checkUnrecognized(ParametersInterface $parameters)
151 151
     {
152
-        $this->allowUnrecognized === true || empty($parameters->getUnrecognizedParameters()) === true ?:
153
-            E::throwException(new E([], E::HTTP_CODE_BAD_REQUEST));
152
+        $this->allowUnrecognized === true || empty($parameters->getUnrecognizedParameters()) === true ?: E::throwException(new E([], E::HTTP_CODE_BAD_REQUEST));
154 153
     }
155 154
 
156 155
     /**
Please login to merge, or discard this patch.
src/Http/Responses.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     {
150 150
         $resSubUrl = $this->getSchemaContainer()->getSchema($resource)->getSelfSubLink($resource)->getSubHref();
151 151
         $urlPrefix = $this->getUrlPrefix();
152
-        $location  = $urlPrefix . $resSubUrl;
152
+        $location  = $urlPrefix.$resSubUrl;
153 153
 
154 154
         return $location;
155 155
     }
@@ -171,14 +171,14 @@  discard block
 block discarded – undo
171 171
         if (isset($params[MediaTypeInterface::PARAM_EXT])) {
172 172
             $ext = $params[MediaTypeInterface::PARAM_EXT];
173 173
             if (empty($ext) === false) {
174
-                $contentType .= $separator . MediaTypeInterface::PARAM_EXT . '="' . $ext . '"';
174
+                $contentType .= $separator.MediaTypeInterface::PARAM_EXT.'="'.$ext.'"';
175 175
                 $separator = ',';
176 176
             }
177 177
         }
178 178
 
179 179
         $extensions = $this->getSupportedExtensions();
180 180
         if ($extensions !== null && ($list = $extensions->getExtensions()) !== null && empty($list) === false) {
181
-            $contentType .= $separator . MediaTypeInterface::PARAM_SUPPORTED_EXT . '="' . $list . '"';
181
+            $contentType .= $separator.MediaTypeInterface::PARAM_SUPPORTED_EXT.'="'.$list.'"';
182 182
         }
183 183
 
184 184
         $headers[self::HEADER_CONTENT_TYPE] = $contentType;
Please login to merge, or discard this patch.
src/Schema/Container.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
     protected function getResourceType($resource)
196 196
     {
197 197
 
198
-        if(in_array(self::DOCTRINE_PROXY_CLASS_NAME, class_implements($resource))){
198
+        if (in_array(self::DOCTRINE_PROXY_CLASS_NAME, class_implements($resource))) {
199 199
             return get_parent_class($resource);
200 200
         }
201 201
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
     protected function getResourceType($resource)
196 196
     {
197 197
 
198
-        if(in_array(self::DOCTRINE_PROXY_CLASS_NAME, class_implements($resource))){
198
+        if(in_array(self::DOCTRINE_PROXY_CLASS_NAME, class_implements($resource))) {
199 199
             return get_parent_class($resource);
200 200
         }
201 201
 
Please login to merge, or discard this patch.