Completed
Push — develop ( 8dee05 )
by Dmytro
20:08
created
core/src/AbstractLaravel.php 1 patch
Doc Comments   +14 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,12 +119,18 @@  discard block
 block discarded – undo
119 119
 
120 120
     protected $evolutionProperty = [];
121 121
 
122
+    /**
123
+     * @param string $data
124
+     */
122 125
     abstract public function getVersionData($data = null);
126
+
127
+    /**
128
+     * @param integer $default
129
+     */
123 130
     abstract public function getConfig($name = '', $default = null);
124 131
     abstract public function bootstrapPath($path = '');
125 132
 
126 133
     /**
127
-     * @param array $classes
128 134
      */
129 135
     public function __construct()
130 136
     {
@@ -168,6 +174,10 @@  discard block
 block discarded – undo
168 174
         $this->boot();
169 175
     }
170 176
 
177
+    /**
178
+     * @param Repository $config
179
+     * @param string $dir
180
+     */
171 181
     protected function loadConfiguration($config, $dir)
172 182
     {
173 183
         $files = [];
@@ -562,6 +572,9 @@  discard block
 block discarded – undo
562 572
         }
563 573
     }
564 574
 
575
+    /**
576
+     * @param string $name
577
+     */
565 578
     public function getService($name)
566 579
     {
567 580
         return $this->get($name);
Please login to merge, or discard this patch.
core/src/AliasLoader.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,6 @@
 block discarded – undo
41 41
      * Get or create the singleton alias loader instance.
42 42
      *
43 43
      * @param  array  $aliases
44
-     * @param string $cachedPath
45 44
      * @return AliasLoader
46 45
      */
47 46
     public static function getInstance(array $aliases = [])
Please login to merge, or discard this patch.
core/src/Console/VendorPublishCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     /**
107 107
      * The choices available via the prompt.
108 108
      *
109
-     * @return array
109
+     * @return string[]
110 110
      */
111 111
     protected function publishableChoices()
112 112
     {
Please login to merge, or discard this patch.
core/src/Controllers/AbstractController.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -43,6 +43,7 @@
 block discarded – undo
43 43
 
44 44
     /**
45 45
      * {@inheritdoc}
46
+     * @param string $view
46 47
      */
47 48
     public function setView($view) : bool
48 49
     {
Please login to merge, or discard this patch.
core/src/Controllers/Frame.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -399,6 +399,9 @@
 block discarded – undo
399 399
         return $this;
400 400
     }
401 401
 
402
+    /**
403
+     * @param integer $tab
404
+     */
402 405
     protected function menuElementTemplates($tab)
403 406
     {
404 407
         if ($this->managerTheme->getCore()->hasPermission('edit_template')) {
Please login to merge, or discard this patch.
core/src/Controllers/MoveDocument.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     }
136 136
 
137 137
     /**
138
-     * @param string|int $id
138
+     * @param integer $id
139 139
      * @return Models\SiteContent
140 140
      */
141 141
     protected function getDocument($id) : Models\SiteContent
@@ -153,6 +153,9 @@  discard block
 block discarded – undo
153 153
         return $document;
154 154
     }
155 155
 
156
+    /**
157
+     * @param integer $id
158
+     */
156 159
     protected function checkNewParentPermission($id)
157 160
     {
158 161
         $udperms = new Permissions;
Please login to merge, or discard this patch.
core/src/Core.php 1 patch
Doc Comments   +24 added lines, -21 removed lines patch added patch discarded remove patch
@@ -132,7 +132,6 @@  discard block
 block discarded – undo
132 132
     public $urlProcessor;
133 133
 
134 134
     /**
135
-     * @param array $services
136 135
      */
137 136
     public function __construct()
138 137
     {
@@ -317,7 +316,7 @@  discard block
 block discarded – undo
317 316
      * @param int $count_attempts
318 317
      * @param string $type $type
319 318
      * @param string $responseCode
320
-     * @return bool|null
319
+     * @return false|null
321 320
      * @global string $base_url
322 321
      * @global string $site_url
323 322
      */
@@ -804,7 +803,7 @@  discard block
 block discarded – undo
804 803
     }
805 804
 
806 805
     /**
807
-     * @param $contents
806
+     * @param string $contents
808 807
      * @return mixed
809 808
      */
810 809
     public function RecoveryEscapedTags($contents)
@@ -1652,7 +1651,7 @@  discard block
 block discarded – undo
1652 1651
 
1653 1652
     /**
1654 1653
      * Remove Comment-Tags from output like <!--@- Comment -@-->
1655
-     * @param $content
1654
+     * @param string $content
1656 1655
      * @param string $left
1657 1656
      * @param string $right
1658 1657
      * @return mixed
@@ -1853,7 +1852,7 @@  discard block
 block discarded – undo
1853 1852
     /**
1854 1853
      * Run snippets as per the tags in $documentSource and replace the tags with the returned values.
1855 1854
      *
1856
-     * @param $content
1855
+     * @param string $content
1857 1856
      * @return string
1858 1857
      * @internal param string $documentSource
1859 1858
      */
@@ -2298,6 +2297,7 @@  discard block
 block discarded – undo
2298 2297
 
2299 2298
     /**
2300 2299
      * @deprecated use UrlProcessor::rewriteUrls()
2300
+     * @return string
2301 2301
      */
2302 2302
     public function rewriteUrls($documentSource)
2303 2303
     {
@@ -2761,7 +2761,7 @@  discard block
 block discarded – undo
2761 2761
 
2762 2762
     /**
2763 2763
      * @param $templateID
2764
-     * @return mixed
2764
+     * @return string
2765 2765
      */
2766 2766
     public function _getTemplateCodeFromDB($templateID)
2767 2767
     {
@@ -2809,7 +2809,7 @@  discard block
 block discarded – undo
2809 2809
     /**
2810 2810
      * @param $id
2811 2811
      * @param int $top
2812
-     * @return mixed
2812
+     * @return string
2813 2813
      */
2814 2814
     public function getUltimateParentId($id, $top = 0)
2815 2815
     {
@@ -3206,7 +3206,7 @@  discard block
 block discarded – undo
3206 3206
      *
3207 3207
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3208 3208
      * @param int $id Element- / Resource-id
3209
-     * @return bool
3209
+     * @return false|null
3210 3210
      */
3211 3211
     public function lockElement($type, $id)
3212 3212
     {
@@ -3229,7 +3229,7 @@  discard block
 block discarded – undo
3229 3229
      * @param int $type Types: 1=template, 2=tv, 3=chunk, 4=snippet, 5=plugin, 6=module, 7=resource, 8=role
3230 3230
      * @param int $id Element- / Resource-id
3231 3231
      * @param bool $includeAllUsers true = Deletes not only own user-locks
3232
-     * @return bool
3232
+     * @return false|null
3233 3233
      */
3234 3234
     public function unlockElement($type, $id, $includeAllUsers = false)
3235 3235
     {
@@ -3784,7 +3784,7 @@  discard block
 block discarded – undo
3784 3784
      *                     Default: 1
3785 3785
      * @param string $fields List of fields
3786 3786
      *                       Default: id, pagetitle, description, alias
3787
-     * @return boolean|array
3787
+     * @return string
3788 3788
      */
3789 3789
     public function getPageInfo($pageid = -1, $active = 1, $fields = 'id, pagetitle, description, alias')
3790 3790
     {
@@ -3883,7 +3883,7 @@  discard block
 block discarded – undo
3883 3883
      *
3884 3884
      * @param string $type
3885 3885
      * @param bool $report
3886
-     * @return bool
3886
+     * @return boolean|null
3887 3887
      */
3888 3888
     public function clearCache($type = '', $report = false)
3889 3889
     {
@@ -3926,6 +3926,7 @@  discard block
 block discarded – undo
3926 3926
 
3927 3927
     /**
3928 3928
      * @deprecated use UrlProcessor::makeUrl()
3929
+     * @return string
3929 3930
      */
3930 3931
     public function makeUrl($id, $alias = '', $args = '', $scheme = '')
3931 3932
     {
@@ -4020,7 +4021,7 @@  discard block
 block discarded – undo
4020 4021
     }
4021 4022
 
4022 4023
     /**
4023
-     * @param string|object $processor
4024
+     * @param string $processor
4024 4025
      * @return bool
4025 4026
      */
4026 4027
     public function isChunkProcessor($processor)
@@ -4446,9 +4447,9 @@  discard block
 block discarded – undo
4446 4447
      * Elements representing a TV consist of an array representing a db row including the fields specified in $fields.
4447 4448
      *
4448 4449
      * @param string|array $idnames {array; '*'} - Which TVs to fetch. Can relate to the TV ids in the db (array elements should be numeric only) or the TV names (array elements should be names only). @required
4449
-     * @param string|array $fields {comma separated string; '*'} - Fields names in the TV table of MODx database. Default: '*'
4450
+     * @param string $fields {comma separated string; '*'} - Fields names in the TV table of MODx database. Default: '*'
4450 4451
      * @param int|string $docid {integer; ''} - Id of a document to get. Default: an empty string which indicates the current document.
4451
-     * @param int|string $published {0; 1; 'all'} - Document publication status. Once the parameter equals 'all', the result will be returned regardless of whether the ducuments are published or they are not. Default: 1.
4452
+     * @param integer $published {0; 1; 'all'} - Document publication status. Once the parameter equals 'all', the result will be returned regardless of whether the ducuments are published or they are not. Default: 1.
4452 4453
      * @param string $sort {comma separated string} - Fields of the TV table to sort by. Default: 'rank'.
4453 4454
      * @param string $dir {'ASC'; 'DESC'} - How to sort the result array (direction). Default: 'ASC'.
4454 4455
      *
@@ -5098,7 +5099,7 @@  discard block
 block discarded – undo
5098 5099
      * Remove event listener - only for use within the current execution cycle
5099 5100
      *
5100 5101
      * @param string $evtName
5101
-     * @return boolean
5102
+     * @return false|null
5102 5103
      */
5103 5104
     public function removeEventListener($evtName)
5104 5105
     {
@@ -5150,7 +5151,7 @@  discard block
 block discarded – undo
5150 5151
      *
5151 5152
      * @param string $evtName
5152 5153
      * @param array $extParams Parameters available to plugins. Each array key will be the PHP variable name, and the array value will be the variable value.
5153
-     * @return boolean|array
5154
+     * @return false|null
5154 5155
      */
5155 5156
     public function invokeEvent($evtName, $extParams = array())
5156 5157
     {
@@ -5463,6 +5464,7 @@  discard block
 block discarded – undo
5463 5464
 
5464 5465
     /**
5465 5466
      * {@inheritdoc}
5467
+     * @param string $type
5466 5468
      */
5467 5469
     public function findElements($type, $scanPath, array $ext)
5468 5470
     {
@@ -5604,7 +5606,7 @@  discard block
 block discarded – undo
5604 5606
 
5605 5607
     /**
5606 5608
      * @param string $str
5607
-     * @return bool|mixed|string
5609
+     * @return string
5608 5610
      */
5609 5611
     public function atBindFileContent($str = '')
5610 5612
     {
@@ -5655,8 +5657,8 @@  discard block
 block discarded – undo
5655 5657
     }
5656 5658
 
5657 5659
     /**
5658
-     * @param $str
5659
-     * @return bool|string
5660
+     * @param string $str
5661
+     * @return false|string
5660 5662
      */
5661 5663
     public function getExtFromFilename($str)
5662 5664
     {
@@ -5812,7 +5814,7 @@  discard block
 block discarded – undo
5812 5814
      * @param string $text Error message
5813 5815
      * @param string $file File where the error was detected
5814 5816
      * @param string $line Line number within $file
5815
-     * @return boolean
5817
+     * @return boolean|null
5816 5818
      * @deprecated
5817 5819
      */
5818 5820
     public function phpError($nr, $text, $file, $line)
@@ -5908,6 +5910,7 @@  discard block
 block discarded – undo
5908 5910
 
5909 5911
     /**
5910 5912
      * @deprecated use UrlProcessor::getIdFromAlias()
5913
+     * @param string $alias
5911 5914
      */
5912 5915
     public function getIdFromAlias($alias)
5913 5916
     {
@@ -5916,7 +5919,7 @@  discard block
 block discarded – undo
5916 5919
 
5917 5920
     /**
5918 5921
      * @param string $str
5919
-     * @return bool|mixed|string
5922
+     * @return string
5920 5923
      */
5921 5924
     public function atBindInclude($str = '')
5922 5925
     {
Please login to merge, or discard this patch.
core/src/Event.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     }
73 73
 
74 74
     /**
75
-     * @param mixed $data
75
+     * @param string $data
76 76
      */
77 77
     public function addOutput($data)
78 78
     {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @return mixed
93
+     * @return string
94 94
      */
95 95
     public function getOutput()
96 96
     {
Please login to merge, or discard this patch.
core/src/ExceptionHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param string $text Error message
97 97
      * @param string $file File where the error was detected
98 98
      * @param string $line Line number within $file
99
-     * @return boolean
99
+     * @return boolean|null
100 100
      */
101 101
     public function phpError($nr, $text, $file, $line)
102 102
     {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * @param string $text
149 149
      * @param string $line
150 150
      * @param string $output
151
-     * @return bool
151
+     * @return null|boolean
152 152
      */
153 153
     public function messageQuit(
154 154
         $msg = 'unspecified error',
Please login to merge, or discard this patch.