Completed
Push — master ( 4291f4...bd067c )
by Alexander
03:11
created
app/Bootstrap.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -96,6 +96,10 @@  discard block
 block discarded – undo
96 96
 
97 97
     }
98 98
 
99
+    /**
100
+     * @param \Phalcon\Mvc\Application $application
101
+     * @param \Phalcon\Di\FactoryDefault $di
102
+     */
99 103
     private function initRouting($application, $di)
100 104
     {
101 105
         $router = new \Application\Mvc\Router\DefaultRouter();
@@ -114,6 +118,9 @@  discard block
 block discarded – undo
114 118
         $di->set('router', $router);
115 119
     }
116 120
 
121
+    /**
122
+     * @param \Phalcon\Di\FactoryDefault $di
123
+     */
117 124
     private function initAssetsManager($di)
118 125
     {
119 126
         $config = $di->get('config');
@@ -150,6 +157,9 @@  discard block
 block discarded – undo
150 157
         $di->set('assets', $assetsManager);
151 158
     }
152 159
 
160
+    /**
161
+     * @param \Phalcon\Di\FactoryDefault $di
162
+     */
153 163
     private function initEventManager($di)
154 164
     {
155 165
         $eventsManager = new \Phalcon\Events\Manager();
@@ -191,6 +201,9 @@  discard block
 block discarded – undo
191 201
         $di->set('dispatcher', $dispatcher);
192 202
     }
193 203
 
204
+    /**
205
+     * @param \Phalcon\Di\FactoryDefault $di
206
+     */
194 207
     private function initView($di)
195 208
     {
196 209
         $view = new \Phalcon\Mvc\View();
@@ -225,6 +238,9 @@  discard block
 block discarded – undo
225 238
         return $view;
226 239
     }
227 240
 
241
+    /**
242
+     * @param \Phalcon\Di\FactoryDefault $di
243
+     */
228 244
     private function initCache($di)
229 245
     {
230 246
         $config = $di->get('config');
@@ -267,6 +283,9 @@  discard block
 block discarded – undo
267 283
         $di->set('cacheManager', new CacheManager());
268 284
     }
269 285
 
286
+    /**
287
+     * @param \Phalcon\Di\FactoryDefault $di
288
+     */
270 289
     private function dispatch($di)
271 290
     {
272 291
         $router = $di['router'];
Please login to merge, or discard this patch.
app/modules/Image/Storage.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
     /**
202 202
      * @param $file
203
-     * @return bool
203
+     * @return boolean|null
204 204
      */
205 205
     public function save($file)
206 206
     {
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     }
376 376
 
377 377
     /**
378
-     * @param $originalAbsPath
378
+     * @param string $originalAbsPath
379 379
      * @throws \Exception
380 380
      */
381 381
     private function checkOriginalExists($originalAbsPath)
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
     /**
393 393
      * @param $image
394
-     * @param $originalAbsPath
394
+     * @param string $originalAbsPath
395 395
      * @throws \Exception
396 396
      */
397 397
     private function saveImage($image, $originalAbsPath)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,8 +109,7 @@  discard block
 block discarded – undo
109 109
             $this->changeAttributesInAccordanceWithStretch();
110 110
         }
111 111
         $this->attributes['alt'] = (isset($this->attributes['alt'])) ?
112
-            htmlspecialchars($this->attributes['alt'], ENT_QUOTES) :
113
-            '';
112
+            htmlspecialchars($this->attributes['alt'], ENT_QUOTES) : '';
114 113
     }
115 114
 
116 115
     private function changeAttributesInAccordanceWithStretch()
@@ -239,7 +238,7 @@  discard block
 block discarded – undo
239 238
      */
240 239
     public function isExists()
241 240
     {
242
-        return (file_exists($this->getAbsPath(true))) ? true : false ;
241
+        return (file_exists($this->getAbsPath(true))) ? true : false;
243 242
     }
244 243
 
245 244
     /**
Please login to merge, or discard this patch.
app/modules/Application/Mvc/Helper.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -62,6 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * Мультиязычный перевод строки по сайту/пользовательской_части
65
+     * @param string $string
65 66
      */
66 67
     public function translate($string, $placeholders = null)
67 68
     {
@@ -74,6 +75,7 @@  discard block
 block discarded – undo
74 75
 
75 76
     /**
76 77
      * Мультиязычный перевод строки по админке
78
+     * @param string $string
77 79
      */
78 80
     public function at($string, $placeholders = null)
79 81
     {
Please login to merge, or discard this patch.
app/modules/Application/Mvc/Router/DefaultRouter.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -43,6 +43,10 @@
 block discarded – undo
43 43
 
44 44
     }
45 45
 
46
+    /**
47
+     * @param string $pattern
48
+     * @param string $name
49
+     */
46 50
     public function addML($pattern, $paths = null, $name)
47 51
     {
48 52
         $languages = CmsCache::getInstance()->get('languages');
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 use Application\Mvc\Helper\CmsCache;
12 12
 use Phalcon\Mvc\Router;
13
-use Cms\Model\Language;
14 13
 
15 14
 class DefaultRouter extends Router
16 15
 {
Please login to merge, or discard this patch.
app/modules/Seo/Model/Manager.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,6 @@
 block discarded – undo
9 9
 
10 10
 use Application\Mvc\Helper\CmsCache;
11 11
 use Application\Mvc\Model\Model;
12
-use Application\Mvc\Router\DefaultRouter;
13
-use Phalcon\Mvc\Model\Message;
14 12
 
15 13
 class Manager extends Model
16 14
 {
Please login to merge, or discard this patch.