@@ -8,7 +8,6 @@ |
||
8 | 8 | use SilverStripe\ORM\DataObject; |
9 | 9 | use SilverStripe\ORM\DataObjectInterface; |
10 | 10 | use SilverStripe\ORM\FieldType\DBHTMLText; |
11 | -use SilverStripe\View\Requirements; |
|
12 | 11 | use SilverStripe\View\ViewableData; |
13 | 12 | use stdClass; |
14 | 13 |
@@ -701,7 +701,7 @@ |
||
701 | 701 | * @param string $parentClass Parent class name |
702 | 702 | * @param string $component ManyMany name |
703 | 703 | * @param string|array $specification Declaration of many_many relation type |
704 | - * @return array |
|
704 | + * @return string[] |
|
705 | 705 | */ |
706 | 706 | protected function parseManyManyComponent($parentClass, $component, $specification) |
707 | 707 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use InvalidArgumentException; |
6 | 6 | use Serializable; |
7 | -use SilverStripe\Core\Convert; |
|
8 | 7 | use SilverStripe\Core\Injector\Injectable; |
9 | 8 | use SilverStripe\Dev\Deprecation; |
10 | 9 |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | Requirements::javascript(FRAMEWORK_ADMIN_DIR . '/client/dist/js/vendor.js'); |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $action |
|
46 | + */ |
|
44 | 47 | public function Link($action = null) |
45 | 48 | { |
46 | 49 | /** @skipUpgrade */ |
@@ -60,6 +63,9 @@ discard block |
||
60 | 63 | return null; |
61 | 64 | } |
62 | 65 | |
66 | + /** |
|
67 | + * @param string $title |
|
68 | + */ |
|
63 | 69 | public function getResponseController($title) |
64 | 70 | { |
65 | 71 | // Use $this to prevent use of Page to render underlying templates |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SilverStripe\Forms\Tests; |
4 | 4 | |
5 | -use SilverStripe\Core\Config\Config; |
|
6 | 5 | use SilverStripe\Dev\SapphireTest; |
7 | 6 | use SilverStripe\Forms\CurrencyField; |
8 | 7 | use SilverStripe\Forms\RequiredFields; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | /** |
40 | 40 | * @skipUpgrade |
41 | 41 | * @param GridField $gridField |
42 | - * @return array |
|
42 | + * @return string[] |
|
43 | 43 | */ |
44 | 44 | public function getColumnsHandled($gridField) |
45 | 45 | { |
@@ -2,11 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace SilverStripe\ORM\Tests; |
4 | 4 | |
5 | -use SilverStripe\ORM\DataObject; |
|
6 | -use SilverStripe\ORM\DataExtension; |
|
7 | 5 | use SilverStripe\Core\Object; |
8 | 6 | use SilverStripe\Dev\SapphireTest; |
9 | -use SilverStripe\Dev\TestOnly; |
|
10 | 7 | |
11 | 8 | class ManyManyListExtensionTest extends SapphireTest |
12 | 9 | { |
@@ -144,6 +144,9 @@ discard block |
||
144 | 144 | return Injector::inst()->get($className); |
145 | 145 | } |
146 | 146 | |
147 | +/** |
|
148 | + * @return string |
|
149 | + */ |
|
147 | 150 | function project() |
148 | 151 | { |
149 | 152 | global $project; |
@@ -160,12 +163,6 @@ discard block |
||
160 | 163 | * @param string $entity Entity that identifies the string. It must be in the form |
161 | 164 | * "Namespace.Entity" where Namespace will be usually the class name where this |
162 | 165 | * string is used and Entity identifies the string inside the namespace. |
163 | - * @param mixed $arg,... Additional arguments are parsed as such: |
|
164 | - * - Next string argument is a default. Pass in a `|` pipe-delimeted value with `{count}` |
|
165 | - * to do pluralisation. |
|
166 | - * - Any other string argument after default is context for i18nTextCollector |
|
167 | - * - Any array argument in any order is an injection parameter list. Pass in a `count` |
|
168 | - * injection parameter to pluralise. |
|
169 | 166 | * @return string |
170 | 167 | */ |
171 | 168 | function _t($entity, $arg = null) |
@@ -179,7 +176,7 @@ discard block |
||
179 | 176 | * Only increases up to the maximum defined in {@link set_increase_memory_limit_max()}, |
180 | 177 | * and defaults to the 'memory_limit' setting in the PHP configuration. |
181 | 178 | * |
182 | - * @param string|int $memoryLimit A memory limit string, such as "64M". If omitted, unlimited memory will be set. |
|
179 | + * @param integer $memoryLimit A memory limit string, such as "64M". If omitted, unlimited memory will be set. |
|
183 | 180 | * @return Boolean TRUE indicates a successful change, FALSE a denied change. |
184 | 181 | */ |
185 | 182 | function increase_memory_limit_to($memoryLimit = -1) |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * greater than or equal to this version, a message will be raised |
76 | 76 | * |
77 | 77 | * @static |
78 | - * @param $ver string - |
|
78 | + * @param string $ver string - |
|
79 | 79 | * A php standard version string, see http://php.net/manual/en/function.version-compare.php for details. |
80 | 80 | * @param null $forModule string - |
81 | 81 | * The name of a module. The passed version will be used as the check value for |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * Determine if deprecation notices should be displayed |
143 | 143 | * |
144 | - * @return bool |
|
144 | + * @return boolean|string |
|
145 | 145 | */ |
146 | 146 | public static function get_enabled() |
147 | 147 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SilverStripe\Dev; |
4 | 4 | |
5 | 5 | use SilverStripe\Control\Director; |
6 | -use SilverStripe\Core\Manifest\ClassLoader; |
|
7 | 6 | use SilverStripe\Core\Manifest\Module; |
8 | 7 | use SilverStripe\Core\Manifest\ModuleLoader; |
9 | 8 |