original_string: protected function printResult()
      {
          $errorCount = count($this->errors);
          if ($errorCount > 0) {
              $fileCount = count(static::getFilesFromPath($this->getPath()));
              if ($errorCount < $fileCount) {
                  $this->warn('Not all files were imported successfully. See details below.');
              } elseif ($errorCount == $fileCount) {
                  $this->error('None of your files where imported successfully. See details below.');
              }
              $this->warn('---------------------------------------------------------------------------------------');
              foreach ($this->errors as $error) {
                  $this->warn('Failed importing: ' . array_get($error, 'file'));
                  $this->warn('Error: ' . array_get($error, 'msg'));
                  $this->warn('---------------------------------------------------------------------------------------');
              }
          } else {
              $this->info('Successfully imported your file(s).');
          }
          $this->printImportLog();
      }
code: protected function printResult()
      {
          $errorCount = count($this->errors);
          if ($errorCount > 0) {
              $fileCount = count(static::getFilesFromPath($this->getPath()));
              if ($errorCount < $fileCount) {
                  $this->warn('Not all files were imported successfully. See details below.');
              } elseif ($errorCount == $fileCount) {
                  $this->error('None of your files where imported successfully. See details below.');
              }
              $this->warn('---------------------------------------------------------------------------------------');
              foreach ($this->errors as $error) {
                  $this->warn('Failed importing: ' . array_get($error, 'file'));
                  $this->warn('Error: ' . array_get($error, 'msg'));
                  $this->warn('---------------------------------------------------------------------------------------');
              }
          } else {
              $this->info('Successfully imported your file(s).');
          }
          $this->printImportLog();
      }
code_tokens: protected function printResult ( ) { $ errorCount = count ( $ this -> errors ) ; if ( $ errorCount > 0 ) { $ fileCount = count ( static :: getFilesFromPath ( $ this -> getPath ( ) ) ) ; if ( $ errorCount < $ fileCount ) { $ this -> warn ( 'Not all files were imported successfully. See details below.' ) ; } elseif ( $ errorCount == $ fileCount ) { $ this -> error ( 'None of your files where imported successfully. See details below.' ) ; } $ this -> warn ( '---------------------------------------------------------------------------------------' ) ; foreach ( $ this -> errors as $ error ) { $ this -> warn ( 'Failed importing: ' . array_get ( $ error , 'file' ) ) ; $ this -> warn ( 'Error: ' . array_get ( $ error , 'msg' ) ) ; $ this -> warn ( '---------------------------------------------------------------------------------------' ) ; } } else { $ this -> info ( 'Successfully imported your file(s).' ) ; } $ this -> printImportLog ( ) ; }
docstring: Prints result.
docstring_tokens: Prints result .