@@ -56,12 +56,12 @@ discard block |
||
| 56 | 56 | if ($input->hasFile($fieldKey)) {
|
| 57 | 57 | $avatar = $input->file($fieldKey); |
| 58 | 58 | $random = str_random(8); |
| 59 | - $filename = time().'_'.$random.'.'.$avatar->getClientOriginalExtension(); |
|
| 59 | + $filename = time() . '_' . $random . '.' . $avatar->getClientOriginalExtension(); |
|
| 60 | 60 | if (!file_exists(public_path('/files/uploads/'))) {
|
| 61 | 61 | mkdir(public_path('/files/uploads/'), 0777, true);
|
| 62 | 62 | } |
| 63 | 63 | $avatar->move(public_path('/files/uploads/'), $filename);
|
| 64 | - $filepath = '/files/uploads/'.$filename; |
|
| 64 | + $filepath = '/files/uploads/' . $filename; |
|
| 65 | 65 | } else {
|
| 66 | 66 | $filepath = null; |
| 67 | 67 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | if (count($findThis) > 0) {
|
| 119 | 119 | foreach ($findThis as $founded) {
|
| 120 | 120 | if (strpos($founded, $input->get('_form_slug')) !== false) {
|
| 121 | - $sendValue = str_replace('['.$founded.']', $input->get($founded), $sendValue);
|
|
| 121 | + $sendValue = str_replace('[' . $founded . ']', $input->get($founded), $sendValue);
|
|
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | $inputData = $sendValue; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | public function __construct(array $attributes = []) |
| 31 | 31 | {
|
| 32 | 32 | //parent::construct( $attributes ); |
| 33 | - $this->table = config('menu.table_prefix').config('menu.table_name_items');
|
|
| 33 | + $this->table = config('menu.table_prefix') . config('menu.table_name_items');
|
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | public function getsons($id) |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | public static function getUrl($id) |
| 42 | 42 | {
|
| 43 | - return ChuckSite::getSetting('domain').'/'.self::where('id', $id)->first()->slug;
|
|
| 43 | + return ChuckSite::getSetting('domain') . '/' . self::where('id', $id)->first()->slug;
|
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function create($values) |
@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | $follow = 'nofollow'; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - $meta[$langKey]['robots'] = $index.$follow; |
|
| 76 | - $meta[$langKey]['googlebots'] = $index.$follow; |
|
| 75 | + $meta[$langKey]['robots'] = $index . $follow; |
|
| 76 | + $meta[$langKey]['googlebots'] = $index . $follow; |
|
| 77 | 77 | $count = count($values->get('meta_key')[$langKey]);
|
| 78 | 78 | for ($i = 0; $i < $count; $i++) {
|
| 79 | 79 | $meta[$langKey][$values->get('meta_key')[$langKey][$i]] = $values->get('meta_value')[$langKey][$i];
|
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | $json = []; |
| 64 | 64 | foreach ($this->content['fields'] as $fieldKey => $fieldValue) {
|
| 65 | - $cleanKey = str_replace($slug.'_', '', $fieldKey); |
|
| 65 | + $cleanKey = str_replace($slug . '_', '', $fieldKey); |
|
| 66 | 66 | $json[$cleanKey] = $input->get($fieldKey); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $fields = $this->getContents($url, '[', ']'); |
| 95 | 95 | $finalUrl = $url; |
| 96 | 96 | foreach ($fields as $field) {
|
| 97 | - $finalUrl = str_replace('['.$field.']', $input->get($field), $finalUrl);
|
|
| 97 | + $finalUrl = str_replace('[' . $field . ']', $input->get($field), $finalUrl);
|
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | return $finalUrl; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function __construct(array $attributes = []) |
| 25 | 25 | {
|
| 26 | 26 | //parent::construct( $attributes ); |
| 27 | - $this->table = config('menu.table_prefix').config('menu.table_name_menus');
|
|
| 27 | + $this->table = config('menu.table_prefix') . config('menu.table_name_menus');
|
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public static function byName($name) |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function register() |
| 25 | 25 | {
|
| 26 | - $this->app->bind('ChuckMenu', function () {
|
|
| 26 | + $this->app->bind('ChuckMenu', function() {
|
|
| 27 | 27 | return new \Chuckbe\Chuckcms\Chuck\Accessors\Menu(); |
| 28 | 28 | }); |
| 29 | 29 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function register() |
| 27 | 27 | {
|
| 28 | - $this->app->bind('ChuckRepeater', function () {
|
|
| 28 | + $this->app->bind('ChuckRepeater', function() {
|
|
| 29 | 29 | return new \Chuckbe\Chuckcms\Chuck\Accessors\Repeater(\App::make(Repeater::class), \App::make(RepeaterRepository::class)); |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function register() |
| 29 | 29 | {
|
| 30 | - $this->app->singleton('ChuckSite', function () {
|
|
| 30 | + $this->app->singleton('ChuckSite', function() {
|
|
| 31 | 31 | $site = Site::first(); |
| 32 | 32 | if ($site == null) {
|
| 33 | 33 | throw new Exception('Whoops! No Site Defined...');
|
@@ -23,7 +23,7 @@ |
||
| 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 | } |