Passed
Push — master ( 0f5253...9796fd )
by Karel
08:02
created
config/menu.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	/* you can add your own middleware here */
4
+    /* you can add your own middleware here */
5 5
 	
6
-	'middleware' => [],
6
+    'middleware' => [],
7 7
 
8
-	/* you can set your own table prefix here */
9
-	'table_prefix' => 'chck_',
8
+    /* you can set your own table prefix here */
9
+    'table_prefix' => 'chck_',
10 10
 
11 11
     /* you can set your own table names */
12 12
     'table_name_menus' => 'menus',
Please login to merge, or discard this patch.
config/lang.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-	'allLocales' => [
6
-	'ace'         => ['name' => 'Achinese',               'script' => 'Latn', 'native' => 'Aceh', 'regional' => ''],
5
+    'allLocales' => [
6
+    'ace'         => ['name' => 'Achinese',               'script' => 'Latn', 'native' => 'Aceh', 'regional' => ''],
7 7
         'af'          => ['name' => 'Afrikaans',              'script' => 'Latn', 'native' => 'Afrikaans', 'regional' => 'af_ZA'],
8 8
         'agq'         => ['name' => 'Aghem',                  'script' => 'Latn', 'native' => 'Aghem', 'regional' => ''],
9 9
         'ak'          => ['name' => 'Akan',                   'script' => 'Latn', 'native' => 'Akan', 'regional' => 'ak_GH'],
Please login to merge, or discard this patch.
assets/plugins/jquery-datatable/extensions/Scroller/examples/data/ssp.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,19 +29,19 @@  discard block
 block discarded – undo
29 29
 // parameter represents the DataTables column identifier. In this case simple
30 30
 // indexes
31 31
 $columns = array(
32
-	array( 'db' => 'id',         'dt' => 0 ),
33
-	array( 'db' => 'firstname',  'dt' => 1 ),
34
-	array( 'db' => 'surname',    'dt' => 2 ),
35
-	array( 'db' => 'zip',        'dt' => 3 ),
36
-	array( 'db' => 'country',    'dt' => 4 )
32
+    array( 'db' => 'id',         'dt' => 0 ),
33
+    array( 'db' => 'firstname',  'dt' => 1 ),
34
+    array( 'db' => 'surname',    'dt' => 2 ),
35
+    array( 'db' => 'zip',        'dt' => 3 ),
36
+    array( 'db' => 'country',    'dt' => 4 )
37 37
 );
38 38
 
39 39
 // SQL server connection information
40 40
 $sql_details = array(
41
-	'user' => '',
42
-	'pass' => '',
43
-	'db'   => '',
44
-	'host' => ''
41
+    'user' => '',
42
+    'pass' => '',
43
+    'db'   => '',
44
+    'host' => ''
45 45
 );
46 46
 
47 47
 
@@ -53,6 +53,6 @@  discard block
 block discarded – undo
53 53
 require( '../../../../examples/server_side/scripts/ssp.class.php' );
54 54
 
55 55
 echo json_encode(
56
-	SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
56
+    SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
57 57
 );
58 58
 
Please login to merge, or discard this patch.
src/Chuck/PageBlockRepository.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         $contentStart += $startDelimiterLength;
143 143
         $contentEnd = strpos($str, $endDelimiter, $contentStart);
144 144
         if (false === $contentEnd) {
145
-          break;
145
+            break;
146 146
         }
147 147
         $contents[] = substr($str, $contentStart, $contentEnd - $contentStart);
148 148
         $startFrom = $contentEnd + $endDelimiterLength;
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
                     $newbody = str_replace('[LOOP='.$repeater_slug.']'.$repeater_body.'[/LOOP]',$this->getRepeaterContents($repeater_slug, $repeater_body),$body);
55 55
 
56 56
                 // THERE IS NO LOOP, CONTINUE
57
-                }elseif(strpos($findThis[0], 'FORM') !== false) {// PAGEBLOCK CONTAINS A FORM, LET'S RETRIEVE IT
57
+                } elseif(strpos($findThis[0], 'FORM') !== false) {// PAGEBLOCK CONTAINS A FORM, LET'S RETRIEVE IT
58 58
                     $form_slug = implode(" ",$this->getResources($body, '[FORM=', ']'));
59 59
                     
60 60
                     $newbody = $this->getFormHtml($form_slug,$body);
61
-                }else{// THERE IS NO FORM, SO JUST RETRIEVE THE DYNAMIC CONTENT
61
+                } else{// THERE IS NO FORM, SO JUST RETRIEVE THE DYNAMIC CONTENT
62 62
                     $newbody = $this->getResourceContent($findThis, $pageblock->id, $body);//Maybe write a function in the model?    
63 63
                 }
64 64
             } else {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 $newbody = str_replace('[LOOP='.$repeater_slug.']'.$repeater_body.'[/LOOP]',$this->getRepeaterContents($repeater_slug, $repeater_body),$body);
104 104
 
105 105
             // THERE IS NO LOOP, CONTINUE
106
-            }elseif(strpos($findThis[0], 'FORM') !== false) {// PAGEBLOCK CONTAINS A FORM, LET'S RETRIEVE IT
106
+            } elseif(strpos($findThis[0], 'FORM') !== false) {// PAGEBLOCK CONTAINS A FORM, LET'S RETRIEVE IT
107 107
                 $form_slug = implode(" ",$this->getResources($body, '[FORM=', ']'));
108 108
                 
109 109
                 $newbody = $this->getFormHtml($form_slug,$body);
Please login to merge, or discard this patch.
src/Chuck/UserRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 class UserRepository
10 10
 {
11
-	public function __construct(User $user)
11
+    public function __construct(User $user)
12 12
     {
13 13
         $this->user = $user;
14 14
     }
Please login to merge, or discard this patch.
src/Chuck/SiteRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
     public static function updateOrCreateFromRequest($req)
11 11
     {
12
-    	$settings = [];
12
+        $settings = [];
13 13
         foreach ($req->get('socialmedia') as $smKey => $smValue) {
14 14
             $settings['socialmedia'][$smKey] = $smValue;
15 15
         }
Please login to merge, or discard this patch.
src/Controllers/PageController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
                         $blockKey = str_replace('.html', '', $value);
161 161
                         $blockName = str_replace('-', ' ', $blockKey);
162 162
                         if (file_exists($dir . DIRECTORY_SEPARATOR . $blockKey . '.jpg')) {
163
-                           $blockImage = $dir . DIRECTORY_SEPARATOR . $blockKey . '.jpg';
163
+                            $blockImage = $dir . DIRECTORY_SEPARATOR . $blockKey . '.jpg';
164 164
                         } elseif (file_exists($dir . DIRECTORY_SEPARATOR . $blockKey . '.jpeg')) {
165 165
                             $blockImage = $dir . DIRECTORY_SEPARATOR . $blockKey . '.jpeg';
166 166
                         } elseif (file_exists($dir . DIRECTORY_SEPARATOR . $blockKey . '.png')) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,8 +154,7 @@
 block discarded – undo
154 154
             if (!in_array($value,array(".",".."))) { 
155 155
                 if (is_dir($dir . DIRECTORY_SEPARATOR . $value)) { 
156 156
                     $result[$value] = $this->dirToArray($dir . DIRECTORY_SEPARATOR . $value); 
157
-                } 
158
-                else { 
157
+                } else { 
159 158
                     if ($value !== '.DS_Store' && (strpos($value, '.html') !== false) ) {
160 159
                         $blockKey = str_replace('.html', '', $value);
161 160
                         $blockName = str_replace('-', ' ', $blockKey);
Please login to merge, or discard this patch.
src/Controllers/ContentController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         $store = $content->storeEntry($request);
164 164
         if($store == 'success'){
165 165
             return redirect()->route('dashboard.content.repeaters.entries', ['slug' => $slug]);
166
-        }else {
166
+        } else {
167 167
             // error catching ... ?
168 168
         }
169 169
     }
Please login to merge, or discard this patch.
src/Controllers/FrontEndController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
             $page = $this->page->where('slug->'.app()->getLocale(), $slug)->first();
65 65
             if($page == null){
66
-               foreach(\LaravelLocalization::getSupportedLocales() as $localeCode => $properties){
66
+                foreach(\LaravelLocalization::getSupportedLocales() as $localeCode => $properties){
67 67
                     $page = $this->page->where('slug->'.$localeCode, $slug)->first();
68 68
                     if($page !== null && $localeCode == app()->getLocale()) break;
69 69
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,9 @@  discard block
 block discarded – undo
65 65
             if($page == null){
66 66
                foreach(\LaravelLocalization::getSupportedLocales() as $localeCode => $properties){
67 67
                     $page = $this->page->where('slug->'.$localeCode, $slug)->first();
68
-                    if($page !== null && $localeCode == app()->getLocale()) break;
68
+                    if($page !== null && $localeCode == app()->getLocale()) {
69
+                        break;
70
+                    }
69 71
 
70 72
                     if($page !== null && $localeCode !== app()->getLocale()){
71 73
                         //dd(app()->getLocale());
@@ -77,7 +79,9 @@  discard block
 block discarded – undo
77 79
                 } 
78 80
             }
79 81
 
80
-            if($page == null) abort(404);
82
+            if($page == null) {
83
+                abort(404);
84
+            }
81 85
         }
82 86
         
83 87
         $ogpageblocks = $this->pageblock->getAllByPageId($page->id);
Please login to merge, or discard this patch.