@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function addViewVariables($views, $variableName, $columns, $tableName, $modelName = null) |
54 | 54 | { |
55 | - if (! empty($modelName)) { |
|
55 | + if (!empty($modelName)) { |
|
56 | 56 | $model = $modelName; |
57 | 57 | } else { |
58 | 58 | $model = model_name_from_table_name($tableName); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $customProviders = strpos($file, $searchFor); |
103 | 103 | |
104 | 104 | $isExist = strpos($file, "App\Providers\ViewServiceProvider::class"); |
105 | - if ($customProviders && ! $isExist) { |
|
105 | + if ($customProviders && !$isExist) { |
|
106 | 106 | $newChanges = substr_replace( |
107 | 107 | $file, |
108 | 108 | infy_nl().infy_tab(8).'\App\Providers\ViewServiceProvider::class,', |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $newModelStatement = 'use '.$this->commandData->config->nsInterface.'\\'.$model.'RepositoryInterface as '.$model.';'; |
119 | 119 | $isNameSpaceExist = strpos($mainViewContent, $newModelStatement); |
120 | 120 | $newModelStatement = infy_nl().$newModelStatement; |
121 | - if (! $isNameSpaceExist) { |
|
121 | + if (!$isNameSpaceExist) { |
|
122 | 122 | preg_match_all('/namespace(.*)/', $mainViewContent, $matches); |
123 | 123 | $totalMatches = count($matches[0]); |
124 | 124 | $nameSpaceStatement = $matches[0][$totalMatches - 1]; |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | $length = strlen($newModelStatement); |
222 | 222 | $isNameSpaceExist = strpos($mainViewContent, $newModelStatement); |
223 | 223 | $newModelStatement = infy_nl().$newModelStatement.infy_nl_tab().'\''.$view.'\','.infy_nl(); |
224 | - if (! $isNameSpaceExist) { |
|
224 | + if (!$isNameSpaceExist) { |
|
225 | 225 | preg_match_all('/selects = \[/', $mainViewContent, $matches); |
226 | 226 | $totalMatches = count($matches[0]); |
227 | 227 | $nameSpaceStatement = $matches[0][$totalMatches - 1]; |