Completed
Pull Request — stable8.2 (#29162)
by Tom
11:55
created
tests/lib/files/node/node.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
 		$this->user = new \OC\User\User('', new \Test\Util\User\Dummy);
22 22
 	}
23 23
 
24
+	/**
25
+	 * @return \OC\Files\Storage\Storage
26
+	 */
24 27
 	protected function getMockStorage() {
25 28
 		$storage = $this->getMock('\OCP\Files\Storage');
26 29
 		$storage->expects($this->any())
Please login to merge, or discard this patch.
tests/lib/preview.php 1 patch
Doc Comments   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -625,6 +625,10 @@  discard block
 block discarded – undo
625 625
 		return $postfix;
626 626
 	}
627 627
 
628
+	/**
629
+	 * @param integer $previewWidth
630
+	 * @param integer $previewHeight
631
+	 */
628 632
 	private function getSmallerThanMaxPreview($fileId, $previewWidth, $previewHeight) {
629 633
 		$preview = $this->createPreview($previewWidth, $previewHeight);
630 634
 
@@ -644,6 +648,10 @@  discard block
 block discarded – undo
644 648
 		$this->cachedBigger[] = $preview->isCached($fileId);
645 649
 	}
646 650
 
651
+	/**
652
+	 * @param integer $width
653
+	 * @param integer $height
654
+	 */
647 655
 	private function createThumbnailFromBiggerCachedPreview($fileId, $width, $height) {
648 656
 		$preview = $this->createPreview($width, $height);
649 657
 
@@ -768,7 +776,7 @@  discard block
 block discarded – undo
768 776
 	 * Sets the variables used to define the boundaries which need to be respected when using a
769 777
 	 * specific sample
770 778
 	 *
771
-	 * @param $sampleId
779
+	 * @param integer $sampleId
772 780
 	 */
773 781
 	private function getSample($sampleId) {
774 782
 		$maxPreviewHeight = $this->samples[$sampleId]['maxPreviewHeight'];
@@ -790,7 +798,7 @@  discard block
 block discarded – undo
790 798
 	 * @param int $sampleWidth
791 799
 	 * @param int $sampleHeight
792 800
 	 *
793
-	 * @return array
801
+	 * @return integer[]
794 802
 	 */
795 803
 	private function setMaxPreview($sampleWidth, $sampleHeight) {
796 804
 		// Max previews are never scaled up
@@ -814,7 +822,7 @@  discard block
 block discarded – undo
814 822
 	 * @param int $askedWidth
815 823
 	 * @param int $askedHeight
816 824
 	 *
817
-	 * @return array
825
+	 * @return integer[]
818 826
 	 */
819 827
 	private function simulatePreviewDimensions($askedWidth, $askedHeight) {
820 828
 		$askedWidth = min($askedWidth, $this->configMaxWidth);
@@ -841,7 +849,7 @@  discard block
 block discarded – undo
841 849
 	 * @param int $askedWidth
842 850
 	 * @param int $askedHeight
843 851
 	 *
844
-	 * @return \int[]
852
+	 * @return integer[]
845 853
 	 */
846 854
 	private function applyAspectRatio($askedWidth, $askedHeight) {
847 855
 		$originalRatio = $this->maxPreviewRatio;
@@ -860,7 +868,7 @@  discard block
 block discarded – undo
860 868
 	 * @param int $askedWidth
861 869
 	 * @param int $askedHeight
862 870
 	 *
863
-	 * @return array
871
+	 * @return integer[]
864 872
 	 */
865 873
 	private function fixSize($askedWidth, $askedHeight) {
866 874
 		if ($this->scalingUp) {
Please login to merge, or discard this patch.