Completed
Push — master ( 35d3bb...a50fd3 )
by Stéphane
15:20
created
src/Translation/I18N.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * Load a language file
187 187
      *
188 188
      * @param  string $language
189
-     * @return bool
189
+     * @return boolean|null
190 190
      */
191 191
     public function loadLanguage($language)
192 192
     {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
     /**
219 219
      * Get the current language id
220
-     * @return int
220
+     * @return string
221 221
      */
222 222
     public function getCurrentId()
223 223
     {
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      * Set the language to use
229 229
      *
230 230
      * @param  string $language
231
-     * @return bool
231
+     * @return boolean|null
232 232
      */
233 233
     public function setLanguage($language)
234 234
     {
@@ -349,6 +349,10 @@  discard block
 block discarded – undo
349 349
         return $languages;
350 350
     }
351 351
 
352
+    /**
353
+     * @param string $context
354
+     * @param string $language
355
+     */
352 356
     protected function translateGetString($context, $language, $string_id)
353 357
     {
354 358
         $row = Translation::select('text')
Please login to merge, or discard this patch.
src/Entities/Entity.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 use InvalidArgumentException;
7 7
 use Rocket\Entities\Exceptions\EntityNotFoundException;
8 8
 use Rocket\Entities\Exceptions\InvalidFieldTypeException;
9
-use Rocket\Entities\Exceptions\NonExistentFieldException;
10 9
 use Rocket\Entities\Exceptions\NoPublishedRevisionForLanguageException;
11 10
 use Rocket\Entities\Exceptions\NoRevisionForLanguageException;
11
+use Rocket\Entities\Exceptions\NonExistentFieldException;
12 12
 use Rocket\Entities\Exceptions\ReservedFieldNameException;
13 13
 
14 14
 /**
Please login to merge, or discard this patch.
src/Entities/Fields/Date.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     /**
44 44
      * Convert the model instance to an array.
45 45
      *
46
-     * @return array
46
+     * @return string
47 47
      */
48 48
     public function toArray()
49 49
     {
Please login to merge, or discard this patch.
src/Entities/Fields/Datetime.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * Convert the model instance to an array.
43 43
      *
44
-     * @return array
44
+     * @return string
45 45
      */
46 46
     public function toArray()
47 47
     {
Please login to merge, or discard this patch.
src/Taxonomy/Model/TermData.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * Save the model to the database.
56 56
      *
57 57
      * @param  array  $options
58
-     * @return bool
58
+     * @return boolean|null
59 59
      */
60 60
     public function save(array $options = [])
61 61
     {
Please login to merge, or discard this patch.
src/Taxonomy/TaxonomyTrait.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -47,6 +47,7 @@
 block discarded – undo
47 47
 
48 48
     /**
49 49
      * Declared by Eloquent Model
50
+     * @return string|null
50 51
      */
51 52
     abstract public function getKey();
52 53
 
Please login to merge, or discard this patch.