Passed
Push — master ( cbce13...d3fd5d )
by Mihail
50:22 queued 46:36
created
Apps/Model/Front/Sitemap/EntityBuildMap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,16 +52,16 @@  discard block
 block discarded – undo
52 52
                 $this->data[$lang][] = [
53 53
                     'uri' => Url::standaloneUrl($uri, $lang),
54 54
                     'lastmod' => Date::convertToDatetime($lastmod, 'c'),
55
-                    'freq' => (string)$freq,
56
-                    'priority' => (float)$priority
55
+                    'freq' => (string) $freq,
56
+                    'priority' => (float) $priority
57 57
                 ];
58 58
             }
59 59
         } else { // only one language, multilanguage is disabled
60 60
             $this->data[App::$Properties->get('singleLanguage')][] = [
61 61
                 'uri' => Url::standaloneUrl($uri),
62 62
                 'lastmod' => Date::convertToDatetime($lastmod, 'c'),
63
-                'freq' => (string)$freq,
64
-                'priority' => (float)$priority
63
+                'freq' => (string) $freq,
64
+                'priority' => (float) $priority
65 65
             ];
66 66
         }
67 67
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 'items' => $items
87 87
             ]);
88 88
             
89
-            File::write(EntityIndexList::INDEX_PATH . '/' . $uniqueName . '.' . $lang . '.xml', $xml);
89
+            File::write(EntityIndexList::INDEX_PATH.'/'.$uniqueName.'.'.$lang.'.xml', $xml);
90 90
         }
91 91
         return true;
92 92
     }
Please login to merge, or discard this patch.
Apps/View/Admin/default/sitemap/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,19 +15,19 @@
 block discarded – undo
15 15
 <h1><?= __('Sitemap') ?></h1>
16 16
 <hr />
17 17
 <p><?= __('Sitemap its a special application to generate sitemap as xml file over sitemap standart for search engines.') ?></p>
18
-<p><?= __('Sitemap main index') ?>: <a href="<?= \App::$Alias->scriptUrl . '/sitemap' ?>" target="_blank">/sitemap</a></p>
18
+<p><?= __('Sitemap main index') ?>: <a href="<?= \App::$Alias->scriptUrl.'/sitemap' ?>" target="_blank">/sitemap</a></p>
19 19
 <h3><?= __('Sitemap files') ?></h3>
20 20
 <?php
21 21
 $items = [];
22 22
 if ($model->files === null || count($model->files) < 1) {
23
-    echo '<p class="alert alert-warning">' . __('No sitemap files found! Maybe cron manager is not configured') . '</p>';
23
+    echo '<p class="alert alert-warning">'.__('No sitemap files found! Maybe cron manager is not configured').'</p>';
24 24
     return;
25 25
 }
26 26
 
27
-foreach($model->files as $file) {
27
+foreach ($model->files as $file) {
28 28
     $items[] = [
29 29
         'type' => 'link',
30
-        'link' => \App::$Alias->scriptUrl . $file,
30
+        'link' => \App::$Alias->scriptUrl.$file,
31 31
         'text' => $file,
32 32
         'linkProperty' => ['target' => '_blank']
33 33
     ];
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormWallPost.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         // add user notification
63 63
         if ($target->id !== $viewer->id) {
64 64
             $notify = new EntityAddNotification($target->id);
65
-            $notify->add('profile/show/' . $target->id . '#wall-post-' . $record->id, EntityAddNotification::MSG_ADD_WALLPOST, ['snippet' => Text::snippet($this->message, 50)]);
65
+            $notify->add('profile/show/'.$target->id.'#wall-post-'.$record->id, EntityAddNotification::MSG_ADD_WALLPOST, ['snippet' => Text::snippet($this->message, 50)]);
66 66
         }
67 67
 
68 68
         // cleanup message
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,12 +3,10 @@
 block discarded – undo
3 3
 namespace Apps\Model\Front\Profile;
4 4
 
5 5
 use Apps\ActiveRecord\WallPost as WallRecords;
6
-use Ffcms\Core\App;
7 6
 use Ffcms\Core\Arch\Model;
8 7
 use Ffcms\Core\Helper\Date;
9 8
 use Ffcms\Core\Helper\Text;
10 9
 use Ffcms\Core\Helper\Type\Any;
11
-use Ffcms\Core\Helper\Type\Obj;
12 10
 use Ffcms\Core\Interfaces\iUser;
13 11
 
14 12
 /**
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/EntityNotificationsList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
             $this->items[] = [
59 59
                 'text' => $text,
60 60
                 'date' => Date::humanize($record->created_at),
61
-                'new' => (bool)$record->readed === false
61
+                'new' => (bool) $record->readed === false
62 62
             ];
63 63
         }
64 64
     }
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/user_delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 <?php
58 58
     $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']);
59 59
     echo $form->start();
60
-    echo $form->submitButton(__('Delete'), ['class' => 'btn btn-danger']) . "&nbsp;";
60
+    echo $form->submitButton(__('Delete'), ['class' => 'btn btn-danger'])."&nbsp;";
61 61
     echo Url::link(['user/index'], __('Cancel'), ['class' => 'btn btn-default']);
62 62
     echo $form->finish();
63 63
 ?>
64 64
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Controller/Admin/Feedback.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function actionIndex()
34 34
     {
35 35
         // set current page and offset
36
-        $page = (int)$this->request->query->get('page');
36
+        $page = (int) $this->request->query->get('page');
37 37
         $offset = $page * self::ITEM_PER_PAGE;
38 38
 
39 39
         // get feedback posts AR table
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
         // initialize model with answer add if thread is not closed
77 77
         $model = null;
78
-        if ((int)$record->closed !== 1) {
78
+        if ((int) $record->closed !== 1) {
79 79
             $model = new FormAnswerAdd($record, App::$User->identity()->getId());
80 80
             if ($model->send()) {
81 81
                 if ($model->validate()) {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             case 'answer':
116 116
                 $record = FeedbackAnswer::find($id);
117 117
                 if ($record !== null && $record !== false) {
118
-                    $postId = (int)$record->getFeedbackPost()->id;
118
+                    $postId = (int) $record->getFeedbackPost()->id;
119 119
                 }
120 120
                 break;
121 121
         }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             if ($model->validate()) {
132 132
                 $model->make();
133 133
                 App::$Session->getFlashBag()->add('success', __('Feedback item are successful changed'));
134
-                $this->response->redirect('feedback/read/' . $postId);
134
+                $this->response->redirect('feedback/read/'.$postId);
135 135
             } else {
136 136
                 App::$Session->getFlashBag()->add('danger', __('Updating is failed'));
137 137
             }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         App::$Session->getFlashBag()->add('success', __('Feedback request is changed!'));
182 182
 
183 183
         // redirect to feedback post read
184
-        $this->response->redirect('feedback/read/' . $id);
184
+        $this->response->redirect('feedback/read/'.$id);
185 185
         return null;
186 186
     }
187 187
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
                 // its a answer, lets remove it and redirect back in post
227 227
                 $postId = $record->feedback_id;
228 228
                 $record->delete();
229
-                $this->response->redirect('feedback/read/' . $postId);
229
+                $this->response->redirect('feedback/read/'.$postId);
230 230
             }
231 231
         }
232 232
 
Please login to merge, or discard this patch.
Apps/ActiveRecord/Role.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public static function all($columns = ['*'])
28 28
     {
29
-        $cacheName = 'activerecords.role.all.' . implode('.', $columns);
29
+        $cacheName = 'activerecords.role.all.'.implode('.', $columns);
30 30
         $records = MemoryObject::instance()->get($cacheName);
31 31
         if ($records === null) {
32 32
             $records = parent::all($columns);
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public static function get($role_id)
45 45
     {
46
-        $role = MainApp::$Memory->get('user.role.cache.' . $role_id);
46
+        $role = MainApp::$Memory->get('user.role.cache.'.$role_id);
47 47
 
48 48
         // not founded in cache
49 49
         if ($role === null) {
50 50
             $role = self::find($role_id);
51
-            MainApp::$Memory->set('user.role.cache.' . $role_id, $role);
51
+            MainApp::$Memory->set('user.role.cache.'.$role_id, $role);
52 52
         }
53 53
         return $role;
54 54
     }
Please login to merge, or discard this patch.
Apps/ActiveRecord/ProfileField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public static function all($columns = ['*'])
30 30
     {
31
-        $cacheName = 'activerecord.profilefield.all.' . implode('.', $columns);
31
+        $cacheName = 'activerecord.profilefield.all.'.implode('.', $columns);
32 32
         $records = MemoryObject::instance()->get($cacheName);
33 33
         if ($records === null) {
34 34
             $records = parent::all($columns);
Please login to merge, or discard this patch.
Apps/Model/Admin/Comments/FormCommentUpdate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     /**
21 21
      * FormCommentUpdate constructor. Pass record inside the model.
22
-     * @param \Apps\ActiveRecord\CommentPost|\Apps\ActiveRecord\CommentAnswer $record
22
+     * @param \Ffcms\Core\Arch\ActiveModel $record
23 23
      */
24 24
     public function __construct($record, $type = 'comment')
25 25
     {
Please login to merge, or discard this patch.