@@ -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 | { |
@@ -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 | |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | /** |
| 156 | 156 | * |
| 157 | 157 | * @param GridField $gridField |
| 158 | - * @return array |
|
| 158 | + * @return string[] |
|
| 159 | 159 | */ |
| 160 | 160 | public function getActions($gridField) |
| 161 | 161 | { |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | * |
| 220 | 220 | * @param GridField $gridField |
| 221 | 221 | * @param HTTPRequest $request |
| 222 | - * @return string |
|
| 222 | + * @return HTTPResponse |
|
| 223 | 223 | */ |
| 224 | 224 | public function doSearch($gridField, $request) |
| 225 | 225 | { |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | /** |
| 302 | - * @param array $fields |
|
| 302 | + * @param string[] $fields |
|
| 303 | 303 | * @return $this |
| 304 | 304 | */ |
| 305 | 305 | public function setSearchFields($fields) |
@@ -2,12 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SilverStripe\i18n\Messages\Symfony; |
| 4 | 4 | |
| 5 | -use SilverStripe\Core\Config\Configurable; |
|
| 6 | -use SilverStripe\Dev\Debug; |
|
| 7 | 5 | use SilverStripe\i18n\i18n; |
| 8 | 6 | use SilverStripe\i18n\Messages\Reader; |
| 9 | 7 | use Symfony\Component\Translation\Loader\ArrayLoader; |
| 10 | -use Symfony\Component\Translation\PluralizationRules; |
|
| 11 | 8 | |
| 12 | 9 | /** |
| 13 | 10 | * Loads yaml localisations across all modules simultaneously. |
@@ -41,6 +41,7 @@ |
||
| 41 | 41 | * Useful for keeping a decorator/paginated list configuration intact while modifying |
| 42 | 42 | * the underlying list. |
| 43 | 43 | * |
| 44 | + * @param SS_List $list |
|
| 44 | 45 | * @return SS_List |
| 45 | 46 | */ |
| 46 | 47 | public function setList($list) |
@@ -33,6 +33,10 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | protected $underlay; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param ViewableData $item |
|
| 38 | + * @param ViewableData $inheritedScope |
|
| 39 | + */ |
|
| 36 | 40 | public function __construct($item, $overlay = null, $underlay = null, $inheritedScope = null) |
| 37 | 41 | { |
| 38 | 42 | parent::__construct($item, $inheritedScope); |
@@ -65,6 +69,9 @@ discard block |
||
| 65 | 69 | $this->underlay = $underlay ? $underlay : array(); |
| 66 | 70 | } |
| 67 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $variableMethod |
|
| 74 | + */ |
|
| 68 | 75 | protected function createCallableArray(&$extraArray, $interfaceToQuery, $variableMethod, $createObject = false) |
| 69 | 76 | { |
| 70 | 77 | $implementers = ClassInfo::implementorsOf($interfaceToQuery); |
@@ -1222,7 +1222,7 @@ discard block |
||
| 1222 | 1222 | /** |
| 1223 | 1223 | * @param FormTransformation $transformation |
| 1224 | 1224 | * |
| 1225 | - * @return mixed |
|
| 1225 | + * @return FormField |
|
| 1226 | 1226 | */ |
| 1227 | 1227 | public function transform(FormTransformation $transformation) |
| 1228 | 1228 | { |
@@ -1333,7 +1333,7 @@ discard block |
||
| 1333 | 1333 | * This function is used by the template processor. If you refer to a field as a $ variable, it |
| 1334 | 1334 | * will return the $Field value. |
| 1335 | 1335 | * |
| 1336 | - * @return string |
|
| 1336 | + * @return DBHTMLText |
|
| 1337 | 1337 | */ |
| 1338 | 1338 | public function forTemplate() |
| 1339 | 1339 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use SilverStripe\Control\RequestHandler; |
| 8 | 8 | use SilverStripe\Core\ClassInfo; |
| 9 | 9 | use SilverStripe\Core\Convert; |
| 10 | -use SilverStripe\Dev\Deprecation; |
|
| 11 | 10 | use SilverStripe\ORM\DataObject; |
| 12 | 11 | use SilverStripe\ORM\DataObjectInterface; |
| 13 | 12 | use SilverStripe\ORM\FieldType\DBField; |