This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM php:7.4-fpm | |
| WORKDIR /var/www/html | |
| RUN apt-get update \ | |
| && apt-get install --quiet --yes --no-install-recommends \ | |
| libzip-dev \ | |
| unzip \ | |
| && docker-php-ext-install zip pdo pdo_mysql \ | |
| && pecl install -o -f xdebug \ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Classes; | |
| use Exception; | |
| use PDO; | |
| use PDOException; | |
| abstract class ParentImportScript | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Classes; | |
| class ChildImportScript extends ParentImportScript | |
| { | |
| /** | |
| * @return string | |
| */ | |
| protected function getTable(): string | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Classes; | |
| class CsvFileHelper | |
| { | |
| /** | |
| * @var resource $file | |
| */ | |
| protected $file; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Classes; | |
| use App\Classes\Contracts\FlexibleConsoleOutputStyleInterface; | |
| use App\Classes\Traits\FlexibleConsoleOutputterTrait; | |
| use DB; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Support\Collection; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| abstract class TestCase extends BaseTestCase | |
| { | |
| use CreatesApplication; | |
| protected function setUpTraits() | |
| { | |
| $uses = array_flip(class_uses_recursive(static::class)); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| trait CustomRefreshDatabase | |
| { | |
| protected function refreshTestDatabase() | |
| { | |
| if (!RefreshDatabaseState::$migrated) { | |
| $this->artisan('custom-migrate', [ | |
| ' — refresh' => true, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Console\Commands; | |
| use DB; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Database\DatabaseManager; | |
| class CustomMigrateCommand extends Command | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Classes; | |
| use Doctrine\DBAL\Types\Types; | |
| use Illuminate\Console\OutputStyle; | |
| use Illuminate\Database\Connection; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Query\Grammars\Grammar; | |
| use Illuminate\Support\Arr; |