| @@ -54,7 +54,7 @@ discard block | ||
| 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); | 
| @@ -103,7 +103,7 @@ discard block | ||
| 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); | 
| @@ -154,8 +154,7 @@ | ||
| 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); | 
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | |
| 24 | 24 | public function getRenderedById($pageblock_id, PageBlockRepository $pageBlockRepository) | 
| 25 | 25 |      { | 
| 26 | -    	$pageblock = $this->where('id', $pageblock_id)->first(); | |
| 27 | - $new_pageblock = $pageBlockRepository->getRenderedByPageBlock($pageblock); | |
| 28 | - return $new_pageblock; | |
| 26 | +        $pageblock = $this->where('id', $pageblock_id)->first(); | |
| 27 | + $new_pageblock = $pageBlockRepository->getRenderedByPageBlock($pageblock); | |
| 28 | + return $new_pageblock; | |
| 29 | 29 | } | 
| 30 | 30 | |
| 31 | 31 | public function getById($id) | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 |  { | 
| 9 | 9 | protected $user; | 
| 10 | 10 | |
| 11 | - public function __construct(User $user) | |
| 11 | + public function __construct(User $user) | |
| 12 | 12 |      { | 
| 13 | 13 | $this->user = $user; | 
| 14 | 14 | } | 
| @@ -84,7 +84,7 @@ | ||
| 84 | 84 | } | 
| 85 | 85 | |
| 86 | 86 |              if($page == null) { | 
| 87 | - abort(404); | |
| 87 | + abort(404); | |
| 88 | 88 | } | 
| 89 | 89 | } | 
| 90 | 90 | |
| @@ -215,7 +215,7 @@ | ||
| 215 | 215 |              Route::get('/dashboard/users/edit/{user}', 'Chuckbe\Chuckcms\Controllers\UserController@edit')->name('dashboard.users.edit'); | 
| 216 | 216 | }); | 
| 217 | 217 | |
| 218 | -		Route::group(['middleware' => ['permission:delete users']], function () { | |
| 218 | +        Route::group(['middleware' => ['permission:delete users']], function () { | |
| 219 | 219 |              Route::post('/dashboard/user/delete', 'Chuckbe\Chuckcms\Controllers\UserController@delete')->name('dashboard.user.delete'); | 
| 220 | 220 | }); | 
| 221 | 221 | |