Commit Graph

38 Commits

Author SHA1 Message Date
wing328
90512e6326 Remove Apache license from API client generators (#4197)
* remove php apache license

* remove apache license from C#

* remove apache license in objc code

* remove license from swift 3 code

* remove apache license from perl code

* remove license from scala code

* remove license from ts, go, android, cpp, scala

* remove license from java api client

* restore clojure petstore files

* remove license from travis file

* clean up apache-related terms in php, ruby, python mustache tempaltes

* remove license from JS API cilent
2016-11-16 21:44:49 +08:00
wing328
0efa5cab35 Revert "[WIP] Improve PHP client emitted code quality" 2016-10-12 16:07:37 +08:00
Dalibor Karlović
19f1c7e095 feature(PHP QA) add initial PHP client template tweaks to improve emitted code quality 2016-09-29 08:48:24 +02:00
Dalibor Karlović
70fa2fb78e [PHP] Better PSR2 compatibility (#3863)
* feature(php-cs-fixer) add php-cs-fixer support

* feature(php-cs-fixer) tweak Mustache templates to fit PSR2

* feature(php-cs-fixer) bin/php-petstore.sh output
2016-09-27 08:23:44 +08:00
Ville Skyttä
91b7494e3e Spelling fixes 2016-09-06 14:45:04 +03:00
Kim Sondrup
1539986984 [PHP] Corrected PHPDoc type declarations (#3710)
* [PHP] Corrected PHPDoc type declarations

* Update petstore PHP
2016-09-03 16:06:07 +08:00
Arne Jørgensen
d9d3a41deb [PHP] add apache v2 license to PHP client
See #2963.
2016-05-25 22:53:01 +02:00
Mikolaj Przybysz
041c5d1d34 Replaced \n with PHP_EOL 2016-05-24 14:25:16 +02:00
Arne Jørgensen
cc395fdf63 [PHP] Improve generated codestyle 2016-05-14 13:45:41 +02:00
wing328
0b7d0c34af add debug switch to print out downloaded file info 2016-05-14 17:11:48 +08:00
Kim Sondrup
6bb953d0aa [PHP] Remove trailing spaces from templates 2016-05-13 00:31:45 +02:00
wing328
02ac7d93c5 minor php code improvement 2016-04-09 17:59:28 +08:00
Arne Jørgensen
07630c18eb Add polymorphism in the PHP client API 2016-03-18 00:48:50 +01:00
Arne Jørgensen
64454a16e0 Add inheritance in the PHP client model 2016-03-18 00:48:49 +01:00
Arne Jørgensen
3823612674 Use PHP's DateTime::ATOM for true ISO-8601 support
Currently we use PHP's DateTime::ISO8601 for the date-time properties
but according to
http://php.net/manual/en/class.datetime.php#datetime.constants.iso8601
it is actually not compatible with ISO-8601.

Instead we should use DateTime::ATOM.
2016-03-16 11:18:26 +01:00
Arne Jørgensen
65b78f7ffe Handle empty date-time gracefully
Some API's return an invalid, empty string as a date-time property.

DateTime::__construct() will return the current time for empty input
which is probably not what is meant.

The invalid empty string is probably to be interpreted as a missing
field/value.

Let's handle this graceful.
2016-03-15 06:46:51 +01:00
wing328
b5c0f17a02 update php to handle object type and add more test case 2016-03-05 14:25:01 +08:00
Elijah Miller
74536af3b9 Map binary to string in PHP since ByteArray is no longer in use. 2016-03-03 11:01:13 -05:00
Elijah Miller
6698c532e6 Keep PHP binary responses as strings for easier manipulation. 2016-03-03 11:01:13 -05:00
Christian Kaps
618351c11c Namespace is missing for SplFileObject reference 2016-01-22 12:17:58 +01:00
wing328
dcd2c00fe6 fix empty object serialization issue 2016-01-18 21:42:24 +08:00
wing328
9fd4f39c8c update tostring to use sanitizeforserialization 2016-01-18 21:27:29 +08:00
wing328
f54185c66d add binary support for php response 2016-01-15 11:43:02 +08:00
wing328
eebf743fad better filename handling in objectseralizer (php) 2016-01-11 16:16:49 +08:00
wing328
a8f5809370 replace httpHeader with httpHeaders in php object serializer 2016-01-08 14:04:10 +08:00
wing328
61e6cbef66 fix httpHeader (remove s) 2016-01-08 10:37:48 +08:00
Ron
3a2ad9e2e4 Happy new year! 2016-01-06 16:04:16 -08:00
Arne Jørgensen
d71d164843 Accept arrays as arguments to collection parameters. 2016-01-03 22:45:07 +01:00
wing328
340e60002e more style change for php client 2015-12-07 00:52:30 +08:00
wing328
b282d4fbea add http_parse_headers, update test case 2015-12-06 23:58:25 +08:00
Tony Tam
3160913433 update files as rebase from #838 2015-08-23 11:05:19 -07:00
wing328
f2df26f6e6 fix deserializing datetime, add test case 2015-08-22 23:09:12 +08:00
wing328
f154e407d2 update coding style based on CodeSniffer 2015-07-13 15:26:12 +08:00
wing328
2258a4632d fix test.php, fix default configuration 2015-07-13 15:21:39 +08:00
wing328
259b31ccd4 temporary folder setting 2015-07-13 15:21:38 +08:00
wing328
7f31da734d add file response for php, update test case 2015-07-13 15:09:09 +08:00
wing328
fcd0b31d7d add file response for php 2015-07-13 15:09:09 +08:00
Tony Tam
07d5365c5c merged from #902, rebuilt client 2015-06-25 10:17:28 -07:00