Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added composer.json #19

Merged
merged 5 commits into from
Oct 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/
11 changes: 11 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "ethanclevenger91/amazon-wish-lister",
"description": "Retrieve Amazon Wishlist and output to JSON, XML, or PHP Array Object http://www.justinscarpetti.com/portfolio/amazon-wish-lister/. Forked Feb. 2016 to add Author & ISBN cap.",
"authors": [
{
"name": "Justin Scarpetti",
"homepage": "http://www.justinscarpetti.com/"
}
],
"require": {}
}
44 changes: 22 additions & 22 deletions src/phpquery.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ protected function loadMarkupHTML($markup, $requestedCharset = null) {
// @see http://www.w3.org/International/O-HTTP-charset
if (! $documentCharset) {
$documentCharset = 'ISO-8859-1';
$addDocumentCharset = true;
$addDocumentCharset = true;
}
// Should be careful here, still need 'magic encoding detection' since lots of pages have other 'default encoding'
// Worse, some pages can have mixed encodings... we'll try not to worry about that
Expand Down Expand Up @@ -567,7 +567,7 @@ public function import($source, $sourceCharset = null) {
// if ($fake === false)
// throw new Exception("Error loading documentFragment markup");
// else
// $return = array_merge($return,
// $return = array_merge($return,
// $this->import($fake->root->childNodes)
// );
// } else {
Expand Down Expand Up @@ -969,24 +969,24 @@ function getName();
}
/**
* Callback class introduces currying-like pattern.
*
*
* Example:
* function foo($param1, $param2, $param3) {
* var_dump($param1, $param2, $param3);
* }
* $fooCurried = new Callback('foo',
* 'param1 is now statically set',
* $fooCurried = new Callback('foo',
* 'param1 is now statically set',
* new CallbackParam, new CallbackParam
* );
* phpQuery::callbackRun($fooCurried,
* array('param2 value', 'param3 value'
* );
*
* Callback class is supported in all phpQuery methods which accepts callbacks.
*
* Callback class is supported in all phpQuery methods which accepts callbacks.
*
* @link http://code.google.com/p/phpquery/wiki/Callbacks#Param_Structures
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*
*
* @TODO??? return fake forwarding function created via create_function
* @TODO honor paramStructure
*/
Expand All @@ -995,7 +995,7 @@ class Callback
public $callback = null;
public $params = null;
protected $name;
public function __construct($callback, $param1 = null, $param2 = null,
public function __construct($callback, $param1 = null, $param2 = null,
$param3 = null) {
$params = func_get_args();
$params = array_slice($params, 1);
Expand Down Expand Up @@ -1024,11 +1024,11 @@ public function setName($name) {
}
/**
* Shorthand for new Callback(create_function(...), ...);
*
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
class CallbackBody extends Callback {
public function __construct($paramList, $code, $param1 = null, $param2 = null,
public function __construct($paramList, $code, $param1 = null, $param2 = null,
$param3 = null) {
$params = func_get_args();
$params = array_slice($params, 2);
Expand All @@ -1038,7 +1038,7 @@ public function __construct($paramList, $code, $param1 = null, $param2 = null,
}
/**
* Callback type which on execution returns reference passed during creation.
*
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
class CallbackReturnReference extends Callback
Expand All @@ -1060,7 +1060,7 @@ public function hasName() {
}
/**
* Callback type which on execution returns value passed during creation.
*
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
class CallbackReturnValue extends Callback
Expand All @@ -1087,15 +1087,15 @@ public function hasName() {
}
/**
* CallbackParameterToReference can be used when we don't really want a callback,
* only parameter passed to it. CallbackParameterToReference takes first
* only parameter passed to it. CallbackParameterToReference takes first
* parameter's value and passes it to reference.
*
* @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
*/
class CallbackParameterToReference extends Callback {
/**
* @param $reference
* @TODO implement $paramIndex;
* @TODO implement $paramIndex;
* param index choose which callback param will be passed to reference
*/
public function __construct(&$reference){
Expand Down Expand Up @@ -2994,7 +2994,7 @@ public function php($code = null) {
}
/**
* Enter description here...
*
*
* @param $code
* @return unknown_type
*/
Expand All @@ -3005,7 +3005,7 @@ public function markupPHP($code = null) {
}
/**
* Enter description here...
*
*
* @param $code
* @return unknown_type
*/
Expand Down Expand Up @@ -4034,7 +4034,7 @@ public function map($callback, $param1 = null, $param2 = null, $param3 = null) {
}
/**
* Enter description here...
*
*
* @param <type> $key
* @param <type> $value
*/
Expand All @@ -4051,7 +4051,7 @@ public function data($key, $value = null) {
}
/**
* Enter description here...
*
*
* @param <type> $key
*/
public function removeData($key) {
Expand Down Expand Up @@ -4392,8 +4392,8 @@ function mb_substr_count($haystack, $needle)
*/
abstract class phpQuery {
/**
* XXX: Workaround for mbstring problems
*
* XXX: Workaround for mbstring problems
*
* @var bool
*/
public static $mbstringSupport = true;
Expand Down Expand Up @@ -5699,4 +5699,4 @@ function pq($arg1, $context = null) {
phpQuery::$plugins = new phpQueryPlugins();
// include bootstrap file (personal library config)
if (file_exists(dirname(__FILE__).'/phpQuery/bootstrap.php'))
require_once dirname(__FILE__).'/phpQuery/bootstrap.php';
require_once dirname(__FILE__).'/phpQuery/bootstrap.php';
Loading