original_string: public static function persistentFake($disk = null)
      {
          $disk = $disk ?: self::$app['config']->get('filesystems.default');
  
          static::set($disk, $fake = self::createLocalDriver([
              'root' => storage_path('framework/testing/disks/'.$disk),
          ]));
  
          return $fake;
      }
code: public static function persistentFake($disk = null)
      {
          $disk = $disk ?: self::$app['config']->get('filesystems.default');
  
          static::set($disk, $fake = self::createLocalDriver([
              'root' => storage_path('framework/testing/disks/'.$disk),
          ]));
  
          return $fake;
      }
code_tokens: public static function persistentFake ( $ disk = null ) { $ disk = $ disk ? : self :: $ app [ 'config' ] -> get ( 'filesystems.default' ) ; static :: set ( $ disk , $ fake = self :: createLocalDriver ( [ 'root' => storage_path ( 'framework/testing/disks/' . $ disk ) , ] ) ) ; return $ fake ; }
docstring: Replace the given disk with a persistent local testing disk.
  
  @param  string|null  $disk
  @return \Illuminate\Filesystem\Filesystem
docstring_tokens: Replace the given disk with a persistent local testing disk .