Completed
Push — master ( 2fde8c...15bdae )
by John
02:29
created
src/APIResponse/ResponseFactory.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
  * Interface ResponseFactory
9 9
  * @package LunixREST\APIResponse
10 10
  */
11
-interface ResponseFactory
12
-{
11
+interface ResponseFactory {
13 12
     /**
14 13
      * @param APIResponseData $data
15 14
      * @param array $acceptedMIMETypes - acceptable MIME types in order of preference
Please login to merge, or discard this patch.
src/APIResponse/RegisteredResponseFactory.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
  * Class RegisteredResponseFactory
11 11
  * @package LunixRESTBasics\APIResponse
12 12
  */
13
-class RegisteredResponseFactory implements ResponseFactory
14
-{
13
+class RegisteredResponseFactory implements ResponseFactory {
15 14
     /**
16 15
      * @var APIResponseDataSerializer[]
17 16
      */
@@ -21,8 +20,7 @@  discard block
 block discarded – undo
21 20
      * RegisteredResponseFactory constructor.
22 21
      * @param APIResponseDataSerializer[] $responseTypes
23 22
      */
24
-    public function __construct($responseTypes = [])
25
-    {
23
+    public function __construct($responseTypes = []) {
26 24
         foreach($responseTypes as $mimeType => $serializer) {
27 25
             $this->registerSerializer($mimeType, $serializer);
28 26
         }
@@ -32,8 +30,7 @@  discard block
 block discarded – undo
32 30
      * @param $mimeType
33 31
      * @param APIResponseDataSerializer $dataSerializer
34 32
      */
35
-    public function registerSerializer($mimeType, APIResponseDataSerializer $dataSerializer)
36
-    {
33
+    public function registerSerializer($mimeType, APIResponseDataSerializer $dataSerializer) {
37 34
         $this->serializers[strtolower($mimeType)] = $dataSerializer;
38 35
     }
39 36
 
Please login to merge, or discard this patch.
src/APIResponse/Exceptions/NotAcceptableResponseTypeException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class NotAcceptableResponseTypeException
7 7
  * @package LunixREST\APIResponse\Exceptions
8 8
  */
9
-class NotAcceptableResponseTypeException extends \Exception
10
-{
9
+class NotAcceptableResponseTypeException extends \Exception {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
src/Configuration/Exceptions/INIParseException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class INIParseException
7 7
  * @package LunixREST\Configuration\Exceptions
8 8
  */
9
-class INIParseException extends \Exception
10
-{
9
+class INIParseException extends \Exception {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
src/Throttle/NoThrottle.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@  discard block
 block discarded – undo
8 8
  * Class NoThrottle
9 9
  * @package LunixREST\Throttle
10 10
  */
11
-class NoThrottle implements Throttle
12
-{
11
+class NoThrottle implements Throttle {
13 12
     /**
14 13
      * Never throttle
15 14
      * @param \LunixREST\APIRequest\APIRequest $request
@@ -24,8 +23,7 @@  discard block
 block discarded – undo
24 23
      * Log that a request took place
25 24
      * @param \LunixREST\APIRequest\APIRequest $request
26 25
      */
27
-    public function logRequest(APIRequest $request)
28
-    {
26
+    public function logRequest(APIRequest $request) {
29 27
         //Do nothing
30 28
     }
31 29
 }
Please login to merge, or discard this patch.
src/Endpoint/LoggingEndpoint.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
  * Class LoggingEndpoint
10 10
  * @package LunixREST\Endpoint
11 11
  */
12
-abstract class LoggingEndpoint implements Endpoint
13
-{
12
+abstract class LoggingEndpoint implements Endpoint {
14 13
     use LoggerAwareTrait;
15 14
 }
Please login to merge, or discard this patch.
src/Endpoint/EndpointFactory.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
  * Interface EndpointFactory
9 9
  * @package LunixREST\Endpoint
10 10
  */
11
-interface EndpointFactory
12
-{
11
+interface EndpointFactory {
13 12
     /**
14 13
      * @param string $name
15 14
      * @param string $version
Please login to merge, or discard this patch.
src/Endpoint/Exceptions/UnsupportedMethodException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class UnsupportedMethodException
7 7
  * @package LunixREST\Endpoint\Exceptions
8 8
  */
9
-class UnsupportedMethodException extends \Exception
10
-{
9
+class UnsupportedMethodException extends \Exception {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
src/Endpoint/Exceptions/UnknownEndpointException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class UnknownEndpointException
7 7
  * @package LunixREST\Endpoint\Exceptions
8 8
  */
9
-class UnknownEndpointException extends \Exception
10
-{
9
+class UnknownEndpointException extends \Exception {
11 10
 
12 11
 }
Please login to merge, or discard this patch.