@@ -7,251 +7,251 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * @var string |
| 9 | 9 | */ |
| 10 | - public static $appDefine='src'; |
|
| 10 | + public static $appDefine = 'src'; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * @var string |
| 14 | 14 | */ |
| 15 | - public static $autoloadNamespace='App'; |
|
| 15 | + public static $autoloadNamespace = 'App'; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @var string |
| 19 | 19 | */ |
| 20 | - public static $projectPrefixGroup='Api'; |
|
| 20 | + public static $projectPrefixGroup = 'Api'; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @var string |
| 24 | 24 | */ |
| 25 | - public static $methodPrefix='Action'; |
|
| 25 | + public static $methodPrefix = 'Action'; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * @var string |
| 29 | 29 | */ |
| 30 | - public static $callClassPrefix='Controller'; |
|
| 30 | + public static $callClassPrefix = 'Controller'; |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @var string |
| 34 | 34 | */ |
| 35 | - public static $controllerBundleName=''; |
|
| 35 | + public static $controllerBundleName = ''; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @var string |
| 39 | 39 | */ |
| 40 | - public static $resourceInController='Resource'; |
|
| 40 | + public static $resourceInController = 'Resource'; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * @var string |
| 44 | 44 | */ |
| 45 | - public static $configurationInController='Config'; |
|
| 45 | + public static $configurationInController = 'Config'; |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @var null |
| 49 | 49 | */ |
| 50 | - public static $appPath=null; |
|
| 50 | + public static $appPath = null; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * @var string |
| 54 | 54 | */ |
| 55 | - public static $kernel='Kernel'; |
|
| 55 | + public static $kernel = 'Kernel'; |
|
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * @var string |
| 59 | 59 | */ |
| 60 | - public static $repository='Repository'; |
|
| 60 | + public static $repository = 'Repository'; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @var string |
| 64 | 64 | */ |
| 65 | - public static $listener='Listener'; |
|
| 65 | + public static $listener = 'Listener'; |
|
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * @var string |
| 69 | 69 | */ |
| 70 | - public static $serviceAnnotations='ServiceAnnotationsManager'; |
|
| 70 | + public static $serviceAnnotations = 'ServiceAnnotationsManager'; |
|
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * @var string |
| 74 | 74 | */ |
| 75 | - public static $serviceMiddleware='ServiceMiddlewareManager'; |
|
| 75 | + public static $serviceMiddleware = 'ServiceMiddlewareManager'; |
|
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * @var string |
| 79 | 79 | */ |
| 80 | - public static $storage='Storage'; |
|
| 80 | + public static $storage = 'Storage'; |
|
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * @var string |
| 84 | 84 | */ |
| 85 | - public static $controller='Controllers'; |
|
| 85 | + public static $controller = 'Controllers'; |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * @var string |
| 89 | 89 | */ |
| 90 | - public static $platform='__Platform'; |
|
| 90 | + public static $platform = '__Platform'; |
|
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * @var string |
| 94 | 94 | */ |
| 95 | - public static $sourcePath='Source'; |
|
| 95 | + public static $sourcePath = 'Source'; |
|
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | 98 | * @var string |
| 99 | 99 | */ |
| 100 | - public static $sourceRequest='Request'; |
|
| 100 | + public static $sourceRequest = 'Request'; |
|
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * @var string |
| 104 | 104 | */ |
| 105 | - public static $model='Model'; |
|
| 105 | + public static $model = 'Model'; |
|
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * @var string |
| 109 | 109 | */ |
| 110 | - public static $builder='Builder'; |
|
| 110 | + public static $builder = 'Builder'; |
|
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | 113 | * @var string |
| 114 | 114 | */ |
| 115 | - public static $migration='Migrations'; |
|
| 115 | + public static $migration = 'Migrations'; |
|
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * @var string |
| 119 | 119 | */ |
| 120 | - public static $config='Config'; |
|
| 120 | + public static $config = 'Config'; |
|
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | 123 | * @var string |
| 124 | 124 | */ |
| 125 | - public static $helpers='Helpers'; |
|
| 125 | + public static $helpers = 'Helpers'; |
|
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * @var string |
| 129 | 129 | */ |
| 130 | - public static $test='Tests'; |
|
| 130 | + public static $test = 'Tests'; |
|
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | 133 | * @var string |
| 134 | 134 | */ |
| 135 | - public static $workers='Workers'; |
|
| 135 | + public static $workers = 'Workers'; |
|
| 136 | 136 | |
| 137 | 137 | |
| 138 | 138 | /** |
| 139 | 139 | * @var string |
| 140 | 140 | */ |
| 141 | - public static $optional='Optional'; |
|
| 141 | + public static $optional = 'Optional'; |
|
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | 144 | * @var string |
| 145 | 145 | */ |
| 146 | - public static $events='Events'; |
|
| 146 | + public static $events = 'Events'; |
|
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | 149 | * @var string |
| 150 | 150 | */ |
| 151 | - public static $listeners='Listeners'; |
|
| 151 | + public static $listeners = 'Listeners'; |
|
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * @var string |
| 155 | 155 | */ |
| 156 | - public static $subscribers='Subscribers'; |
|
| 156 | + public static $subscribers = 'Subscribers'; |
|
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | 159 | * @var string |
| 160 | 160 | */ |
| 161 | - public static $exception='Exceptions'; |
|
| 161 | + public static $exception = 'Exceptions'; |
|
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | 164 | * @var string |
| 165 | 165 | */ |
| 166 | - public static $job='Job'; |
|
| 166 | + public static $job = 'Job'; |
|
| 167 | 167 | |
| 168 | 168 | |
| 169 | 169 | /** |
| 170 | 170 | * @var string |
| 171 | 171 | */ |
| 172 | - public static $webservice='Webservice'; |
|
| 172 | + public static $webservice = 'Webservice'; |
|
| 173 | 173 | |
| 174 | 174 | /** |
| 175 | 175 | * @var string |
| 176 | 176 | */ |
| 177 | - public static $log='Log'; |
|
| 177 | + public static $log = 'Log'; |
|
| 178 | 178 | |
| 179 | 179 | /** |
| 180 | 180 | * @var string |
| 181 | 181 | */ |
| 182 | - public static $resource='Resource'; |
|
| 182 | + public static $resource = 'Resource'; |
|
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | 185 | * @var string |
| 186 | 186 | */ |
| 187 | - public static $cache='Cache'; |
|
| 187 | + public static $cache = 'Cache'; |
|
| 188 | 188 | |
| 189 | 189 | /** |
| 190 | 190 | * @var string |
| 191 | 191 | */ |
| 192 | - public static $language='Language'; |
|
| 192 | + public static $language = 'Language'; |
|
| 193 | 193 | /** |
| 194 | 194 | * @var string |
| 195 | 195 | */ |
| 196 | - public static $session='Session'; |
|
| 196 | + public static $session = 'Session'; |
|
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | 199 | * @var string |
| 200 | 200 | */ |
| 201 | - public static $middleware='Middleware'; |
|
| 201 | + public static $middleware = 'Middleware'; |
|
| 202 | 202 | |
| 203 | 203 | /** |
| 204 | 204 | * @var string |
| 205 | 205 | */ |
| 206 | - public static $route='Routes'; |
|
| 206 | + public static $route = 'Routes'; |
|
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | 209 | * @var string |
| 210 | 210 | */ |
| 211 | - public static $request='Request'; |
|
| 211 | + public static $request = 'Request'; |
|
| 212 | 212 | |
| 213 | 213 | /** |
| 214 | 214 | * @var string |
| 215 | 215 | */ |
| 216 | - public static $factory='Factory'; |
|
| 216 | + public static $factory = 'Factory'; |
|
| 217 | 217 | |
| 218 | 218 | /** |
| 219 | 219 | * @var string |
| 220 | 220 | */ |
| 221 | - public static $node='Node'; |
|
| 221 | + public static $node = 'Node'; |
|
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | 224 | * @var string |
| 225 | 225 | */ |
| 226 | - public static $provider='Providers'; |
|
| 226 | + public static $provider = 'Providers'; |
|
| 227 | 227 | |
| 228 | 228 | /** |
| 229 | 229 | * @var string |
| 230 | 230 | */ |
| 231 | - public static $once='Once'; |
|
| 231 | + public static $once = 'Once'; |
|
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | 234 | * @var string |
| 235 | 235 | */ |
| 236 | - public static $command='Command'; |
|
| 236 | + public static $command = 'Command'; |
|
| 237 | 237 | |
| 238 | 238 | /** |
| 239 | 239 | * @var string |
| 240 | 240 | */ |
| 241 | - public static $stub='Stub'; |
|
| 241 | + public static $stub = 'Stub'; |
|
| 242 | 242 | |
| 243 | 243 | /** |
| 244 | 244 | * @var string |
| 245 | 245 | */ |
| 246 | - public static $store='Store'; |
|
| 246 | + public static $store = 'Store'; |
|
| 247 | 247 | |
| 248 | 248 | /** |
| 249 | 249 | * @var string |
| 250 | 250 | */ |
| 251 | - public static $boot='Boot'; |
|
| 251 | + public static $boot = 'Boot'; |
|
| 252 | 252 | |
| 253 | 253 | /** |
| 254 | 254 | * @var string |
| 255 | 255 | */ |
| 256 | - public static $autoService='Autoservice'; |
|
| 256 | + public static $autoService = 'Autoservice'; |
|
| 257 | 257 | } |
| 258 | 258 | \ No newline at end of file |
@@ -12,9 +12,9 @@ discard block |
||
| 12 | 12 | * @param null $app |
| 13 | 13 | * @return string |
| 14 | 14 | */ |
| 15 | - public function app($app=null) |
|
| 15 | + public function app($app = null) |
|
| 16 | 16 | {
|
| 17 | - $app=($app===null) ? $this->appDetector() : $app; |
|
| 17 | + $app = ($app===null) ? $this->appDetector() : $app; |
|
| 18 | 18 | return StaticPathModel::appPath().''.DIRECTORY_SEPARATOR.''.Str::slashToBackSlash($app); |
| 19 | 19 | } |
| 20 | 20 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param null $app |
| 39 | 39 | * @return string |
| 40 | 40 | */ |
| 41 | - public function appCall($app=null) |
|
| 41 | + public function appCall($app = null) |
|
| 42 | 42 | {
|
| 43 | 43 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$controller; |
| 44 | 44 | } |
@@ -56,9 +56,9 @@ discard block |
||
| 56 | 56 | * @param null $app |
| 57 | 57 | * @return string |
| 58 | 58 | */ |
| 59 | - public function appConfig($app=null) |
|
| 59 | + public function appConfig($app = null) |
|
| 60 | 60 | {
|
| 61 | - if(isset(core()->paths['config'])){
|
|
| 61 | + if (isset(core()->paths['config'])) {
|
|
| 62 | 62 | return core()->paths['config']; |
| 63 | 63 | } |
| 64 | 64 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$config; |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @param null $app |
| 69 | 69 | * @return string |
| 70 | 70 | */ |
| 71 | - public function appHelpers($app=null) |
|
| 71 | + public function appHelpers($app = null) |
|
| 72 | 72 | {
|
| 73 | 73 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$helpers; |
| 74 | 74 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * @param null $app |
| 102 | 102 | * @return mixed |
| 103 | 103 | */ |
| 104 | - public function appFactory($app=null) |
|
| 104 | + public function appFactory($app = null) |
|
| 105 | 105 | {
|
| 106 | 106 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$factory; |
| 107 | 107 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | public function appKernel() |
| 113 | 113 | {
|
| 114 | - $kernel = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$kernel; |
|
| 114 | + $kernel = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$kernel; |
|
| 115 | 115 | |
| 116 | 116 | return $kernel; |
| 117 | 117 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public function appProvider() |
| 123 | 123 | {
|
| 124 | - $kernel = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$kernel.''.DIRECTORY_SEPARATOR.''.StaticPathList::$provider; |
|
| 124 | + $kernel = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$kernel.''.DIRECTORY_SEPARATOR.''.StaticPathList::$provider; |
|
| 125 | 125 | |
| 126 | 126 | return $kernel; |
| 127 | 127 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * @param null $app |
| 147 | 147 | * @return mixed |
| 148 | 148 | */ |
| 149 | - public function appLogger($app=null) |
|
| 149 | + public function appLogger($app = null) |
|
| 150 | 150 | {
|
| 151 | 151 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.'ServiceLogManager'; |
| 152 | 152 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * @param null $app |
| 156 | 156 | * @return mixed |
| 157 | 157 | */ |
| 158 | - public function appMiddleware($app=null) |
|
| 158 | + public function appMiddleware($app = null) |
|
| 159 | 159 | {
|
| 160 | 160 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$middleware; |
| 161 | 161 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * @param null $app |
| 165 | 165 | * @return mixed |
| 166 | 166 | */ |
| 167 | - public function appMigration($app=null) |
|
| 167 | + public function appMigration($app = null) |
|
| 168 | 168 | {
|
| 169 | 169 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$migration; |
| 170 | 170 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * @param null $app |
| 174 | 174 | * @return mixed |
| 175 | 175 | */ |
| 176 | - public function appModel($app=null) |
|
| 176 | + public function appModel($app = null) |
|
| 177 | 177 | {
|
| 178 | 178 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$model; |
| 179 | 179 | } |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | * @param null $app |
| 183 | 183 | * @return mixed |
| 184 | 184 | */ |
| 185 | - public function appException($app=null) |
|
| 185 | + public function appException($app = null) |
|
| 186 | 186 | {
|
| 187 | 187 | return $this->appVersion().''.DIRECTORY_SEPARATOR.''.StaticPathList::$exception; |
| 188 | 188 | } |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * @param null $app |
| 192 | 192 | * @return mixed |
| 193 | 193 | */ |
| 194 | - public function appOptionalEvents($app=null) |
|
| 194 | + public function appOptionalEvents($app = null) |
|
| 195 | 195 | {
|
| 196 | 196 | return $this->appVersion().''.DIRECTORY_SEPARATOR.''.StaticPathList::$events; |
| 197 | 197 | } |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * @param null $app |
| 201 | 201 | * @return mixed |
| 202 | 202 | */ |
| 203 | - public function appOptionalJob($app=null) |
|
| 203 | + public function appOptionalJob($app = null) |
|
| 204 | 204 | {
|
| 205 | 205 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$optional.''.DIRECTORY_SEPARATOR.''.StaticPathList::$job; |
| 206 | 206 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * @param null $app |
| 210 | 210 | * @return mixed |
| 211 | 211 | */ |
| 212 | - public function appOptionalListeners($app=null) |
|
| 212 | + public function appOptionalListeners($app = null) |
|
| 213 | 213 | {
|
| 214 | 214 | return $this->appVersion().''.DIRECTORY_SEPARATOR.''.StaticPathList::$listeners; |
| 215 | 215 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * @param null $app |
| 219 | 219 | * @return mixed |
| 220 | 220 | */ |
| 221 | - public function appOptionalSubscribers($app=null) |
|
| 221 | + public function appOptionalSubscribers($app = null) |
|
| 222 | 222 | {
|
| 223 | 223 | return $this->appVersion().''.DIRECTORY_SEPARATOR.''.StaticPathList::$listeners.''.DIRECTORY_SEPARATOR.''.StaticPathList::$subscribers; |
| 224 | 224 | } |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | public function appRepository() |
| 238 | 238 | {
|
| 239 | - $repository = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$repository; |
|
| 239 | + $repository = $this->app().''.DIRECTORY_SEPARATOR.''.StaticPathList::$repository; |
|
| 240 | 240 | |
| 241 | 241 | return $repository; |
| 242 | 242 | } |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | * @param null $app |
| 254 | 254 | * @return mixed |
| 255 | 255 | */ |
| 256 | - public function appOptionalSource($app=null) |
|
| 256 | + public function appOptionalSource($app = null) |
|
| 257 | 257 | {
|
| 258 | 258 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$optional.''.DIRECTORY_SEPARATOR.''.StaticPathList::$sourcePath; |
| 259 | 259 | } |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | * @param null $app |
| 263 | 263 | * @return mixed |
| 264 | 264 | */ |
| 265 | - public function appOptionalWebservice($app=null) |
|
| 265 | + public function appOptionalWebservice($app = null) |
|
| 266 | 266 | {
|
| 267 | 267 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$optional.''.DIRECTORY_SEPARATOR.''.StaticPathList::$webservice; |
| 268 | 268 | } |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * @param null $app |
| 280 | 280 | * @return mixed |
| 281 | 281 | */ |
| 282 | - public function appServiceAnnotations($app=null) |
|
| 282 | + public function appServiceAnnotations($app = null) |
|
| 283 | 283 | {
|
| 284 | 284 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$serviceAnnotations; |
| 285 | 285 | } |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | * @param null $app |
| 289 | 289 | * @return mixed |
| 290 | 290 | */ |
| 291 | - public function appServiceContainer($app=null) |
|
| 291 | + public function appServiceContainer($app = null) |
|
| 292 | 292 | {
|
| 293 | 293 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.'ServiceContainerController'; |
| 294 | 294 | } |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | * @param null $app |
| 298 | 298 | * @return mixed |
| 299 | 299 | */ |
| 300 | - public function appServiceEventDispatcher($app=null) |
|
| 300 | + public function appServiceEventDispatcher($app = null) |
|
| 301 | 301 | {
|
| 302 | 302 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.'ServiceEventDispatcherManager'; |
| 303 | 303 | } |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | * @param null $app |
| 307 | 307 | * @return mixed |
| 308 | 308 | */ |
| 309 | - public function appServiceMiddleware($app=null) |
|
| 309 | + public function appServiceMiddleware($app = null) |
|
| 310 | 310 | {
|
| 311 | 311 | return $this->appVersion($app).''.DIRECTORY_SEPARATOR.''.StaticPathList::$serviceMiddleware; |
| 312 | 312 | } |
@@ -333,9 +333,9 @@ discard block |
||
| 333 | 333 | * @param null $app |
| 334 | 334 | * @return mixed |
| 335 | 335 | */ |
| 336 | - public function appVersion($app=null) |
|
| 336 | + public function appVersion($app = null) |
|
| 337 | 337 | {
|
| 338 | - if(defined('app')){
|
|
| 338 | + if (defined('app')) {
|
|
| 339 | 339 | |
| 340 | 340 | $prefixGroup = Str::slashToBackSlash(StaticPathList::$projectPrefixGroup); |
| 341 | 341 | |
@@ -379,19 +379,19 @@ discard block |
||
| 379 | 379 | * @param bool $bool |
| 380 | 380 | * @return mixed |
| 381 | 381 | */ |
| 382 | - public function controller($controller=null,$bool=false) |
|
| 382 | + public function controller($controller = null, $bool = false) |
|
| 383 | 383 | {
|
| 384 | 384 | $namespaceController = ($controller===null) ? app()->namespace()->controller() |
| 385 | - : app()->namespace()->controller($controller,true); |
|
| 385 | + : app()->namespace()->controller($controller, true); |
|
| 386 | 386 | |
| 387 | - if($bool){
|
|
| 388 | - $namespaceControllerExplode = explode("\\",$namespaceController);
|
|
| 387 | + if ($bool) {
|
|
| 388 | + $namespaceControllerExplode = explode("\\", $namespaceController);
|
|
| 389 | 389 | array_pop($namespaceControllerExplode); |
| 390 | 390 | |
| 391 | - $namespaceController = implode("\\",$namespaceControllerExplode);
|
|
| 391 | + $namespaceController = implode("\\", $namespaceControllerExplode);
|
|
| 392 | 392 | } |
| 393 | 393 | |
| 394 | - return Utils::getPathFromNamespace($namespaceController,false); |
|
| 394 | + return Utils::getPathFromNamespace($namespaceController, false); |
|
| 395 | 395 | } |
| 396 | 396 | |
| 397 | 397 | /** |
@@ -415,9 +415,9 @@ discard block |
||
| 415 | 415 | * @param $arg |
| 416 | 416 | * @return mixed |
| 417 | 417 | */ |
| 418 | - public function __call($name,$arg) |
|
| 418 | + public function __call($name, $arg) |
|
| 419 | 419 | {
|
| 420 | - $appCall='app'.ucfirst($name); |
|
| 420 | + $appCall = 'app'.ucfirst($name); |
|
| 421 | 421 | return $this->{$appCall}();
|
| 422 | 422 | } |
| 423 | 423 | |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $registeredWorkers = app()->get('worker');
|
| 35 | 35 | |
| 36 | - if(isset($registeredWorkers[$worker])){
|
|
| 37 | - while(true){
|
|
| 36 | + if (isset($registeredWorkers[$worker])) {
|
|
| 37 | + while (true) {
|
|
| 38 | 38 | echo $this->classical($registeredWorkers[$worker](1)); |
| 39 | 39 | sleep(10); |
| 40 | 40 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function create() |
| 51 | 51 | {
|
| 52 | - if(!file_exists(app()->path()->workers())){
|
|
| 52 | + if (!file_exists(app()->path()->workers())) {
|
|
| 53 | 53 | $this->directory['worker'] = app()->path()->workers(); |
| 54 | 54 | $this->file->makeDirectory($this); |
| 55 | 55 | } |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $this->argument['workerClass'] = ucfirst($this->argument['worker']).''; |
| 59 | 59 | $this->argument['projectName'] = strtolower($this->projectName()); |
| 60 | 60 | |
| 61 | - $this->touch['worker/worker']= app()->path()->workers().'/'.$this->argument['worker'].'.php'; |
|
| 61 | + $this->touch['worker/worker'] = app()->path()->workers().'/'.$this->argument['worker'].'.php'; |
|
| 62 | 62 | |
| 63 | 63 | |
| 64 | 64 | $this->file->touch($this); |