Completed
Push — master ( 03fcb2...4fe6d0 )
by Mihail
02:46
created
src/Ffcms/Core/Arch/Model.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * Get label value by variable name
32 32
      * @param string $param
33
-     * @return mixed
33
+     * @return string
34 34
      */
35 35
     final public function getLabel($param)
36 36
     {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     /**
74 74
      * Set attribute labels for model variables
75
-     * @return array
75
+     * @return string
76 76
      */
77 77
     public function labels()
78 78
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Ffcms\Core\App;
6 6
 use Ffcms\Core\Exception\SyntaxException;
7 7
 use Dflydev\DotAccessData\Data as DotData;
8
-use Ffcms\Core\Helper\Type\Arr;
9 8
 use Ffcms\Core\Helper\Type\Obj;
10 9
 use Ffcms\Core\Helper\Type\Str;
11 10
 use Ffcms\Core\Filter\Native;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                     }
241 241
                     // use dot-data provider to compile output array
242 242
                     $dotData = new DotData($this->{$field_set_name});
243
-                    $dotData->set($dot_path, $field_value);// todo: check me!!! bug here
243
+                    $dotData->set($dot_path, $field_value); // todo: check me!!! bug here
244 244
                     // export data from dot-data lib to model property
245 245
                     $this->{$field_set_name} = $dotData->export();
246 246
                 } else { // just single property
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     {
329 329
         if (null === $this->_formName) {
330 330
             $cname = get_class($this);
331
-            $this->_formName = substr($cname, strrpos($cname, '\\')+1);
331
+            $this->_formName = substr($cname, strrpos($cname, '\\') + 1);
332 332
         }
333 333
 
334 334
         return $this->_formName;
Please login to merge, or discard this patch.
src/Ffcms/Core/Arch/View.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
     /**
227 227
      * Show custom code library link
228 228
      * @param string $type - js or css allowed
229
-     * @return array|null|string
229
+     * @return null|string
230 230
      */
231 231
     public function showCodeLink($type)
232 232
     {
Please login to merge, or discard this patch.
src/Ffcms/Core/Filter/Native.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * Filter ['object', 'phone']
145 145
      * @param string $object
146
-     * @return bool|int
146
+     * @return boolean
147 147
      */
148 148
     public static function phone($object)
149 149
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * Direct preg_match expression. Filter ['object', 'direct_match', '/^[A-Z]/*$']
198 198
      * @param $object
199 199
      * @param $value
200
-     * @return bool|int
200
+     * @return boolean
201 201
      */
202 202
     public static function direct_match($object, $value)
203 203
     {
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      * Regular expression validation rule ['object', 'reg_match', '/^[A-Z]/*$']
219 219
      * @param $object
220 220
      * @param $value
221
-     * @return bool|int
221
+     * @return boolean
222 222
      */
223 223
     public static function reg_match($object, $value)
224 224
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Ffcms\Core\Helper\HTML\Bootstrap;
4 4
 
5
-use Ffcms\Core\App;
6 5
 use Ffcms\Core\Helper\Type\Arr;
7 6
 use Ffcms\Core\Helper\HTML\Listing;
8 7
 use Ffcms\Core\Helper\Type\Obj;
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/FileSystem/Directory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Ffcms\Core\Helper\FileSystem;
4 4
 
5
-use Ffcms\Core\Helper\Type\Str;
6 5
 use FilesystemIterator;
7 6
 use RecursiveDirectoryIterator;
8 7
 use RecursiveIteratorIterator;
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/HTML/Bootstrap/Nav.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Ffcms\Core\Helper\HTML\Bootstrap;
4 4
 
5
-use Ffcms\Core\App;
6 5
 use Ffcms\Core\Helper\Type\Arr;
7 6
 use Ffcms\Core\Helper\HTML\Listing;
8 7
 use Ffcms\Core\Helper\Type\Obj;
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/Security.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      * Alternative var_export function for php >= 5.4 syntax
95 95
      * @param $var
96 96
      * @param null $indent
97
-     * @return mixed|string
97
+     * @return string
98 98
      */
99 99
     public function var_export54($var, $indent = null, $guessTypes = false) {
100 100
         switch (gettype($var)) {
Please login to merge, or discard this patch.
src/Ffcms/Core/Helper/Url.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      * @param string|null $add
19 19
      * @param array $params
20 20
      * @param bool $encode
21
-     * @return null|string
21
+     * @return string
22 22
      */
23 23
     public static function to($controller_action, $id = null, $add = null, array $params = null, $encode = true)
24 24
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -140,12 +140,12 @@
 block discarded – undo
140 140
         }
141 141
 
142 142
         $content = null;
143
-        if(function_exists('curl_version')) {
143
+        if (function_exists('curl_version')) {
144 144
             $curl = \curl_init();
145 145
             $userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';
146
-            \curl_setopt($curl,CURLOPT_URL, $url);
147
-            \curl_setopt($curl,CURLOPT_RETURNTRANSFER, TRUE);
148
-            \curl_setopt($curl,CURLOPT_CONNECTTIMEOUT, 5);
146
+            \curl_setopt($curl, CURLOPT_URL, $url);
147
+            \curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
148
+            \curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
149 149
             \curl_setopt($curl, CURLOPT_HEADER, 0);
150 150
             \curl_setopt($curl, CURLOPT_USERAGENT, $userAgent);
151 151
             \curl_setopt($curl, CURLOPT_FAILONERROR, TRUE);
Please login to merge, or discard this patch.
src/Ffcms/Core/I18n/Translate.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     /**
114 114
      * Get available languages in the filesystem
115
-     * @return array
115
+     * @return string[]
116 116
      */
117 117
     public function getAvailableLangs()
118 118
     {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
     /**
128 128
      * Get lexer
129
-     * @return static
129
+     * @return Lexer
130 130
      */
131 131
     public function lexer()
132 132
     {
Please login to merge, or discard this patch.
src/Ffcms/Core/Network/Request.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
     /**
241 241
      * Get current $id argument for controller action
242
-     * @return string|null
242
+     * @return string
243 243
      */
244 244
     public function getID()
245 245
     {
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
     /**
250 250
      * Get current $add argument for controller action
251
-     * @return string|null
251
+     * @return string
252 252
      */
253 253
     public function getAdd()
254 254
     {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 
258 258
     /**
259 259
      * Get callback class alias if exist
260
-     * @return bool|string
260
+     * @return boolean
261 261
      */
262 262
     public function getCallbackAlias()
263 263
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Ffcms\Core\Helper\Type\Arr;
6 6
 use Ffcms\Core\Helper\Type\Obj;
7 7
 use Ffcms\Core\Helper\Type\Str;
8
-use Predis\Command\StringIncrement;
9 8
 use Symfony\Component\HttpFoundation\Request as FoundationRequest;
10 9
 use Symfony\Component\HttpFoundation\RedirectResponse as Redirect;
11 10
 use Ffcms\Core\App;
Please login to merge, or discard this patch.