@@ -46,7 +46,7 @@ |
||
| 46 | 46 | private function download($value) |
| 47 | 47 | { |
| 48 | 48 | $url = (strpos($value, 'http://')) ? $value : asset($value).'?download=1'; |
| 49 | - if (! $value) { |
|
| 49 | + if (!$value) { |
|
| 50 | 50 | return " - "; |
| 51 | 51 | } |
| 52 | 52 | return "<a class='btn btn-xs btn-primary' href='$url' target='_blank' title='Download File'><i class='fa fa-download'>".cbTrans('button_download_file')."</i></a>"; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | function filterIndexRows($result, $filterColumn) |
| 13 | 13 | { |
| 14 | 14 | $filter_is_orderby = false; |
| 15 | - $result->where(function ($query) use ($filterColumn) { |
|
| 15 | + $result->where(function($query) use ($filterColumn) { |
|
| 16 | 16 | foreach ($filterColumn as $key => $fc) { |
| 17 | 17 | |
| 18 | 18 | $value = @$fc['value']; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | //Looping Data Input Again After Insert |
| 19 | 19 | foreach ($data as $row) { |
| 20 | 20 | $name = $row['name']; |
| 21 | - if (! $name) { |
|
| 21 | + if (!$name) { |
|
| 22 | 22 | continue; |
| 23 | 23 | } |
| 24 | 24 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | list($pivotTable, $foreignKey2, $foreignKey) = $this->deleteFromPivot($row, $id); |
| 56 | 56 | |
| 57 | - if (! $inputData) { |
|
| 57 | + if (!$inputData) { |
|
| 58 | 58 | return null; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | function uploadFile($name) |
| 11 | 11 | { |
| 12 | - if (! Request::hasFile($name)) { |
|
| 12 | + if (!Request::hasFile($name)) { |
|
| 13 | 13 | return null; |
| 14 | 14 | } |
| 15 | 15 | $file = Request::file($name); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | private function validateExtension($ext) |
| 34 | 34 | { |
| 35 | - if (! in_array($ext, explode(',', cbConfig('UPLOAD_TYPES')))) { |
|
| 35 | + if (!in_array($ext, explode(',', cbConfig('UPLOAD_TYPES')))) { |
|
| 36 | 36 | echo "The filetype is not allowed!"; |
| 37 | 37 | exit; |
| 38 | 38 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct($ctrl) |
| 17 | 17 | { |
| 18 | - $this->ctrl = $ctrl; |
|
| 18 | + $this->ctrl = $ctrl; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | |
| 166 | 166 | foreach ($data as $row) { |
| 167 | 167 | $count = DB::table('cms_settings')->where('name', $row['name'])->count(); |
| 168 | - if (! $count) { |
|
| 168 | + if (!$count) { |
|
| 169 | 169 | DB::table('cms_settings')->insert($row); |
| 170 | 170 | continue; |
| 171 | 171 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function boot() |
| 16 | 16 | { |
| 17 | 17 | $this->app['view']->addNamespace('CbSettings', __DIR__.'/views'); |
| 18 | - $this->loadRoutesFrom( __DIR__.'/settings_routes.php'); |
|
| 18 | + $this->loadRoutesFrom(__DIR__.'/settings_routes.php'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | if (strtolower($api->method_type) == 'get' && $httpbuilder) { |
| 77 | 77 | $httpbuilder = "?".http_build_query($httpbuilder); |
| 78 | - }else{ |
|
| 78 | + } else { |
|
| 79 | 79 | $httpbuilder = ''; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | { |
| 288 | 288 | $json = []; |
| 289 | 289 | for ($i = 0, $_count = count($params_name); $i <= $_count; $i++) { |
| 290 | - if (! $params_name[$i]) { |
|
| 290 | + if (!$params_name[$i]) { |
|
| 291 | 291 | continue; |
| 292 | 292 | } |
| 293 | 293 | $json[] = [ |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | { |
| 314 | 314 | $json = []; |
| 315 | 315 | for ($i = 0, $_count = count($responses_name); $i <= $_count; $i++) { |
| 316 | - if (! $responses_name[$i]) { |
|
| 316 | + if (!$responses_name[$i]) { |
|
| 317 | 317 | continue; |
| 318 | 318 | } |
| 319 | 319 | $json[] = [ |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | |
| 76 | 76 | if (strtolower($api->method_type) == 'get' && $httpbuilder) { |
| 77 | 77 | $httpbuilder = "?".http_build_query($httpbuilder); |
| 78 | - }else{ |
|
| 78 | + } else{ |
|
| 79 | 79 | $httpbuilder = ''; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | - $this->loadRoutesFrom( __DIR__.'/notifications_routes.php'); |
|
| 16 | + $this->loadRoutesFrom(__DIR__.'/notifications_routes.php'); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |