Test Failed
Push — develop ( df8064...70abbc )
by nguereza
03:01
created
src/Audit/Model/Audit.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,19 +66,19 @@
 block discarded – undo
66 66
             'date' => 'date',
67 67
         ]);
68 68
 
69
-        $mapper->filter('start_date', function (Query $q, $value) {
69
+        $mapper->filter('start_date', function(Query $q, $value) {
70 70
             $q->where('date')->gte($value);
71 71
         });
72 72
 
73
-        $mapper->filter('end_date', function (Query $q, $value) {
73
+        $mapper->filter('end_date', function(Query $q, $value) {
74 74
             $q->where('date')->lte($value);
75 75
         });
76 76
 
77
-        $mapper->filter('event', function (Query $q, $value) {
77
+        $mapper->filter('event', function(Query $q, $value) {
78 78
             $q->where('event')->is($value);
79 79
         });
80 80
 
81
-        $mapper->filter('user', function (Query $q, $value) {
81
+        $mapper->filter('user', function(Query $q, $value) {
82 82
             $q->where('user_id')->is($value);
83 83
         });
84 84
     }
Please login to merge, or discard this patch.
src/Env/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
                 continue;
169 169
             }
170 170
 
171
-            $value = preg_replace_callback('~\$\{(\w+)\}~', function ($m) {
171
+            $value = preg_replace_callback('~\$\{(\w+)\}~', function($m) {
172 172
                 return (null === $ref = Env::get($m[1], null)) ? $m[0] : $ref;
173 173
             }, $value);
174 174
 
Please login to merge, or discard this patch.
src/Env/Env.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
             return $value;
149 149
         }
150 150
 
151
-        $valueResolved = preg_replace_callback('~\$\{(\w+)\}~', function ($m) {
151
+        $valueResolved = preg_replace_callback('~\$\{(\w+)\}~', function($m) {
152 152
             return (null === $ref = static::get($m[1], null)) ? $m[0] : $ref;
153 153
         }, $value);
154 154
 
Please login to merge, or discard this patch.
src/Http/Response/FileResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
         $this->headers['content-description'] = ['File Transfer'];
83 83
         $this->headers['content-type'] = [$mimetype];
84
-        $this->headers['content-disposition'] = ['attachment; filename="' . $filename  . '"'];
84
+        $this->headers['content-disposition'] = ['attachment; filename="' . $filename . '"'];
85 85
         $this->headers['expires'] = ['0'];
86 86
         $this->headers['cache-control'] = ['must-revalidate'];
87 87
         $this->headers['pragma'] = ['public'];
Please login to merge, or discard this patch.
src/Http/Middleware/ErrorHandlerMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
         ServerRequestInterface $request,
148 148
         RequestHandlerInterface $handler
149 149
     ): ResponseInterface {
150
-        set_error_handler(static function (
150
+        set_error_handler(static function(
151 151
             int $severity,
152 152
             string $message,
153 153
             string $file,
Please login to merge, or discard this patch.
src/Http/Middleware/BodyParserMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,11 +138,11 @@
 block discarded – undo
138 138
      */
139 139
     protected function registerDefaultParsers(): void
140 140
     {
141
-        $this->registerParser('application/json', static function ($body) {
141
+        $this->registerParser('application/json', static function($body) {
142 142
             return Json::decode($body, true);
143 143
         });
144 144
 
145
-        $this->registerParser('application/x-www-form-urlencoded', static function ($body) {
145
+        $this->registerParser('application/x-www-form-urlencoded', static function($body) {
146 146
             $data = [];
147 147
             parse_str($body, $data);
148 148
 
Please login to merge, or discard this patch.
src/Http/Client/HttpClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -519,7 +519,7 @@
 block discarded – undo
519 519
     protected function send($ch): HttpResponse
520 520
     {
521 521
         $responseHeaders = [];
522
-        curl_setopt($ch, CURLOPT_HEADERFUNCTION, function ($curl, $header) use (&$responseHeaders) {
522
+        curl_setopt($ch, CURLOPT_HEADERFUNCTION, function($curl, $header) use (&$responseHeaders) {
523 523
             if (strpos($header, ':') !== false) {
524 524
                 list($name, $value) = explode(':', $header);
525 525
                 if (array_key_exists($name, $responseHeaders) === false) {
Please login to merge, or discard this patch.
src/Migration/Command/MigrationInitCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     protected function createMigrationTable(): void
118 118
     {
119 119
         $tableName = $this->table;
120
-        $this->schema->create($tableName, function (CreateTable $table) {
120
+        $this->schema->create($tableName, function(CreateTable $table) {
121 121
             $table->string('version', 20)
122 122
                    ->description('The migration version')
123 123
                    ->primary();
Please login to merge, or discard this patch.
src/Migration/Command/MigrationExecuteCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         $this->setName('migration:exec')
76 76
              ->setDescription('Execute the migration up/down for one version');
77 77
 
78
-        $this->addArgument('type', 'type of migration [up|down]', 'up', true, true, false, function ($val) {
78
+        $this->addArgument('type', 'type of migration [up|down]', 'up', true, true, false, function($val) {
79 79
             if (!in_array($val, ['up', 'down'])) {
80 80
                 throw new RuntimeException(sprintf(
81 81
                     'Invalid argument type [%s], must be one of [up, down]',
Please login to merge, or discard this patch.