Completed
Push — src-folder ( e05626...8b780d )
by Damian
11:23
created
tests/forms/OptionsetFieldTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SilverStripe\Filesystem\ImageManipulation;
6 6
 use SilverStripe\Filesystem\Storage\AssetContainer;
7 7
 use SilverStripe\Filesystem\Storage\AssetStore;
8
-
9 8
 use Injector;
10 9
 use AssetField;
11 10
 use File;
Please login to merge, or discard this patch.
tests/forms/RequirementsTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -127,6 +127,10 @@  discard block
 block discarded – undo
127 127
 		);
128 128
 	}
129 129
 
130
+	/**
131
+	 * @param boolean $async
132
+	 * @param boolean $defer
133
+	 */
130 134
 	protected function setupCombinedRequirementsJavascriptAsyncDefer($backend, $async, $defer) {
131 135
         $basePath = $this->getCurrentRelativePath();
132 136
         $this->setupRequirements($backend);
@@ -836,6 +840,9 @@  discard block
 block discarded – undo
836 840
 		}
837 841
 	}
838 842
 
843
+	/**
844
+	 * @param string $type
845
+	 */
839 846
 	public function assertFileNotIncluded($backend, $type, $files) {
840 847
 		$includedFiles = $this->getBackendFiles($backend, $type);
841 848
 		if(is_array($files)) {
Please login to merge, or discard this patch.
tests/forms/uploadfield/AssetFieldTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -356,7 +356,7 @@
 block discarded – undo
356 356
 	 * Simulates a file upload
357 357
 	 *
358 358
 	 * @param string $fileField Name of the field to mock upload for
359
-	 * @param array $tmpFileName Name of temporary file to upload
359
+	 * @param string $tmpFileName Name of temporary file to upload
360 360
 	 * @return HTTPResponse form response
361 361
 	 */
362 362
 	protected function mockFileUpload($fileField, $tmpFileName) {
Please login to merge, or discard this patch.
tests/forms/uploadfield/UploadFieldTest.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -946,7 +946,7 @@  discard block
 block discarded – undo
946 946
 	 * Simulates a file upload
947 947
 	 *
948 948
 	 * @param string $fileField Name of the field to mock upload for
949
-	 * @param array $tmpFileName Name of temporary file to upload
949
+	 * @param string $tmpFileName Name of temporary file to upload
950 950
 	 * @return HTTPResponse form response
951 951
 	 */
952 952
 	protected function mockFileUpload($fileField, $tmpFileName) {
@@ -958,6 +958,9 @@  discard block
 block discarded – undo
958 958
 		);
959 959
 	}
960 960
 
961
+	/**
962
+	 * @param string $fileField
963
+	 */
961 964
 	protected function mockFileExists($fileField, $fileName) {
962 965
 		return $this->get(
963 966
 			"UploadFieldTest_Controller/Form/field/{$fileField}/fileexists?filename=".urlencode($fileName)
Please login to merge, or discard this patch.
tests/model/ImageTest.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use League\Flysystem\Filesystem;
4
-use SilverStripe\Assets\Flysystem\AssetAdapter;
5
-use SilverStripe\Assets\Flysystem\FlysystemAssetStore;
6
-use SilverStripe\Assets\Flysystem\FlysystemUrlPlugin;
7 3
 use SilverStripe\Assets\File;
8 4
 use SilverStripe\Assets\Filesystem as SSFilesystem;
9 5
 use SilverStripe\Assets\Image;
Please login to merge, or discard this patch.
admin/tests/LeftAndMainTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use SilverStripe\Core\Convert;
4
-use SilverStripe\Core\Config\Config;
5 4
 use SilverStripe\Dev\SapphireTest;
6 5
 use SilverStripe\View\Parsers\URLSegmentFilter;
7 6
 
Please login to merge, or discard this patch.
tests/control/CMSProfileControllerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use SilverStripe\Core\Convert;
4
-use SilverStripe\Core\Config\Config;
5 4
 use SilverStripe\Dev\SapphireTest;
6 5
 use SilverStripe\View\Parsers\URLSegmentFilter;
7 6
 
Please login to merge, or discard this patch.
tests/behat/features/bootstrap/FeatureContext.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 	}
61 61
 
62 62
 	/**
63
-	 * @return FixtureFactory
63
+	 * @return \SilverStripe\Dev\FixtureFactory
64 64
 	 */
65 65
 	public function getFixtureFactory() {
66 66
 		if(!$this->fixtureFactory) {
Please login to merge, or discard this patch.
bootstrap/SilverStripe/Framework/Test/Behaviour/CmsFormsContext.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@
 block discarded – undo
36 36
 
37 37
 	/**
38 38
 	 * Get Mink session from MinkContext
39
+	 * @return \Behat\Mink\Session
39 40
 	 */
40 41
 	public function getSession($name = null) {
41 42
 		return $this->getMainContext()->getSession($name);
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -2,13 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\Framework\Test\Behaviour;
4 4
 
5
-use Behat\Behat\Context\ClosuredContextInterface;
6
-use Behat\Behat\Context\TranslatedContextInterface;
7 5
 use Behat\Behat\Context\BehatContext;
8
-use Behat\Behat\Context\Step;
9
-use Behat\Behat\Exception\PendingException;
10 6
 use Behat\Mink\Exception\ElementHtmlException;
11
-use Behat\Gherkin\Node\PyStringNode;
12 7
 use Behat\Gherkin\Node\TableNode;
13 8
 use Behat\MinkExtension\Context\MinkContext as MinkContext;
14 9
 use Symfony\Component\DomCrawler\Crawler;
Please login to merge, or discard this patch.