Fonata
|
b6dccf5fa6
|
Use in_array() to make code more readable
|
2019-09-14 03:56:00 +02:00 |
|
Fonata
|
5ca540daa7
|
Avoid PhpStorm inspection for $value{0} on empty string (prevent E_NOTICE)
Here, $value is not empty, but the PhpStorm inspection doesn't get that.
I want to have zero warnings for this library.
|
2019-09-14 01:19:40 +02:00 |
|
Fonata
|
f89ed5978d
|
Simplified RegEx: {1} is the default and can be dropped
|
2019-09-14 01:17:09 +02:00 |
|
Fonata
|
f053cdde80
|
New feature: unparse now also understands $use_mb_convert_encoding
|
2019-09-14 01:14:41 +02:00 |
|
Fonata
|
62ae4e5fc3
|
Formated code using PhpStorm 2019.2.1 - only DocBlocks changed
|
2019-09-14 01:05:21 +02:00 |
|
Fonata
|
637f79c2e6
|
Improved documentation and parameter declaration
No functional changes.
|
2019-03-22 08:17:55 +01:00 |
|
Fonata
|
e3105d4003
|
Renamed protected functions: no end user should be tempted to call them
|
2019-03-22 08:17:55 +01:00 |
|
Fonata
|
531ac26e11
|
Improved spelling in comments
|
2019-02-23 12:44:31 +01:00 |
|
Susann Sgorzaly
|
52ad56c66a
|
fixes unparse bug if no data for unparsing remain (comments #150)
|
2018-11-14 08:26:39 +01:00 |
|
Susann Sgorzaly
|
ab9e8a0af9
|
fixes unparse bug if array ids doesn't begin on zero (comments#149)
|
2018-11-14 08:26:39 +01:00 |
|
Fonata
|
8aa61914f7
|
Function load_data: check length of input, prevents E_NOTICE if too long
Fixes #151
|
2018-09-25 00:35:03 +02:00 |
|
Fonata
|
55890da647
|
Replace fread with file_get_contents to avoid the 8192 byte limit
This can happen when using streams.
Specific problem occurred with a file uploaded with Drupal's ``managed_file``
Form API element.
See https://secure.php.net/manual/en/function.fread.php
|
2018-07-31 21:59:04 +02:00 |
|
Fonata
|
b82ad03bd5
|
Ignore entirely empty lines at the end of files
Closes #141
|
2018-04-29 11:08:40 +02:00 |
|
Fonata
|
de8e792ef4
|
Merge branch 'feature-datacollections'
Conflicts:
src/Csv.php
|
2018-04-02 14:40:32 +02:00 |
|
William Knauss
|
406e1e415f
|
added getCollection method that returns a Illuminate\Support\Collection object - useful for using the mapping functions
|
2018-04-02 14:32:17 +02:00 |
|
Fonata
|
927e785891
|
Merge pull request #133 from parsecsv/fixing-132-output-with-fields
Bug fix: calling ->output() with $fields parameter set
|
2018-03-28 13:25:05 +02:00 |
|
Fonata
|
bdd4e5ef25
|
Merge branch 'master' into offset-comment-and-tests
Conflicts:
tests/methods/ParseTest.php
|
2018-03-17 12:42:18 +01:00 |
|
Fonata
|
93f177a396
|
Merged two ifs in _validate_row_condition to prevent
This is to a sane count of zero PhpStorm inspections. In particular,
this is NestedPositiveIfStatementsInspection from EA Extended.
|
2018-03-17 12:17:25 +01:00 |
|
Fonata
|
f5ff7332a4
|
Set $data field on unparse. This fixes issue #132.
|
2018-03-17 12:16:39 +01:00 |
|
Fonata
|
4b60d38fb0
|
Tell PhpStorm not to complain about reference mismatch
http://blog.jpauli.tech/2014/06/27/references-mismatch.html#what-is-a-reference-mismatch
|
2018-03-17 12:05:01 +01:00 |
|
Fonata
|
c8d15557cb
|
Fixed parse()'s return value: return true only if $data is useful
|
2018-03-17 12:05:01 +01:00 |
|
Fonata
|
10895788c8
|
Slightly simplified getTotalDataRowCount, added test
The brackets () in the pattern were not needed, as only
$matches[0] was accessed, not $matches[1].
The @var is useful for PhpStorm's Php Inspections (EA Extended).
More details here: https://github.com/kalessil/phpinspectionsea/blob/master/docs/types-compatibility.md#foreach-source-to-iterate-over
|
2018-03-17 12:05:01 +01:00 |
|
Fonata
|
ffed7ffdc0
|
Only improved PHPDoc blocks, including sentance for output()
|
2018-03-17 12:05:01 +01:00 |
|
Fonata
|
7498a963ac
|
_validate_fields_for_unparse: more info in UnexpectedValueException
|
2018-03-17 11:42:44 +01:00 |
|
Fonata
|
49728a74bb
|
Only reformatted the source code
|
2018-03-17 10:31:09 +01:00 |
|
Susann Sgorzaly
|
5bc6d09b5e
|
fixes bug on _validate_fields_for_unparse() if titles property is used instead of fields parameter for changing the titles for unparsing
|
2018-03-12 08:25:42 +01:00 |
|
susgo
|
b7f2075efc
|
Fix #41: output order and subset (#126)
* init unparse tests for ordering and subseting by fields
* added one test for heading=false
* implements functionality of this issue
|
2018-03-11 11:14:53 +01:00 |
|
Christian Bläul
|
03bc946b98
|
Sorted uses alphabetically, removed version
The repo is no longer on version 1.0.0. The ChangeLog.txt file is a
more obvious place for people to see which version includes what.
|
2018-03-07 09:45:48 +01:00 |
|
Christian Bläul
|
8f431aa7a4
|
Merge remote-tracking branch 'itexia/refactoring-constants'
|
2018-03-07 09:43:22 +01:00 |
|
Fonata
|
1142ef2611
|
Merge pull request #124 from itexia/new-enums-for-docu
New Enum class for file processing (save + unparse) + Documentation
|
2018-03-07 09:35:01 +01:00 |
|
Fonata
|
80a4954a3a
|
Merge pull request #122 from itexia/get-total-row-count
New feature: get total row count - useful if $limit is set.
|
2018-03-07 09:30:36 +01:00 |
|
Christian Bläul
|
4b6b7ee0b8
|
Removed -rc.2 from version, as it is officially released now
|
2018-03-03 11:55:57 +01:00 |
|
Christian Bläul
|
9d7ccab20f
|
Improved comment and test data to show how the offset is counted.
|
2018-03-02 17:50:01 +01:00 |
|
Christian Bläul
|
3af94399e6
|
Semantic versioning: Marked the current state of the repo as 1.0.0-rc.2
|
2018-03-02 17:15:31 +01:00 |
|
Christian Bläul
|
fd63ff4a26
|
Removed examples from class file as they are also in the README.md
|
2018-03-02 17:15:31 +01:00 |
|
Christian Bläul
|
c9e7997643
|
Don't break people's code just because they don't have Composer
|
2018-03-02 17:15:31 +01:00 |
|
Christian Bläul
|
d05577d303
|
output(): Use better mime type for \t separator.
Fixes #79
|
2018-03-02 17:13:45 +01:00 |
|
Susann Sgorzaly
|
11b20a3144
|
fixes #42. If csv has heading and offset is set, first row will always be parsed
|
2018-02-27 15:10:55 +01:00 |
|
Susann Sgorzaly
|
48a3cdbc5c
|
new enum for file processing mode. extended documentation (comments #112)
|
2018-02-27 14:18:00 +01:00 |
|
Susann Sgorzaly
|
68b849a37b
|
corrected regex to fit all given enclosures. Added test for single enclosure
|
2018-02-26 08:55:51 +01:00 |
|
Susann Sgorzaly
|
aaefe2a480
|
introduces new local variable that holds the data
|
2018-02-26 08:50:35 +01:00 |
|
Susann Sgorzaly
|
611b1a92e8
|
use strpos instead of preg_match
|
2018-02-26 08:46:41 +01:00 |
|
Susann Sgorzaly
|
9e5c97328d
|
renamed function to getTotalDataRowCount
|
2018-02-26 08:33:09 +01:00 |
|
Susann Sgorzaly
|
b6247c367c
|
reformat code; only extended comment for new function
|
2018-02-26 08:31:46 +01:00 |
|
Susann Sgorzaly
|
ba4cc0672a
|
reformat code
|
2018-02-26 06:57:40 +01:00 |
|
Susann Sgorzaly
|
c9cc9697ef
|
new feature: getting total data row count without parsing all data
|
2018-02-24 16:55:45 +01:00 |
|
Susann Sgorzaly
|
f8fe4cad03
|
change accessibility of parse_file and parse_string
|
2018-02-23 10:37:12 +01:00 |
|
Susann Sgorzaly
|
95521cde87
|
reset file property if input is string
|
2018-02-23 10:17:09 +01:00 |
|
Susann Sgorzaly
|
249e5a24ac
|
readded missing return statement in parse-function
|
2018-02-23 10:14:01 +01:00 |
|
Susann Sgorzaly
|
cf91bf40ff
|
now compatible with old sorting values
|
2018-02-23 08:11:56 +01:00 |
|