Completed
Push — master ( deca00...5388ff )
by Sam
24s
created
src/Forms/SelectionGroup_Item.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
         return $this->title;
38 38
     }
39 39
 
40
+    /**
41
+     * @param string $title
42
+     */
40 43
     function setTitle($title)
41 44
     {
42 45
         $this->title = $title;
@@ -48,6 +51,9 @@  discard block
 block discarded – undo
48 51
         return $this->value;
49 52
     }
50 53
 
54
+    /**
55
+     * @param string $Value
56
+     */
51 57
     function setValue($Value, $data = null)
52 58
     {
53 59
         $this->value = $Value;
Please login to merge, or discard this patch.
src/i18n/i18n.php 1 patch
Doc Comments   -6 removed lines patch added patch discarded remove patch
@@ -141,12 +141,6 @@
 block discarded – undo
141 141
      * @param string $entity Entity that identifies the string. It must be in the form
142 142
      * "Namespace.Entity" where Namespace will be usually the class name where this
143 143
      * string is used and Entity identifies the string inside the namespace.
144
-     * @param mixed $arg,... Additional arguments are parsed as such:
145
-     *  - Next string argument is a default. Pass in a `|` pipe-delimited value with `{count}`
146
-     *    to do pluralisation.
147
-     *  - Any other string argument after default is context for i18nTextCollector
148
-     *  - Any array argument in any order is an injection parameter list. Pass in a `count`
149
-     *    injection parameter to pluralise.
150 144
      * @return string
151 145
      */
152 146
     public static function _t($entity, $arg = null)
Please login to merge, or discard this patch.
src/ORM/FieldType/DBDatetime.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      * Return a date and time formatted as per a CMS user's settings.
86 86
      *
87 87
      * @param Member $member
88
-     * @return boolean | string A time and date pair formatted as per user-defined settings.
88
+     * @return null|string | string A time and date pair formatted as per user-defined settings.
89 89
      */
90 90
     public function FormatFromSettings($member = null)
91 91
     {
Please login to merge, or discard this patch.
src/ORM/FieldType/DBTime.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@
 block discarded – undo
26 26
      */
27 27
     const ISO_TIME = 'HH:mm:ss';
28 28
 
29
+    /**
30
+     * @param string $value
31
+     */
29 32
     public function setValue($value, $record = null, $markChanged = true)
30 33
     {
31 34
         $value = $this->parseTime($value);
Please login to merge, or discard this patch.
src/ORM/FieldType/DBDate.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      * Return a date formatted as per a CMS user's settings.
246 246
      *
247 247
      * @param Member $member
248
-     * @return boolean | string A date formatted as per user-defined settings.
248
+     * @return null|string | string A date formatted as per user-defined settings.
249 249
      */
250 250
     public function FormatFromSettings($member = null)
251 251
     {
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
      * Attempt to split date string into year, month, day, and timestamp components.
552 552
      *
553 553
      * @param string $value
554
-     * @return array
554
+     * @return string[]
555 555
      */
556 556
     protected function explodeDateString($value)
557 557
     {
Please login to merge, or discard this patch.
tests/php/View/SSViewerCacheBlockTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
         Injector::inst()->get(CacheInterface::class . '.cacheblock')->clear();
32 32
     }
33 33
 
34
+    /**
35
+     * @param string $template
36
+     */
34 37
     protected function _runtemplate($template, $data = null)
35 38
     {
36 39
         if ($data === null) {
Please login to merge, or discard this patch.
src/Core/Cache/CacheFactory.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
      * Note: While the returned object is used as a singleton (by the originating Injector->get() call),
13 13
      * this cache object shouldn't be a singleton itself - it has varying constructor args for the same service name.
14 14
      *
15
-     * @param string $class
16
-     * @param array $args
17 15
      * @return CacheInterface
18 16
      */
19 17
     public function create($service, array $params = array());
Please login to merge, or discard this patch.
admin/code/LeftAndMain.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
      * {@link SSViewer::get_templates_by_class()}
1003 1003
      *
1004 1004
      * @param string $suffix
1005
-     * @return array
1005
+     * @return string
1006 1006
      */
1007 1007
     public function getTemplatesWithSuffix($suffix)
1008 1008
     {
@@ -2154,7 +2154,7 @@  discard block
 block discarded – undo
2154 2154
     }
2155 2155
 
2156 2156
     /**
2157
-     * @return String
2157
+     * @return DBField
2158 2158
      */
2159 2159
     public function Locale()
2160 2160
     {
Please login to merge, or discard this patch.
src/Control/Director.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
     /**
926 926
      * Returns true if the given file exists. Filename should be relative to the site root.
927 927
      *
928
-     * @param $file
928
+     * @param string $file
929 929
      *
930 930
      * @return bool
931 931
      */
@@ -1153,7 +1153,7 @@  discard block
 block discarded – undo
1153 1153
      * Can also be checked with {@link Director::isDev()}, {@link Director::isTest()}, and
1154 1154
      * {@link Director::isLive()}.
1155 1155
      *
1156
-     * @return bool
1156
+     * @return string
1157 1157
      */
1158 1158
     public static function get_environment_type()
1159 1159
     {
Please login to merge, or discard this patch.