Completed
Pull Request — master (#346)
by
unknown
18:04
created
src/Model/EloquentModel.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * Fire a model event.
133 133
      *
134
-     * @param $event
134
+     * @param string $event
135 135
      * @return mixed
136 136
      */
137 137
     public function fireEvent($event)
@@ -439,6 +439,9 @@  discard block
 block discarded – undo
439 439
         return get_class($this) . 'Translation';
440 440
     }
441 441
 
442
+    /**
443
+     * @return string|null
444
+     */
442 445
     public function getRelationKey()
443 446
     {
444 447
         return $this->translationForeignKey ?: $this->getForeignKey();
@@ -629,6 +632,9 @@  discard block
 block discarded – undo
629 632
         return parent::fill($attributes);
630 633
     }
631 634
 
635
+    /**
636
+     * @param string $key
637
+     */
632 638
     private function getTranslationByLocaleKey($key)
633 639
     {
634 640
         foreach ($this->translations as $translation) {
@@ -823,6 +829,9 @@  discard block
 block discarded – undo
823 829
         return $this->cascades;
824 830
     }
825 831
 
832
+    /**
833
+     * @param string $key
834
+     */
826 835
     public function __get($key)
827 836
     {
828 837
         if ($this->hasHook($hook = 'get_' . $key)) {
Please login to merge, or discard this patch.
src/Model/EloquentRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
      * Delete a record.
187 187
      *
188 188
      * @param  EloquentModel $entry
189
-     * @return bool
189
+     * @return boolean|null
190 190
      */
191 191
     public function delete(EloquentModel $entry)
192 192
     {
Please login to merge, or discard this patch.
src/Ui/Breadcrumb/BreadcrumbCollection.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
     /**
16 16
      * Add a breadcrumb.
17 17
      *
18
-     * @param      $key
19
-     * @param null $url
18
+     * @param      string $key
19
+     * @param string $url
20 20
      */
21 21
     public function add($key, $url = null)
22 22
     {
Please login to merge, or discard this patch.
src/Ui/ControlPanel/Component/Section/SectionFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * Make the section from it's parameters.
50 50
      *
51 51
      * @param  array $parameters
52
-     * @return mixed
52
+     * @return Contract\SectionInterface
53 53
      */
54 54
     public function make(array $parameters)
55 55
     {
Please login to merge, or discard this patch.
src/Ui/Tree/Tree.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
     /**
296 296
      * Add data to the data collection.
297 297
      *
298
-     * @param $key
298
+     * @param string $key
299 299
      * @param $value
300 300
      * @return $this
301 301
      */
Please login to merge, or discard this patch.