Completed
Push — master ( 98260d...5a7546 )
by Mathieu
03:43
created
src/Charcoal/Cms/AbstractText.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     /**
49 49
      * @param mixed $title The news title (localized).
50
-     * @return TranslationString
50
+     * @return AbstractText
51 51
      */
52 52
     public function setTitle($title)
53 53
     {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     /**
67 67
      * @param mixed $subtitle The news subtitle (localized).
68
-     * @return Event Chainable
68
+     * @return AbstractText Chainable
69 69
      */
70 70
     public function setSubtitle($subtitle)
71 71
     {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     /**
85 85
      * @param mixed $content The news content (localized).
86
-     * @return Event Chainable
86
+     * @return AbstractText Chainable
87 87
      */
88 88
     public function setContent($content)
89 89
     {
Please login to merge, or discard this patch.
src/Charcoal/Cms/AbstractSection.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     /**
124 124
      * Retrieve the available section types.
125 125
      *
126
-     * @return array
126
+     * @return string[]
127 127
      */
128 128
     public function acceptedSectionTypes()
129 129
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     /**
148 148
      * @param mixed $title The section title (localized).
149
-     * @return TranslationString
149
+     * @return AbstractSection
150 150
      */
151 151
     public function setTitle($title)
152 152
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,11 +5,9 @@
 block discarded – undo
5 5
 use InvalidArgumentException;
6 6
 
7 7
 // Module `charcoal-core` dependencies
8
-use Charcoal\Model\Collection;
9 8
 
10 9
 // Module `charcoal-translation` dependencies
11 10
 use Charcoal\Translation\TranslationString;
12
-
13 11
 use Charcoal\Loader\CollectionLoader;
14 12
 
15 13
 // Module `charcoal-base` dependencies
Please login to merge, or discard this patch.
src/Charcoal/Cms/TemplateableTrait.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * Set the renderable object's template identifier.
34 34
      *
35 35
      * @param  mixed $template The template ID.
36
-     * @return TemplateableInterface Chainable
36
+     * @return TemplateableTrait Chainable
37 37
      */
38 38
     public function setTemplateIdent($template)
39 39
     {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * Set the renderable object's template controller identifier.
57 57
      *
58 58
      * @param  mixed $ident The template controller identifier.
59
-     * @return TemplateableInterface Chainable
59
+     * @return TemplateableTrait Chainable
60 60
      */
61 61
     public function setControllerIdent($ident)
62 62
     {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * Customize the template's options.
80 80
      *
81 81
      * @param  mixed $options Template options.
82
-     * @return TemplateableInterface Chainable
82
+     * @return TemplateableTrait Chainable
83 83
      */
84 84
     public function setTemplateOptions($options)
85 85
     {
Please login to merge, or discard this patch.
src/Charcoal/Cms/MetatagTrait.php 1 patch
Doc Comments   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
     abstract public function defaultMetaImage();
89 89
 
90 90
     /**
91
-     * @param mixed $title The meta tile (localized).
92
-     * @return MetatagInterface Chainable
91
+     * @param TranslationString $title The meta tile (localized).
92
+     * @return MetatagTrait Chainable
93 93
      */
94 94
     public function setMetaTitle($title)
95 95
     {
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-     * @param mixed $description The meta description (localized).
110
-     * @return MetatagInterface Chainable
109
+     * @param TranslationString $description The meta description (localized).
110
+     * @return MetatagTrait Chainable
111 111
      */
112 112
     public function setMetaDescription($description)
113 113
     {
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
     /**
127
-     * @param mixed $image The meta image (localized).
128
-     * @return MetatagInterface Chainable
127
+     * @param TranslationString $image The meta image (localized).
128
+     * @return MetatagTrait Chainable
129 129
      */
130 130
     public function setMetaImage($image)
131 131
     {
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
     /**
145 145
      * @param mixed $author The meta author (localized).
146
-     * @return MetatagInterface Chainable
146
+     * @return MetatagTrait Chainable
147 147
      */
148 148
     public function setMetaAuthor($author)
149 149
     {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
     /**
172 172
      * @param string $appId The facebook App ID (numeric string).
173
-     * @return MetatagInterface Chainable
173
+     * @return MetatagTrait Chainable
174 174
      */
175 175
     public function setFacebookAppId($appId)
176 176
     {
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
     /**
190 190
      * @param mixed $title The opengraph title (localized).
191
-     * @return MetatagInterface Chainable
191
+     * @return MetatagTrait Chainable
192 192
      */
193 193
     public function setOpengraphTitle($title)
194 194
     {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
     /**
215 215
      * @param mixed $siteName The site name (localized).
216
-     * @return MetatagInterface Chainable
216
+     * @return MetatagTrait Chainable
217 217
      */
218 218
     public function setOpengraphSiteName($siteName)
219 219
     {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 
232 232
     /**
233 233
      * @param mixed $description The opengraph description (localized).
234
-     * @return MetatagInterface Chainable
234
+     * @return MetatagTrait Chainable
235 235
      */
236 236
     public function setOpengraphDescription($description)
237 237
     {
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 
253 253
     /**
254 254
      * @param string $type The opengraph type.
255
-     * @return MetatagInterface Chainable
255
+     * @return MetatagTrait Chainable
256 256
      */
257 257
     public function setOpengraphType($type)
258 258
     {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
     /**
272 272
      * @param mixed $image The opengraph image (localized).
273
-     * @return MetatagInterface Chainable
273
+     * @return MetatagTrait Chainable
274 274
      */
275 275
     public function setOpengraphImage($image)
276 276
     {
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 
292 292
     /**
293 293
      * @param mixed $author The opengraph author (localized).
294
-     * @return MetatagInterface Chainable
294
+     * @return MetatagTrait Chainable
295 295
      */
296 296
     public function setOpengraphAuthor($author)
297 297
     {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 
313 313
     /**
314 314
      * @param mixed $publisher The opengraph publisher (localized).
315
-     * @return MetatagInterface Chainable
315
+     * @return MetatagTrait Chainable
316 316
      */
317 317
     public function setOpengraphPulisher($publisher)
318 318
     {
Please login to merge, or discard this patch.
src/Charcoal/Cms/AbstractEvent.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,12 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use DateTime;
6 6
 use DateTimeInterface;
7
-use Exception;
8 7
 use InvalidArgumentException;
9 8
 
10 9
 // PSR-7 (HTTP messaging) dependencies
11
-use Psr\Http\Message\RequestInterface;
12
-use Psr\Http\Message\ResponseInterface;
13 10
 
14 11
 // Module `charcoal-object` dependencies
15 12
 use Charcoal\Object\Content;
Please login to merge, or discard this patch.
src/Charcoal/Cms/AbstractNews.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,6 @@
 block discarded – undo
6 6
 use DateTimeInterface;
7 7
 use InvalidArgumentException;
8 8
 
9
-use Psr\Http\Message\RequestInterface;
10
-use Psr\Http\Message\ResponseInterface;
11
-
12 9
 // Dependencies from `charcoal-translation`
13 10
 use Charcoal\Translation\TranslationString;
14 11
 
Please login to merge, or discard this patch.
src/Charcoal/Cms/Route/GenericRoute.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use InvalidArgumentException;
6 6
 use RuntimeException;
7
-
8 7
 use Pimple\Container;
9 8
 
10 9
 // From PSR-7 (HTTP Messaging)
Please login to merge, or discard this patch.
src/Charcoal/Cms/Route/SectionRoute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@
 block discarded – undo
74 74
 
75 75
         $section = $this->loadSectionFromPath($container);
76 76
 
77
-        $templateIdent      = (string)$section->templateIdent();
78
-        $templateController = (string)$section->templateIdent();
77
+        $templateIdent      = (string) $section->templateIdent();
78
+        $templateController = (string) $section->templateIdent();
79 79
 
80 80
         if (!$templateController) {
81 81
             return $response->withStatus(404);
Please login to merge, or discard this patch.
src/Charcoal/Cms/Text.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
  */
11 11
 final class Text extends AbstractText
12 12
 {
13
-     /**
14
-      * CategorizableTrait > categoryType()
15
-      *
16
-      * @return string
17
-      */
13
+        /**
14
+         * CategorizableTrait > categoryType()
15
+         *
16
+         * @return string
17
+         */
18 18
     public function categoryType()
19 19
     {
20 20
         return TextCategory::class;
Please login to merge, or discard this patch.