# give/4.16.9/src/MigrationLog/Helpers/Environment.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 35 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/MigrationLog/Helpers/Environment.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/MigrationLog/Helpers/Environment.php
- Modified: 2021-11-23T23:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/MigrationLog/Helpers/Environment.php#L10-L20`.

```php
<?php

namespace Give\MigrationLog\Helpers;

/**
 * Class Environment
 * @package Give\MigrationLog\Helpers
 *
 * @since 2.10.0
 */
class Environment
{
    /**
     * Check if current page is database updates page.
     *
     * @return bool
     */
    public static function isMigrationsPage()
    {
        if ( ! isset($_GET['page'], $_GET['tab'])) {
            return false;
        }

        if (
            'give-tools' === $_GET['page']
            && 'data' === $_GET['tab']
            && ( ! isset($_GET['section']) || 'database_updates' === $_GET['section'])
        ) {
            return true;
        }

        return false;
    }
}

```
