@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
21 | 21 | $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
22 | 22 | |
23 | - if (! class_exists('CreateCardsTable')) { |
|
23 | + if (!class_exists('CreateCardsTable')) { |
|
24 | 24 | $this->publishes([ |
25 | 25 | __DIR__.'/../database/migrations/create_cards_table.php.stub' => database_path('migrations/'.Carbon::now()->format('Y_m_d_Hmsu').'_create_cards_table.php'), |
26 | 26 | ], 'migrations'); |
27 | 27 | } |
28 | - if (! class_exists('CreateCardTranslationsTable')) { |
|
28 | + if (!class_exists('CreateCardTranslationsTable')) { |
|
29 | 29 | $this->publishes([ |
30 | 30 | __DIR__.'/../database/migrations/create_card_translations_table.php.stub' => database_path('migrations/'.Carbon::now()->format('Y_m_d_Hmsu').'_create_card_translations_table.php'), |
31 | 31 | ], 'migrations'); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-cards'); |
70 | 70 | |
71 | 71 | // Register the main class to use with the facade |
72 | - $this->app->singleton('laravel-cards', function () { |
|
72 | + $this->app->singleton('laravel-cards', function() { |
|
73 | 73 | return new LaravelCards; |
74 | 74 | }); |
75 | 75 | } |
@@ -127,23 +127,23 @@ |
||
127 | 127 | public static function getParametersArray($card) |
128 | 128 | { |
129 | 129 | $ret = [ |
130 | - 'img_col_size_class' => 'col-md-'.$card->img_col_size, |
|
131 | - 'text_col_size_class' => 'col-md-'.(12 - $card->img_col_size), |
|
132 | - 'bkg_color' => 'background-color: '.$card->bkg_color.';', |
|
133 | - 'text_color' => 'color: '.$card->text_color.';', |
|
134 | - 'container_wrap' => ($card->container_wrap == 'true') ? 1 : 0, |
|
135 | - ]; |
|
130 | + 'img_col_size_class' => 'col-md-'.$card->img_col_size, |
|
131 | + 'text_col_size_class' => 'col-md-'.(12 - $card->img_col_size), |
|
132 | + 'bkg_color' => 'background-color: '.$card->bkg_color.';', |
|
133 | + 'text_color' => 'color: '.$card->text_color.';', |
|
134 | + 'container_wrap' => ($card->container_wrap == 'true') ? 1 : 0, |
|
135 | + ]; |
|
136 | 136 | |
137 | 137 | switch ($card->img_alignment) { |
138 | - case 'left': |
|
138 | + case 'left': |
|
139 | 139 | $ret['img_col_order_class'] = 'order-md-1'; |
140 | - $ret['text_col_order_class'] = 'order-md-2'; |
|
141 | - break; |
|
142 | - case 'right': |
|
140 | + $ret['text_col_order_class'] = 'order-md-2'; |
|
141 | + break; |
|
142 | + case 'right': |
|
143 | 143 | $ret['img_col_order_class'] = 'order-md-2'; |
144 | - $ret['text_col_order_class'] = 'order-md-1'; |
|
145 | - break; |
|
146 | - } |
|
144 | + $ret['text_col_order_class'] = 'order-md-1'; |
|
145 | + break; |
|
146 | + } |
|
147 | 147 | |
148 | 148 | return $ret; |
149 | 149 | } |