Passed
Push — master ( 96b24d...af997f )
by Karel
14:49
created
src/Commands/GenerateSite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             $this->info('..         ..');
122 122
             $this->info('.         .');
123 123
             $this->info(' ');
124
-            $this->info('New site: '.$name.' ('.$domain.') generated successfully');
124
+            $this->info('New site: ' . $name . ' (' . $domain . ') generated successfully');
125 125
             $this->info(' ');
126 126
         }
127 127
     }
Please login to merge, or discard this patch.
database/migrations/2017_08_11_074006_create_chck_menu_items_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create(config('menu.table_prefix').config('menu.table_name_items'), function (Blueprint $table) {
16
+        Schema::create(config('menu.table_prefix') . config('menu.table_name_items'), function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('label');
19 19
             $table->string('link');
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             $table->integer('depth')->default(0);
25 25
             $table->timestamps();
26 26
 
27
-            $table->foreign('menu')->references('id')->on(config('menu.table_prefix').config('menu.table_name_menus'))
27
+            $table->foreign('menu')->references('id')->on(config('menu.table_prefix') . config('menu.table_name_menus'))
28 28
             ->onDelete('cascade')
29 29
             ->onUpdate('cascade');
30 30
         });
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function down()
39 39
     {
40
-        Schema::dropIfExists(config('menu.table_prefix').config('menu.table_name_items'));
40
+        Schema::dropIfExists(config('menu.table_prefix') . config('menu.table_name_items'));
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
migrations/2018_01_01_000001_add_active_token_field_to_users_table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
     public function up()
15 15
     {
16 16
         if (!Schema::hasColumn('users', 'token')) {
17
-            Schema::table('users', function (Blueprint $table) {
17
+            Schema::table('users', function(Blueprint $table) {
18 18
                 $table->string('token', 24)->unique()->after('remember_token');
19 19
             });
20 20
         }
21 21
 
22 22
         if (!Schema::hasColumn('users', 'active')) {
23
-            Schema::table('users', function (Blueprint $table) {
23
+            Schema::table('users', function(Blueprint $table) {
24 24
                 $table->tinyInteger('active')->default(0)->after('token');
25 25
             });
26 26
         }
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
     public function down()
35 35
     {
36 36
         if (Schema::hasColumn('users', 'token')) {
37
-            Schema::table('users', function (Blueprint $table) {
37
+            Schema::table('users', function(Blueprint $table) {
38 38
                 $table->dropColumn('token');
39 39
             });
40 40
         }
41 41
 
42 42
         if (Schema::hasColumn('users', 'active')) {
43
-            Schema::table('users', function (Blueprint $table) {
43
+            Schema::table('users', function(Blueprint $table) {
44 44
                 $table->dropColumn('active');
45 45
             });
46 46
         }
Please login to merge, or discard this patch.
database/migrations/2017_08_11_073824_create_chck_menus_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create(config('menu.table_prefix').config('menu.table_name_menus'), function (Blueprint $table) {
16
+        Schema::create(config('menu.table_prefix') . config('menu.table_name_menus'), function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->timestamps();
@@ -27,6 +27,6 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function down()
29 29
     {
30
-        Schema::dropIfExists(config('menu.table_prefix').config('menu.table_name_menus'));
30
+        Schema::dropIfExists(config('menu.table_prefix') . config('menu.table_name_menus'));
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Controllers/Auth/ResetPasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
     protected function redirectTo()
40 40
     {
41
-        return '/'.Auth::user()->roles()->first()->redirect;
41
+        return '/' . Auth::user()->roles()->first()->redirect;
42 42
     }
43 43
 
44 44
     /**
Please login to merge, or discard this patch.
src/Providers/ChuckServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-        $this->app->bind('Chuck', function () {
26
+        $this->app->bind('Chuck', function() {
27 27
             return new \Chuckbe\Chuckcms\Chuck\Accessors\Chuck();
28 28
         });
29 29
     }
Please login to merge, or discard this patch.
src/Controllers/MatomoController.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -126,18 +126,18 @@  discard block
 block discarded – undo
126 126
             case 'month':
127 127
                 $value = $request->all()['value'];
128 128
                 $range = [
129
-                    'start' => $value['y2'].'-'.$value['m2'].'-'.$value['d2'],
130
-                    'end'   => $value['y1'].'-'.$value['m1'].'-'.$value['d1'],
129
+                    'start' => $value['y2'] . '-' . $value['m2'] . '-' . $value['d2'],
130
+                    'end'   => $value['y1'] . '-' . $value['m1'] . '-' . $value['d1'],
131 131
                 ];
132
-                $imgDate = $range['start'].','.$range['end'];
132
+                $imgDate = $range['start'] . ',' . $range['end'];
133 133
                 break;
134 134
 
135 135
             case 'day':
136 136
                 if ($date == 'today') {
137
-                    $imgDate = date('Y-m-d').','.date('Y-m-d', strtotime(date('Y-m-d').' 2 day'));
137
+                    $imgDate = date('Y-m-d') . ',' . date('Y-m-d', strtotime(date('Y-m-d') . ' 2 day'));
138 138
                 }
139 139
                 if ($date == 'yesterday') {
140
-                    $imgDate = date('Y-m-d').','.date('Y-m-d', strtotime(date('Y-m-d').' 2 day'));
140
+                    $imgDate = date('Y-m-d') . ',' . date('Y-m-d', strtotime(date('Y-m-d') . ' 2 day'));
141 141
                 }
142 142
                 break;
143 143
         }
@@ -157,15 +157,15 @@  discard block
 block discarded – undo
157 157
 
158 158
         return response()->json(
159 159
             [
160
-                'visitimg'               => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&segment=&showtitle=1&random=6179&columns=nb_visits%2Cnb_uniq_visitors&token_auth='.$this->authToken,
161
-                'avgvisitimg'            => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&showtitle=1&random=6179&columns=avg_time_on_site&token_auth='.$this->authToken,
162
-                'bouncerateimg'          => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&columns=bounce_rate&token_auth='.$this->authToken,
163
-                'actions_per_visit_img'  => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&columns=nb_actions_per_visit&token_auth='.$this->authToken,
164
-                'pageviewimg'            => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&columns=nb_pageviews%2Cnb_uniq_pageviews&token_auth='.$this->authToken,
165
-                'searchesandkeywordsimg' => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&columns=nb_searches%2Cnb_keywords&token_auth='.$this->authToken,
166
-                'downloadsimg'           => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&columns=nb_downloads%2Cnb_uniq_downloads&token_auth='.$this->authToken,
167
-                'outlinksimg'            => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&columns=nb_outlinks%2Cnb_uniq_outlinks&token_auth='.$this->authToken,
168
-                'maxactionsimg'          => $matomoUrl.'/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite='.$this->siteId.'&period='.$period.'&date='.$imgDate.'&columns=max_actions&token_auth='.$this->authToken,
160
+                'visitimg'               => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&segment=&showtitle=1&random=6179&columns=nb_visits%2Cnb_uniq_visitors&token_auth=' . $this->authToken,
161
+                'avgvisitimg'            => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&showtitle=1&random=6179&columns=avg_time_on_site&token_auth=' . $this->authToken,
162
+                'bouncerateimg'          => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&columns=bounce_rate&token_auth=' . $this->authToken,
163
+                'actions_per_visit_img'  => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&columns=nb_actions_per_visit&token_auth=' . $this->authToken,
164
+                'pageviewimg'            => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&columns=nb_pageviews%2Cnb_uniq_pageviews&token_auth=' . $this->authToken,
165
+                'searchesandkeywordsimg' => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&columns=nb_searches%2Cnb_keywords&token_auth=' . $this->authToken,
166
+                'downloadsimg'           => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&columns=nb_downloads%2Cnb_uniq_downloads&token_auth=' . $this->authToken,
167
+                'outlinksimg'            => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&columns=nb_outlinks%2Cnb_uniq_outlinks&token_auth=' . $this->authToken,
168
+                'maxactionsimg'          => $matomoUrl . '/index.php?forceView=1&viewDataTable=sparkline&module=API&action=get&idSite=' . $this->siteId . '&period=' . $period . '&date=' . $imgDate . '&columns=max_actions&token_auth=' . $this->authToken,
169 169
                 'data'                   => $data,
170 170
             ]
171 171
         );
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
         }
207 207
 
208 208
         $range = [
209
-            'start' => $data['y2'].'-'.$data['m2'].'-'.$data['d2'],
210
-            'end'   => $data['y1'].'-'.$data['m1'].'-'.$data['d1'],
209
+            'start' => $data['y2'] . '-' . $data['m2'] . '-' . $data['d2'],
210
+            'end'   => $data['y1'] . '-' . $data['m1'] . '-' . $data['d1'],
211 211
         ];
212 212
 
213 213
         $now = Carbon::now();
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 
230 230
         if ($difference > 0) {
231 231
             $period = 'range';
232
-            $date = $range['start'].','.$range['end'];
232
+            $date = $range['start'] . ',' . $range['end'];
233 233
         }
234 234
 
235 235
         return $periodCheck ? $period : $date;
Please login to merge, or discard this patch.
database/migrations/2017_12_27_164940_create_repeaters_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('repeaters', function (Blueprint $table) {
16
+        Schema::create('repeaters', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('slug');
19 19
             $table->string('url')->nullable()->default(null);
Please login to merge, or discard this patch.
database/migrations/2017_12_19_225247_create_pages_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('pages', function (Blueprint $table) {
16
+        Schema::create('pages', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('template_id');
19 19
             $table->string('page')->nullable()->default(null);
Please login to merge, or discard this patch.