Passed
Push — master ( 85ac84...ca352a )
by Tobias
01:46
created
src/Support/tmaxham_helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('_val')) {
3
+if (!function_exists('_val')) {
4 4
     /**
5 5
      * @param $value
6 6
      * @param null $default
Please login to merge, or discard this patch.
src/Http/Middleware/CloudFlare.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             $request->server->set('HTTPS', 'on');
28 28
         }
29 29
 
30
-        if (! $request->secure() && env('APP_ENV') === 'production') {
30
+        if (!$request->secure() && env('APP_ENV') === 'production') {
31 31
             return Redirect::secure($request->getRequestUri());
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/Models/Logs/ChangeByUser.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public static function bootChangeByUser()
14 14
     {
15
-        static::creating(function ($model) {
16
-            if (App::runningInConsole() || ! Auth::check()) {
15
+        static::creating(function($model) {
16
+            if (App::runningInConsole() || !Auth::check()) {
17 17
                 return true;
18 18
             }
19 19
             if ($model->getCreatedByColumn()) {
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
             return true;
27 27
         });
28 28
 
29
-        static::updating(function ($model) {
30
-            if (App::runningInConsole() || ! Auth::check()) {
29
+        static::updating(function($model) {
30
+            if (App::runningInConsole() || !Auth::check()) {
31 31
                 return true;
32 32
             }
33 33
             if ($model->getUpdatedByColumn()) {
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
             return true;
38 38
         });
39 39
 
40
-        static::deleting(function ($model) {
41
-            if (App::runningInConsole() || ! Auth::check()) {
40
+        static::deleting(function($model) {
41
+            if (App::runningInConsole() || !Auth::check()) {
42 42
                 return true;
43 43
             }
44 44
             if ($model->getDeletedByColumn()) {
Please login to merge, or discard this patch.
src/Database/MigrationHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $table->char('uuid', 36);
18 18
         $table->unique('uuid', 'uuid');
19
-        if (! is_null($comment)) {
19
+        if (!is_null($comment)) {
20 20
             $table->comment = $comment;
21 21
         }
22 22
     }
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
 
36 36
     public static function addChangedByUserFields(Blueprint $table, array $fields = ['created_by', 'updated_by', 'deleted_by'], string $relation = 'users', string $foreign = 'id', string $onDelete = self::REFERENTIAL_ACTION_CASCADE)
37 37
     {
38
-        if (! isset($fields[0]) || ! is_string($fields[0])) {
38
+        if (!isset($fields[0]) || !is_string($fields[0])) {
39 39
             $fields[0] = 'created_by';
40 40
         }
41
-        if (! isset($fields[1]) || ! is_string($fields[1])) {
41
+        if (!isset($fields[1]) || !is_string($fields[1])) {
42 42
             $fields[1] = 'updated_by';
43 43
         }
44
-        if (! isset($fields[2]) || ! is_string($fields[2])) {
44
+        if (!isset($fields[2]) || !is_string($fields[2])) {
45 45
             $fields[2] = 'deleted_by';
46 46
         }
47 47
         self::addCreatedByUser($table, $fields[0], $relation, $foreign, $onDelete);
Please login to merge, or discard this patch.
src/Http/Middleware/Cors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     private function addCorsHeaders(Response $response)
37 37
     {
38
-        if (! $response->headers->has('Access-Control-Allow-Origin')) {
38
+        if (!$response->headers->has('Access-Control-Allow-Origin')) {
39 39
             $response = $response->header('Access-Control-Allow-Origin', config('tma-helper.cors.allowedOrigins', 'localhost'))
40 40
                 ->header('Access-Control-Allow-Methods', config('tma-helper.cors.allowedMethods'));
41 41
         }
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 block discarded – undo
25 25
 
26 26
     private function addApiRoutes($router)
27 27
     {
28
-        $router->group(['middleware' => Cors::class], function () use ($router) {
28
+        $router->group(['middleware' => Cors::class], function() use ($router) {
29 29
             $router->get('api/ping', [
30 30
                 'as' => 'api.ping',
31
-                'uses' => function () {
31
+                'uses' => function() {
32 32
                     return 'pong';
33 33
                 }
34 34
             ]);
Please login to merge, or discard this patch.