Chargement en cours .gitattributes +0 −40 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -474,10 +474,6 @@ lettres/hr-small.gif -text lettres/top-arrow.gif -text lib/Spout/Autoloader/Psr4Autoloader.php -text lib/Spout/Autoloader/autoload.php -text lib/Spout/Common/Escaper/CSV.php -text lib/Spout/Common/Escaper/EscaperInterface.php -text lib/Spout/Common/Escaper/ODS.php -text lib/Spout/Common/Escaper/XLSX.php -text lib/Spout/Common/Exception/EncodingConversionException.php -text lib/Spout/Common/Exception/IOException.php -text lib/Spout/Common/Exception/InvalidArgumentException.php -text Chargement en cours @@ -487,15 +483,11 @@ lib/Spout/Common/Helper/EncodingHelper.php -text lib/Spout/Common/Helper/FileSystemHelper.php -text lib/Spout/Common/Helper/GlobalFunctionsHelper.php -text lib/Spout/Common/Helper/StringHelper.php -text lib/Spout/Common/Singleton.php -text lib/Spout/Common/Type.php -text lib/Spout/Reader/AbstractReader.php -text lib/Spout/Reader/CSV/Reader.php -text lib/Spout/Reader/CSV/ReaderOptions.php -text lib/Spout/Reader/CSV/RowIterator.php -text lib/Spout/Reader/CSV/Sheet.php -text lib/Spout/Reader/CSV/SheetIterator.php -text lib/Spout/Reader/Common/ReaderOptions.php -text lib/Spout/Reader/Common/XMLProcessor.php -text lib/Spout/Reader/Exception/IteratorNotRewindableException.php -text lib/Spout/Reader/Exception/NoSheetsFoundException.php -text Chargement en cours @@ -507,11 +499,9 @@ lib/Spout/Reader/IteratorInterface.php -text lib/Spout/Reader/ODS/Helper/CellValueFormatter.php -text lib/Spout/Reader/ODS/Helper/SettingsHelper.php -text lib/Spout/Reader/ODS/Reader.php -text lib/Spout/Reader/ODS/ReaderOptions.php -text lib/Spout/Reader/ODS/RowIterator.php -text lib/Spout/Reader/ODS/Sheet.php -text lib/Spout/Reader/ODS/SheetIterator.php -text lib/Spout/Reader/ReaderFactory.php -text lib/Spout/Reader/ReaderInterface.php -text lib/Spout/Reader/SheetInterface.php -text lib/Spout/Reader/Wrapper/XMLInternalErrorsHelper.php -text Chargement en cours @@ -519,32 +509,16 @@ lib/Spout/Reader/Wrapper/XMLReader.php -text lib/Spout/Reader/XLSX/Helper/CellHelper.php -text lib/Spout/Reader/XLSX/Helper/CellValueFormatter.php -text lib/Spout/Reader/XLSX/Helper/DateFormatHelper.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsCaching/CachingStrategyFactory.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsCaching/CachingStrategyInterface.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsCaching/FileBasedStrategy.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsCaching/InMemoryStrategy.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsHelper.php -text lib/Spout/Reader/XLSX/Helper/SheetHelper.php -text lib/Spout/Reader/XLSX/Helper/StyleHelper.php -text lib/Spout/Reader/XLSX/Reader.php -text lib/Spout/Reader/XLSX/ReaderOptions.php -text lib/Spout/Reader/XLSX/RowIterator.php -text lib/Spout/Reader/XLSX/Sheet.php -text lib/Spout/Reader/XLSX/SheetIterator.php -text lib/Spout/Writer/AbstractMultiSheetsWriter.php -text lib/Spout/Writer/AbstractWriter.php -text lib/Spout/Writer/CSV/Writer.php -text lib/Spout/Writer/Common/Helper/AbstractStyleHelper.php -text lib/Spout/Writer/Common/Helper/CellHelper.php -text lib/Spout/Writer/Common/Helper/ZipHelper.php -text lib/Spout/Writer/Common/Internal/AbstractWorkbook.php -text lib/Spout/Writer/Common/Internal/WorkbookInterface.php -text lib/Spout/Writer/Common/Internal/WorksheetInterface.php -text lib/Spout/Writer/Common/Sheet.php -text lib/Spout/Writer/Exception/Border/InvalidNameException.php -text lib/Spout/Writer/Exception/Border/InvalidStyleException.php -text lib/Spout/Writer/Exception/Border/InvalidWidthException.php -text lib/Spout/Writer/Exception/InvalidColorException.php -text lib/Spout/Writer/Exception/InvalidSheetNameException.php -text lib/Spout/Writer/Exception/SheetNotFoundException.php -text lib/Spout/Writer/Exception/WriterAlreadyOpenedException.php -text Chargement en cours @@ -552,24 +526,10 @@ lib/Spout/Writer/Exception/WriterException.php -text lib/Spout/Writer/Exception/WriterNotOpenedException.php -text lib/Spout/Writer/ODS/Helper/BorderHelper.php -text lib/Spout/Writer/ODS/Helper/FileSystemHelper.php -text lib/Spout/Writer/ODS/Helper/StyleHelper.php -text lib/Spout/Writer/ODS/Internal/Workbook.php -text lib/Spout/Writer/ODS/Internal/Worksheet.php -text lib/Spout/Writer/ODS/Writer.php -text lib/Spout/Writer/Style/Border.php -text lib/Spout/Writer/Style/BorderBuilder.php -text lib/Spout/Writer/Style/BorderPart.php -text lib/Spout/Writer/Style/Color.php -text lib/Spout/Writer/Style/Style.php -text lib/Spout/Writer/Style/StyleBuilder.php -text lib/Spout/Writer/WriterFactory.php -text lib/Spout/Writer/WriterInterface.php -text lib/Spout/Writer/XLSX/Helper/BorderHelper.php -text lib/Spout/Writer/XLSX/Helper/FileSystemHelper.php -text lib/Spout/Writer/XLSX/Helper/SharedStringsHelper.php -text lib/Spout/Writer/XLSX/Helper/StyleHelper.php -text lib/Spout/Writer/XLSX/Internal/Workbook.php -text lib/Spout/Writer/XLSX/Internal/Worksheet.php -text lib/Spout/Writer/XLSX/Writer.php -text lib/Spout/version.txt -text /liste_mail.html -text Chargement en cours comptetraduction_export_fonctions.php +17 −7 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -2,8 +2,9 @@ require_once find_in_path('lib/Spout/Autoloader/autoload.php'); use Box\Spout\Writer\WriterFactory; use Box\Spout\Common\Type; use Box\Spout\Writer\Common\Creator\WriterEntityFactory; use Box\Spout\Writer\Common\Creator\Style\StyleBuilder; use Box\Spout\Common\Entity\Style\Color; function trad_export_csv($trads) { Chargement en cours @@ -14,12 +15,21 @@ function trad_export_csv($trads) { 'Contenu' ); $writer = WriterFactory::create(Type::XLSX); // for XLSX files $defaultStyle = (new StyleBuilder()) ->setFontName('Arial') ->setFontSize(11) ->build(); $writer->openToBrowser('traduction'); // stream data directly to the browser $writer->addRow($entetes); // add a row at a time $writer->addRows($trads); // add multiple rows at a time $writer = WriterEntityFactory::createXLSXWriter(); // for XLSX files $writer->openToBrowser('traduction.xlsx'); // stream data directly to the browser $writer->addRow(WriterEntityFactory::createRowFromArray($entetes, $defaultStyle)); // add a row at a time foreach ($trads as $trad) { $writer->addRow(WriterEntityFactory::createRowFromArray($trad, $defaultStyle)); } $writer->close(); } No newline at end of file lib/Spout/Autoloader/Psr4Autoloader.php +6 −8 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -5,8 +5,6 @@ namespace Box\Spout\Autoloader; /** * Class Psr4Autoloader * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md#class-example * * @package Box\Spout\Autoloader */ class Psr4Autoloader { Chargement en cours @@ -16,7 +14,7 @@ class Psr4Autoloader * * @var array */ protected $prefixes = array(); protected $prefixes = []; /** * Register loader with SPL autoloader stack. Chargement en cours @@ -25,7 +23,7 @@ class Psr4Autoloader */ public function register() { spl_autoload_register(array($this, 'loadClass')); spl_autoload_register([$this, 'loadClass']); } /** Chargement en cours @@ -49,7 +47,7 @@ class Psr4Autoloader // initialize the namespace prefix array if (isset($this->prefixes[$prefix]) === false) { $this->prefixes[$prefix] = array(); $this->prefixes[$prefix] = []; } // retain the base directory for the namespace prefix Chargement en cours @@ -74,8 +72,7 @@ class Psr4Autoloader // work backwards through the namespace names of the fully-qualified // class name to find a mapped file name while (false !== $pos = strrpos($prefix, '\\')) { while (($pos = strrpos($prefix, '\\')) !== false) { // retain the trailing namespace separator in the prefix $prefix = substr($class, 0, $pos + 1); Chargement en cours Chargement en cours @@ -114,7 +111,6 @@ class Psr4Autoloader // look through base directories for this namespace prefix foreach ($this->prefixes[$prefix] as $baseDir) { // replace the namespace prefix with the base directory, // replace namespace separators with directory separators // in the relative class name, append with .php Chargement en cours Chargement en cours @@ -143,8 +139,10 @@ class Psr4Autoloader { if (file_exists($file)) { require $file; return true; } return false; } } lib/Spout/Autoloader/autoload.php +1 −1 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -5,7 +5,7 @@ namespace Box\Spout\Autoloader; require_once 'Psr4Autoloader.php'; /** * @var string $srcBaseDirectory * @var string * Full path to "src/Spout" which is what we want "Box\Spout" to map to. */ $srcBaseDirectory = dirname(dirname(__FILE__)); Chargement en cours lib/Spout/Common/Escaper/CSV.phpsupprimé 100644 → 0 +0 −38 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff <?php namespace Box\Spout\Common\Escaper; /** * Class CSV * Provides functions to escape and unescape data for CSV files * * @package Box\Spout\Common\Escaper */ class CSV implements EscaperInterface { /** * Escapes the given string to make it compatible with CSV * * @codeCoverageIgnore * * @param string $string The string to escape * @return string The escaped string */ public function escape($string) { return $string; } /** * Unescapes the given string to make it compatible with CSV * * @codeCoverageIgnore * * @param string $string The string to unescape * @return string The unescaped string */ public function unescape($string) { return $string; } } Chargement en cours
.gitattributes +0 −40 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -474,10 +474,6 @@ lettres/hr-small.gif -text lettres/top-arrow.gif -text lib/Spout/Autoloader/Psr4Autoloader.php -text lib/Spout/Autoloader/autoload.php -text lib/Spout/Common/Escaper/CSV.php -text lib/Spout/Common/Escaper/EscaperInterface.php -text lib/Spout/Common/Escaper/ODS.php -text lib/Spout/Common/Escaper/XLSX.php -text lib/Spout/Common/Exception/EncodingConversionException.php -text lib/Spout/Common/Exception/IOException.php -text lib/Spout/Common/Exception/InvalidArgumentException.php -text Chargement en cours @@ -487,15 +483,11 @@ lib/Spout/Common/Helper/EncodingHelper.php -text lib/Spout/Common/Helper/FileSystemHelper.php -text lib/Spout/Common/Helper/GlobalFunctionsHelper.php -text lib/Spout/Common/Helper/StringHelper.php -text lib/Spout/Common/Singleton.php -text lib/Spout/Common/Type.php -text lib/Spout/Reader/AbstractReader.php -text lib/Spout/Reader/CSV/Reader.php -text lib/Spout/Reader/CSV/ReaderOptions.php -text lib/Spout/Reader/CSV/RowIterator.php -text lib/Spout/Reader/CSV/Sheet.php -text lib/Spout/Reader/CSV/SheetIterator.php -text lib/Spout/Reader/Common/ReaderOptions.php -text lib/Spout/Reader/Common/XMLProcessor.php -text lib/Spout/Reader/Exception/IteratorNotRewindableException.php -text lib/Spout/Reader/Exception/NoSheetsFoundException.php -text Chargement en cours @@ -507,11 +499,9 @@ lib/Spout/Reader/IteratorInterface.php -text lib/Spout/Reader/ODS/Helper/CellValueFormatter.php -text lib/Spout/Reader/ODS/Helper/SettingsHelper.php -text lib/Spout/Reader/ODS/Reader.php -text lib/Spout/Reader/ODS/ReaderOptions.php -text lib/Spout/Reader/ODS/RowIterator.php -text lib/Spout/Reader/ODS/Sheet.php -text lib/Spout/Reader/ODS/SheetIterator.php -text lib/Spout/Reader/ReaderFactory.php -text lib/Spout/Reader/ReaderInterface.php -text lib/Spout/Reader/SheetInterface.php -text lib/Spout/Reader/Wrapper/XMLInternalErrorsHelper.php -text Chargement en cours @@ -519,32 +509,16 @@ lib/Spout/Reader/Wrapper/XMLReader.php -text lib/Spout/Reader/XLSX/Helper/CellHelper.php -text lib/Spout/Reader/XLSX/Helper/CellValueFormatter.php -text lib/Spout/Reader/XLSX/Helper/DateFormatHelper.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsCaching/CachingStrategyFactory.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsCaching/CachingStrategyInterface.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsCaching/FileBasedStrategy.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsCaching/InMemoryStrategy.php -text lib/Spout/Reader/XLSX/Helper/SharedStringsHelper.php -text lib/Spout/Reader/XLSX/Helper/SheetHelper.php -text lib/Spout/Reader/XLSX/Helper/StyleHelper.php -text lib/Spout/Reader/XLSX/Reader.php -text lib/Spout/Reader/XLSX/ReaderOptions.php -text lib/Spout/Reader/XLSX/RowIterator.php -text lib/Spout/Reader/XLSX/Sheet.php -text lib/Spout/Reader/XLSX/SheetIterator.php -text lib/Spout/Writer/AbstractMultiSheetsWriter.php -text lib/Spout/Writer/AbstractWriter.php -text lib/Spout/Writer/CSV/Writer.php -text lib/Spout/Writer/Common/Helper/AbstractStyleHelper.php -text lib/Spout/Writer/Common/Helper/CellHelper.php -text lib/Spout/Writer/Common/Helper/ZipHelper.php -text lib/Spout/Writer/Common/Internal/AbstractWorkbook.php -text lib/Spout/Writer/Common/Internal/WorkbookInterface.php -text lib/Spout/Writer/Common/Internal/WorksheetInterface.php -text lib/Spout/Writer/Common/Sheet.php -text lib/Spout/Writer/Exception/Border/InvalidNameException.php -text lib/Spout/Writer/Exception/Border/InvalidStyleException.php -text lib/Spout/Writer/Exception/Border/InvalidWidthException.php -text lib/Spout/Writer/Exception/InvalidColorException.php -text lib/Spout/Writer/Exception/InvalidSheetNameException.php -text lib/Spout/Writer/Exception/SheetNotFoundException.php -text lib/Spout/Writer/Exception/WriterAlreadyOpenedException.php -text Chargement en cours @@ -552,24 +526,10 @@ lib/Spout/Writer/Exception/WriterException.php -text lib/Spout/Writer/Exception/WriterNotOpenedException.php -text lib/Spout/Writer/ODS/Helper/BorderHelper.php -text lib/Spout/Writer/ODS/Helper/FileSystemHelper.php -text lib/Spout/Writer/ODS/Helper/StyleHelper.php -text lib/Spout/Writer/ODS/Internal/Workbook.php -text lib/Spout/Writer/ODS/Internal/Worksheet.php -text lib/Spout/Writer/ODS/Writer.php -text lib/Spout/Writer/Style/Border.php -text lib/Spout/Writer/Style/BorderBuilder.php -text lib/Spout/Writer/Style/BorderPart.php -text lib/Spout/Writer/Style/Color.php -text lib/Spout/Writer/Style/Style.php -text lib/Spout/Writer/Style/StyleBuilder.php -text lib/Spout/Writer/WriterFactory.php -text lib/Spout/Writer/WriterInterface.php -text lib/Spout/Writer/XLSX/Helper/BorderHelper.php -text lib/Spout/Writer/XLSX/Helper/FileSystemHelper.php -text lib/Spout/Writer/XLSX/Helper/SharedStringsHelper.php -text lib/Spout/Writer/XLSX/Helper/StyleHelper.php -text lib/Spout/Writer/XLSX/Internal/Workbook.php -text lib/Spout/Writer/XLSX/Internal/Worksheet.php -text lib/Spout/Writer/XLSX/Writer.php -text lib/Spout/version.txt -text /liste_mail.html -text Chargement en cours
comptetraduction_export_fonctions.php +17 −7 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -2,8 +2,9 @@ require_once find_in_path('lib/Spout/Autoloader/autoload.php'); use Box\Spout\Writer\WriterFactory; use Box\Spout\Common\Type; use Box\Spout\Writer\Common\Creator\WriterEntityFactory; use Box\Spout\Writer\Common\Creator\Style\StyleBuilder; use Box\Spout\Common\Entity\Style\Color; function trad_export_csv($trads) { Chargement en cours @@ -14,12 +15,21 @@ function trad_export_csv($trads) { 'Contenu' ); $writer = WriterFactory::create(Type::XLSX); // for XLSX files $defaultStyle = (new StyleBuilder()) ->setFontName('Arial') ->setFontSize(11) ->build(); $writer->openToBrowser('traduction'); // stream data directly to the browser $writer->addRow($entetes); // add a row at a time $writer->addRows($trads); // add multiple rows at a time $writer = WriterEntityFactory::createXLSXWriter(); // for XLSX files $writer->openToBrowser('traduction.xlsx'); // stream data directly to the browser $writer->addRow(WriterEntityFactory::createRowFromArray($entetes, $defaultStyle)); // add a row at a time foreach ($trads as $trad) { $writer->addRow(WriterEntityFactory::createRowFromArray($trad, $defaultStyle)); } $writer->close(); } No newline at end of file
lib/Spout/Autoloader/Psr4Autoloader.php +6 −8 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -5,8 +5,6 @@ namespace Box\Spout\Autoloader; /** * Class Psr4Autoloader * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md#class-example * * @package Box\Spout\Autoloader */ class Psr4Autoloader { Chargement en cours @@ -16,7 +14,7 @@ class Psr4Autoloader * * @var array */ protected $prefixes = array(); protected $prefixes = []; /** * Register loader with SPL autoloader stack. Chargement en cours @@ -25,7 +23,7 @@ class Psr4Autoloader */ public function register() { spl_autoload_register(array($this, 'loadClass')); spl_autoload_register([$this, 'loadClass']); } /** Chargement en cours @@ -49,7 +47,7 @@ class Psr4Autoloader // initialize the namespace prefix array if (isset($this->prefixes[$prefix]) === false) { $this->prefixes[$prefix] = array(); $this->prefixes[$prefix] = []; } // retain the base directory for the namespace prefix Chargement en cours @@ -74,8 +72,7 @@ class Psr4Autoloader // work backwards through the namespace names of the fully-qualified // class name to find a mapped file name while (false !== $pos = strrpos($prefix, '\\')) { while (($pos = strrpos($prefix, '\\')) !== false) { // retain the trailing namespace separator in the prefix $prefix = substr($class, 0, $pos + 1); Chargement en cours Chargement en cours @@ -114,7 +111,6 @@ class Psr4Autoloader // look through base directories for this namespace prefix foreach ($this->prefixes[$prefix] as $baseDir) { // replace the namespace prefix with the base directory, // replace namespace separators with directory separators // in the relative class name, append with .php Chargement en cours Chargement en cours @@ -143,8 +139,10 @@ class Psr4Autoloader { if (file_exists($file)) { require $file; return true; } return false; } }
lib/Spout/Autoloader/autoload.php +1 −1 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -5,7 +5,7 @@ namespace Box\Spout\Autoloader; require_once 'Psr4Autoloader.php'; /** * @var string $srcBaseDirectory * @var string * Full path to "src/Spout" which is what we want "Box\Spout" to map to. */ $srcBaseDirectory = dirname(dirname(__FILE__)); Chargement en cours
lib/Spout/Common/Escaper/CSV.phpsupprimé 100644 → 0 +0 −38 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff <?php namespace Box\Spout\Common\Escaper; /** * Class CSV * Provides functions to escape and unescape data for CSV files * * @package Box\Spout\Common\Escaper */ class CSV implements EscaperInterface { /** * Escapes the given string to make it compatible with CSV * * @codeCoverageIgnore * * @param string $string The string to escape * @return string The escaped string */ public function escape($string) { return $string; } /** * Unescapes the given string to make it compatible with CSV * * @codeCoverageIgnore * * @param string $string The string to unescape * @return string The unescaped string */ public function unescape($string) { return $string; } }