Passed
Push — main ( 66ddd6...9ead19 )
by Melques
02:08
created
src/HttpResponse/Success.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $this->statusCode = 204;
42 42
         $this->message = "";
43
-        $this->data = [];
43
+        $this->data = [ ];
44 44
         $this->type = "";
45 45
         $this->parameter = "";
46 46
 
Please login to merge, or discard this patch.
src/Response.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * @param array $data
120 120
      * @return void
121 121
      */
122
-    public function successful(string $message, array $data = []): void
122
+    public function successful(string $message, array $data = [ ]): void
123 123
     {
124 124
         echo $this->successfullResponse($this->success->success($message, $data));
125 125
     }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     {
145 145
         $return = $success->toArray();
146 146
 
147
-        $return["meta"] = [
147
+        $return[ "meta" ] = [
148 148
             "status" => $success->getStatusCode(),
149 149
             "url" => filter_input(INPUT_SERVER, 'REQUEST_URI'),
150 150
             "method" => filter_input(INPUT_SERVER, 'REQUEST_METHOD'),
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function errorResponse(Error $error): string
164 164
     {
165
-        $return = [];
166
-        $return["meta"] = [
165
+        $return = [ ];
166
+        $return[ "meta" ] = [
167 167
             "status" => $error->getStatusCode(),
168 168
             "url" => filter_input(INPUT_SERVER, 'REQUEST_URI'),
169 169
             "method" => filter_input(INPUT_SERVER, 'REQUEST_METHOD'),
Please login to merge, or discard this patch.
examples/SuccessExample.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @param array $data
59 59
      * @return void
60 60
      */
61
-    public function otherReturn(int $statusCode, string $message, string $type, array $data = []): void
61
+    public function otherReturn(int $statusCode, string $message, string $type, array $data = [ ]): void
62 62
     {
63 63
         $success = new Success();
64 64
         $success->setStatusCode($statusCode)
Please login to merge, or discard this patch.