Passed
Pull Request — master (#2400)
by
unknown
15:33 queued 07:23
created
app/Service/Tenant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     private static function tenantPrefix()
41 41
     {
42
-        if (! isset(self::$tenantPrefix)) {
42
+        if (!isset(self::$tenantPrefix)) {
43 43
             self::$tenantPrefix = self::tenantDatabase();
44 44
         }
45 45
 
Please login to merge, or discard this patch.
app/Providers/TelescopeServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     protected function hideSensitiveRequestDetails()
26 26
     {
27
-        if (! $this->app->isLocal()) {
27
+        if (!$this->app->isLocal()) {
28 28
             Telescope::hideRequestParameters(['_token']);
29 29
             Telescope::hideRequestHeaders(['cookie', 'x-csrf-token', 'x-xsrf-token']);
30 30
         }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     protected function configureRateLimiting()
53 53
     {
54
-        RateLimiter::for('api', fn () => App::runningUnitTests()
54
+        RateLimiter::for ('api', fn () => App::runningUnitTests()
55 55
             ? Limit::none()
56 56
             : Limit::perMinute(1000));
57 57
     }
Please login to merge, or discard this patch.
app/Http/Controllers/GrampsXml/Import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
             $fam = Family::where('husband_id', $husband->id)->where('wife_id', $wife->id)->first();
51 51
 
52
-            if (! $fam) {
52
+            if (!$fam) {
53 53
                 $fam = Family::create([
54 54
                     'description' => $description,
55 55
                     'husband_id' => $husband->id,
Please login to merge, or discard this patch.
app/Http/Controllers/Person/PeopleController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
         // and filter living individuals out
20 20
         $peopleQuery = TenantPerson::where('birthday', '<', Carbon::now()->subYears(100))
21 21
             ->whereNull('deathday')
22
-            ->with(['systemPerson' => function ($query) {
22
+            ->with(['systemPerson' => function($query) {
23 23
                 $query->select('id', 'name');
24 24
             }]);
25 25
 
26 26
         $words = explode(' ', (string) $request->input('name'));
27 27
 
28
-        $peopleQuery->where(function ($query) use ($words) {
28
+        $peopleQuery->where(function($query) use ($words) {
29 29
             foreach ($words as $text) {
30 30
                 $query->orWhere('name', 'like', '%'.$text.'%');
31 31
             }
Please login to merge, or discard this patch.
app/Http/Controllers/Trees/Gift.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 block discarded – undo
15 15
     {
16 16
         $shipTo = [
17 17
             'companyName' => 'No Name',
18
-            'firstName' => 'John',                  // required
19
-            'lastName' => 'Doe',                  // required
20
-            'addressLine1' => '451 Clarkson Ave',   // required
18
+            'firstName' => 'John', // required
19
+            'lastName' => 'Doe', // required
20
+            'addressLine1' => '451 Clarkson Ave', // required
21 21
             'addressLine2' => 'Brooklyn',
22 22
             'state' => 'NY',
23
-            'city' => 'New York',                   // required
24
-            'postCode' => '11203',                  // required
25
-            'country' => 'US',                      // required
26
-            'email' => '[email protected]',         // required
23
+            'city' => 'New York', // required
24
+            'postCode' => '11203', // required
25
+            'country' => 'US', // required
26
+            'email' => '[email protected]', // required
27 27
             'phone' => '123456789',
28 28
         ];
29 29
 
Please login to merge, or discard this patch.
app/Http/Controllers/Dashboard/ChartController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $prevConn = $this->getConnection();
116 116
         $company_id = $request->get('company_id');
117 117
 //        $tree_id = $request->get('tree_id');
118
-        if (! empty($company_id)) {
118
+        if (!empty($company_id)) {
119 119
             $tenants = \App\Models\Tenant::find($company_id);
120 120
             if ($tenants) {
121 121
                 $db = $tenants->tenancy_db_name;
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $prevConn = $this->getConnection();
185 185
         $company_id = $request->get('company_id');
186 186
         $tree_id = $request->get('tree_id');
187
-        if (! empty($company_id)) {
187
+        if (!empty($company_id)) {
188 188
             $db = Connections::Tenant.$company_id.'_'.$tree_id;
189 189
             $this->setConnection(Connections::Tenant, $db);
190 190
         } else {
Please login to merge, or discard this patch.
app/Http/Controllers/Private/ChatsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $user = Auth::user();
21 21
 
22
-        return Conversation::where(function ($query) use ($user) {
22
+        return Conversation::where(function($query) use ($user) {
23 23
             $query->where('user_one', $user->id)
24 24
                 ->orWhere('user_two', $user->id);
25 25
         })
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
         $user = Auth::user();
51 51
 
52 52
         // Check if a chat already exists between the logged-in user and the receiver
53
-        $conversation = Conversation::where(function ($query) use ($user, $request) {
53
+        $conversation = Conversation::where(function($query) use ($user, $request) {
54 54
             $query->where('user_one', $user->id)
55 55
                 ->where('user_two', $request->user_two);
56
-        })->orWhere(function ($query) use ($user, $request) {
56
+        })->orWhere(function($query) use ($user, $request) {
57 57
             $query->where('user_one', $request->user_two)
58 58
                 ->where('user_two', $user->id);
59 59
         })->first();
60 60
 
61
-        if (! $conversation) {
61
+        if (!$conversation) {
62 62
             $conversation = new Conversation($request->input());
63 63
             $conversation->user_one = $user->id;
64 64
             $conversation->save();
Please login to merge, or discard this patch.
app/Http/Controllers/Paypal/CreateProduct.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
         $paypalProduct = PaypalProduct::where($product)->first();
30 30
 
31
-        if (! $paypalProduct) {
31
+        if (!$paypalProduct) {
32 32
             $pp = new PaypalSubscription();
33 33
             $response = $pp->createProduct($product);
34 34
             $product['paypal_id'] = $response['id'];
Please login to merge, or discard this patch.