Completed
Push — master ( 185e5e...dc5aa9 )
by Alexander
03:43
created
app/modules/Publication/Model/Publication.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -252,6 +252,9 @@
 block discarded – undo
252 252
         }
253 253
     }
254 254
 
255
+    /**
256
+     * @param integer $preview_inner
257
+     */
255 258
     public function setPreviewInner($preview_inner)
256 259
     {
257 260
         $this->preview_inner = $preview_inner;
Please login to merge, or discard this patch.
app/modules/Page/Model/Page.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@
 block discarded – undo
245 245
     }
246 246
 
247 247
     /**
248
-     * @return mixed
248
+     * @return string
249 249
      */
250 250
     public function getUpdatedAt()
251 251
     {
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.