diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-08-18 13:29:22 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-08-18 13:29:22 +0300 |
commit | 44a5fa48fef0adb9389ef1ee2a7c65e11575d9e4 (patch) | |
tree | cdbf6c183e149c10f253682c7470b684b5434bac /lib | |
parent | 5b2a63a462e920e0f745c826bdb9fd252c66acec (diff) |
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Model/ExtendedBase.php | 36 | ||||
-rw-r--r-- | lib/Model/SearchRequest.php | 14 | ||||
-rw-r--r-- | lib/Service/MiscService.php | 2 |
3 files changed, 26 insertions, 26 deletions
diff --git a/lib/Model/ExtendedBase.php b/lib/Model/ExtendedBase.php index 2b5c25e..b808f4f 100644 --- a/lib/Model/ExtendedBase.php +++ b/lib/Model/ExtendedBase.php @@ -51,22 +51,22 @@ class ExtendedBase extends Base { throw new InterruptException('Interrupted by user.'); } } - - - /** - * @param OutputInterface $output - * - * @deprecated - */ - public function setOutput(OutputInterface $output) { - $this->output = $output; - } - - /** - * @return OutputInterface - * @deprecated - */ - public function getOutput() { - return $this->output; - } +// +// +// /** +// * @param OutputInterface $output +// * +// * @deprecated +// */ +// public function setOutput(OutputInterface $output) { +// $this->output = $output; +// } +// +// /** +// * @return OutputInterface +// * @deprecated +// */ +// public function getOutput() { +// return $this->output; +// } }
\ No newline at end of file diff --git a/lib/Model/SearchRequest.php b/lib/Model/SearchRequest.php index 158524e..8c70a46 100644 --- a/lib/Model/SearchRequest.php +++ b/lib/Model/SearchRequest.php @@ -503,13 +503,13 @@ class SearchRequest implements \JsonSerializable { public static function fromArray($arr) { $request = new SearchRequest(); $request->setProviders($arr['providers']); - $request->setAuthor(MiscService::get($arr, 'author', '')); - $request->setSearch(MiscService::get($arr, 'search', '')); - $request->setPage(MiscService::get($arr, 'page', 0)); - $request->setParts(MiscService::get($arr, 'parts', [])); - $request->setSize(MiscService::get($arr, 'size', 10)); - $request->setOptions(MiscService::get($arr, 'options', [])); - $request->setTags(MiscService::get($arr, 'tags', [])); + $request->setAuthor(MiscService::get('author', $arr, '')); + $request->setSearch(MiscService::get('search', $arr, '')); + $request->setPage(MiscService::get('page', $arr, 0)); + $request->setParts(MiscService::get('parts', $arr, [])); + $request->setSize(MiscService::get('size', $arr, 10)); + $request->setOptions(MiscService::get('options', $arr, [])); + $request->setTags(MiscService::get('tags', $arr, [])); return $request; } diff --git a/lib/Service/MiscService.php b/lib/Service/MiscService.php index 9b35995..9c42fd5 100644 --- a/lib/Service/MiscService.php +++ b/lib/Service/MiscService.php @@ -55,7 +55,7 @@ class MiscService { * * @return array|string|integer */ - public static function get($arr, $k, $default = '') { + public static function get($k, $arr, $default = '') { if ($arr === null) { return $default; } |