Fix more things
This commit is contained in:
parent
8e36678873
commit
8756a22c60
|
@ -152,6 +152,7 @@ class Manager extends PublicEmitter implements IGroupManager {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $gid
|
* @param string $gid
|
||||||
|
* @return \OCP\IGroup
|
||||||
*/
|
*/
|
||||||
protected function getGroupObject($gid) {
|
protected function getGroupObject($gid) {
|
||||||
$backends = array();
|
$backends = array();
|
||||||
|
|
|
@ -921,9 +921,9 @@ class Preview {
|
||||||
* @param int $askedWidth
|
* @param int $askedWidth
|
||||||
* @param int $askedHeight
|
* @param int $askedHeight
|
||||||
* @param int $previewWidth
|
* @param int $previewWidth
|
||||||
* @param integer $previewHeight
|
* @param int $previewHeight
|
||||||
*
|
*
|
||||||
* @return double[]
|
* @return int[]
|
||||||
*/
|
*/
|
||||||
private function scale($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight) {
|
private function scale($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight) {
|
||||||
$scalingUp = $this->getScalingUp();
|
$scalingUp = $this->getScalingUp();
|
||||||
|
@ -971,7 +971,7 @@ class Preview {
|
||||||
* @param int $askedWidth
|
* @param int $askedWidth
|
||||||
* @param int $askedHeight
|
* @param int $askedHeight
|
||||||
* @param int $previewWidth
|
* @param int $previewWidth
|
||||||
* @param double $previewHeight
|
* @param int $previewHeight
|
||||||
*/
|
*/
|
||||||
private function crop($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight = null) {
|
private function crop($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight = null) {
|
||||||
$cropX = floor(abs($askedWidth - $previewWidth) * 0.5);
|
$cropX = floor(abs($askedWidth - $previewWidth) * 0.5);
|
||||||
|
@ -990,7 +990,7 @@ class Preview {
|
||||||
* @param int $askedWidth
|
* @param int $askedWidth
|
||||||
* @param int $askedHeight
|
* @param int $askedHeight
|
||||||
* @param int $previewWidth
|
* @param int $previewWidth
|
||||||
* @param double $previewHeight
|
* @param int $previewHeight
|
||||||
*/
|
*/
|
||||||
private function cropAndFill($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight) {
|
private function cropAndFill($image, $askedWidth, $askedHeight, $previewWidth, $previewHeight) {
|
||||||
if ($previewWidth > $askedWidth) {
|
if ($previewWidth > $askedWidth) {
|
||||||
|
|
|
@ -35,8 +35,8 @@ interface IControllerMethodReflector {
|
||||||
/**
|
/**
|
||||||
* @param object $object an object or classname
|
* @param object $object an object or classname
|
||||||
* @param string $method the method which we want to inspect
|
* @param string $method the method which we want to inspect
|
||||||
* @since 8.0.0
|
|
||||||
* @return void
|
* @return void
|
||||||
|
* @since 8.0.0
|
||||||
*/
|
*/
|
||||||
public function reflect($object, $method);
|
public function reflect($object, $method);
|
||||||
|
|
||||||
|
|
|
@ -58,8 +58,7 @@ abstract class PagedProvider extends Provider {
|
||||||
* Search for $query
|
* Search for $query
|
||||||
* @param string $query
|
* @param string $query
|
||||||
* @param int $page pages start at page 1
|
* @param int $page pages start at page 1
|
||||||
* @param int $size, 0 = SIZE_ALL
|
* @param int $size 0 = SIZE_ALL
|
||||||
* @param integer $size
|
|
||||||
* @return array An array of OCP\Search\Result's
|
* @return array An array of OCP\Search\Result's
|
||||||
* @since 8.0.0
|
* @since 8.0.0
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue