private function throwTableExceptions($tables, $requestedTables)
    {
        $foundTables = [];
        foreach ($tables as $table) {
            $foundTables[] = $table['name'];
        }

        foreach ($requestedTables as $requestedTable) {
            if (array_search($requestedTable, $foundTables) === false) {
                throw new exceptions\TableNotFoundException($requestedTable
                    ? "$requestedTable not found on target database."
                    : 'Please specify a table name.'
                );
            }
        }
    }
private function throwTableExceptions($tables, $requestedTables)
    {
        $foundTables = [];
        foreach ($tables as $table) {
            $foundTables[] = $table['name'];
        }

        foreach ($requestedTables as $requestedTable) {
            if (array_search($requestedTable, $foundTables) === false) {
                throw new exceptions\TableNotFoundException($requestedTable
                    ? "$requestedTable not found on target database."
                    : 'Please specify a table name.'
                );
            }
        }
    }
private function throwTableExceptions ( $ tables , $ requestedTables ) { $ foundTables = [ ] ; foreach ( $ tables as $ table ) { $ foundTables [ ] = $ table [ 'name' ] ; } foreach ( $ requestedTables as $ requestedTable ) { if ( array_search ( $ requestedTable , $ foundTables ) === false ) { throw new exceptions \ TableNotFoundException ( $ requestedTable ? "$requestedTable not found on target database." : 'Please specify a table name.' ) ; } } }
Throws exceptions for which are found in the list of requested tables
but not found in the list of found tables.

@param array $tables
@param array $requestedTables

@throws exceptions\TableNotFoundException
Throws exceptions for which are found in the list of requested tables but not found in the list of found tables .