Completed
Branch php7.0 (974637)
by Alexander
03:53
created
app/modules/Tree/Model/Category.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@
 block discarded – undo
47 47
     {
48 48
         $validator = new Validation();
49 49
         $validator->add('slug', new UniquenessValidator(
50
-           [
51
-               "model"   => $this,
52
-               "message" => "Category with slug '" . $this->slug . "' is already exists. Take another title"
53
-           ]
50
+            [
51
+                "model"   => $this,
52
+                "message" => "Category with slug '" . $this->slug . "' is already exists. Take another title"
53
+            ]
54 54
         ));
55 55
         return $this->validate($validator);
56 56
     }
Please login to merge, or discard this patch.
app/modules/Publication/Controller/IndexController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $typeLimit = ($typeModel->getLimit()) ? $typeModel->getLimit() : 10;
23 23
         $limit     = $this->request->getQuery('limit', 'string', $typeLimit);
24 24
         if ($limit != 'all') {
25
-            $paginatorLimit = (int)$limit;
25
+            $paginatorLimit = (int) $limit;
26 26
         } else {
27 27
             $paginatorLimit = 9999;
28 28
         }
Please login to merge, or discard this patch.
app/modules/Publication/Model/Helper/PublicationHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             $slug,
21 21
             $lang
22 22
 
23
-        ], function() use ($slug, $lang, $lifeTime) {
23
+        ], function () use ($slug, $lang, $lifeTime) {
24 24
             $columns = [
25 25
                 'p.*',
26 26
                 't_slug' => 't.slug'
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $lang = ($lang) ? $lang : LANG;
48 48
         
49 49
         $fields = [];
50
-        foreach($this->translateFields as $field) {
50
+        foreach ($this->translateFields as $field) {
51 51
             $fields[] = "(SELECT tr.value FROM [$this->translateModel] AS tr WHERE tr.foreign_id = p.id AND tr.lang = '$lang' AND tr.key = '$field') AS $field";
52 52
         }
53 53
         return $fields;
Please login to merge, or discard this patch.
app/modules/Page/Model/Helper/PageHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
             $slug,
21 21
             $lang
22 22
 
23
-        ], function() use ($slug, $lang, $lifeTime) {
23
+        ], function () use ($slug, $lang, $lifeTime) {
24 24
             $columns = ['p.*'];
25
-            foreach($this->translateFields as $field) {
25
+            foreach ($this->translateFields as $field) {
26 26
                 $columns[] = "(SELECT t.value FROM [$this->translateModel] AS t WHERE t.foreign_id = p.id AND t.lang = '$lang' AND t.key = '$field') AS $field";
27 27
             }
28 28
 
Please login to merge, or discard this patch.
app/modules/Page/Model/Page.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function afterUpdate()
55 55
     {
56
-	$this->getDi()->get('cacheManager')->delete([
56
+    $this->getDi()->get('cacheManager')->delete([
57 57
             Keys::PAGE,
58 58
             $this->slug,
59 59
             self::$lang
Please login to merge, or discard this patch.
app/Bootstrap.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -90,6 +90,10 @@  discard block
 block discarded – undo
90 90
 
91 91
     }
92 92
 
93
+    /**
94
+     * @param \Phalcon\Mvc\Application $application
95
+     * @param \Phalcon\Di\FactoryDefault $di
96
+     */
93 97
     private function initRouting($application, $di)
94 98
     {
95 99
         $router = new \Yona\Mvc\Router\DefaultRouter();
@@ -108,6 +112,9 @@  discard block
 block discarded – undo
108 112
         $di->set('router', $router);
109 113
     }
110 114
 
115
+    /**
116
+     * @param \Phalcon\Di\FactoryDefault $di
117
+     */
111 118
     private function initEventManager($di)
112 119
     {
113 120
         $eventsManager = new \Phalcon\Events\Manager();
@@ -147,6 +154,9 @@  discard block
 block discarded – undo
147 154
         $di->set('dispatcher', $dispatcher);
148 155
     }
149 156
 
157
+    /**
158
+     * @param \Phalcon\Di\FactoryDefault $di
159
+     */
150 160
     private function initView($di)
151 161
     {
152 162
         $view = new \Phalcon\Mvc\View();
@@ -176,6 +186,9 @@  discard block
 block discarded – undo
176 186
         return $view;
177 187
     }
178 188
 
189
+    /**
190
+     * @param \Phalcon\Di\FactoryDefault $di
191
+     */
179 192
     private function initCache($di)
180 193
     {
181 194
         $config = $di->get('config');
@@ -218,6 +231,9 @@  discard block
 block discarded – undo
218 231
         $di->set('cacheManager', new CacheManager());
219 232
     }
220 233
 
234
+    /**
235
+     * @param \Phalcon\Di\FactoryDefault $di
236
+     */
221 237
     private function dispatch($di)
222 238
     {
223 239
         $router = $di['router'];
Please login to merge, or discard this patch.
app/library/Yona/Form/Form.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
 
19 19
     protected $helper;
20 20
 
21
+    /**
22
+     * @param string $name
23
+     */
21 24
     public function renderDecorated($name)
22 25
     {
23 26
         if (!$this->has($name)) {
@@ -90,6 +93,9 @@  discard block
 block discarded – undo
90 93
         return $html;
91 94
     }
92 95
 
96
+    /**
97
+     * @param \Phalcon\Forms\ElementInterface|null $element
98
+     */
93 99
     private function makeLabel($element)
94 100
     {
95 101
         if ($element->getLabel()) {
Please login to merge, or discard this patch.
app/library/Yona/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/library/Yona/Widget/AbstractWidget.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 
14 14
     private $module;
15 15
 
16
+    /**
17
+     * @param string $template
18
+     */
16 19
     public function widgetPartial($template, array $data = array())
17 20
     {
18 21
         return $this->helper->modulePartial($template, $data, $this->module);
Please login to merge, or discard this patch.