@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @param null|string $alias |
12 | 12 | * @return mixed |
13 | 13 | */ |
14 | - public function bind($object=null,$callback=null,$alias=null); |
|
14 | + public function bind($object = null, $callback = null, $alias = null); |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * @param $abstract |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param $container false |
39 | 39 | * @return mixed |
40 | 40 | */ |
41 | - public function make($object=null,$callback=null,$container=false); |
|
41 | + public function make($object = null, $callback = null, $container = false); |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @param $key |
@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | * @param null $concrete |
47 | 47 | * @return mixed |
48 | 48 | */ |
49 | - public function register($key,$object,$concrete=null); |
|
49 | + public function register($key, $object, $concrete = null); |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * @param null $object |
53 | 53 | * @param null $callback |
54 | 54 | * @return mixed |
55 | 55 | */ |
56 | - public function share($object=null,$callback=null); |
|
56 | + public function share($object = null, $callback = null); |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @method singleton |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @param array $bind |
67 | 67 | * @return mixed |
68 | 68 | */ |
69 | - public function resolve($class,$bind=array()); |
|
69 | + public function resolve($class, $bind = array()); |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @param $class |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * @var $type |
17 | 17 | */ |
18 | - public $type='model'; |
|
18 | + public $type = 'model'; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var array |
@@ -32,17 +32,17 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * @var $commandRule |
34 | 34 | */ |
35 | - public $commandRule=['model','?table']; |
|
35 | + public $commandRule = ['model', '?table']; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @method create |
39 | 39 | * @return mixed |
40 | 40 | */ |
41 | - public function create(){ |
|
41 | + public function create() { |
|
42 | 42 | |
43 | 43 | $this->argument['file'] = $this->argument['model']; |
44 | 44 | |
45 | - if(!isset($this->argument['table'])){ |
|
45 | + if (!isset($this->argument['table'])) { |
|
46 | 46 | $this->argument['table'] = $this->argument['file'].'s'; |
47 | 47 | } |
48 | 48 | |
@@ -66,11 +66,11 @@ discard block |
||
66 | 66 | $this->touch['model/builder'] = $this->directory['builderDir'].''.DIRECTORY_SEPARATOR.''.$this->argument['file'].'Builder.php'; |
67 | 67 | $this->touch['model/contract'] = $this->directory['contract'].''.DIRECTORY_SEPARATOR.''.$this->argument['file'].'Contract.php'; |
68 | 68 | |
69 | - if(!file_exists($this->directory['helper'].''.DIRECTORY_SEPARATOR.'Scope.php')){ |
|
69 | + if (!file_exists($this->directory['helper'].''.DIRECTORY_SEPARATOR.'Scope.php')) { |
|
70 | 70 | $this->touch['model/scope'] = $this->directory['helper'].''.DIRECTORY_SEPARATOR.'Scope.php'; |
71 | 71 | } |
72 | 72 | |
73 | - if(!file_exists($this->directory['helper'].''.DIRECTORY_SEPARATOR.'Event.php')){ |
|
73 | + if (!file_exists($this->directory['helper'].''.DIRECTORY_SEPARATOR.'Event.php')) { |
|
74 | 74 | $this->touch['model/event'] = $this->directory['helper'].''.DIRECTORY_SEPARATOR.'Event.php'; |
75 | 75 | } |
76 | 76 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $entityDir = $this->directory['modelDir'].''.DIRECTORY_SEPARATOR.'Entity'; |
80 | 80 | |
81 | - if(!file_exists($entityDir)){ |
|
81 | + if (!file_exists($entityDir)) { |
|
82 | 82 | files()->makeDirectory($entityDir); |
83 | 83 | } |
84 | 84 | |
@@ -87,9 +87,9 @@ discard block |
||
87 | 87 | $entityClass = $entityDir.''.DIRECTORY_SEPARATOR.''.$entityTableName.''.DIRECTORY_SEPARATOR.''.$entityTableName; |
88 | 88 | |
89 | 89 | |
90 | - $generator = new Generator($entityDir,'EntityMap'); |
|
90 | + $generator = new Generator($entityDir, 'EntityMap'); |
|
91 | 91 | |
92 | - if(!file_exists($entityDir.''.DIRECTORY_SEPARATOR.'EntityMap.php')){ |
|
92 | + if (!file_exists($entityDir.''.DIRECTORY_SEPARATOR.'EntityMap.php')) { |
|
93 | 93 | |
94 | 94 | //$this->setAnnotations(); |
95 | 95 | $generator->createClass(); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $entityMapNamespaceResolve = new $entityMapNamespace; |
101 | 101 | |
102 | - if(!method_exists($entityMapNamespaceResolve,strtolower($this->argument['table']))){ |
|
102 | + if (!method_exists($entityMapNamespaceResolve, strtolower($this->argument['table']))) { |
|
103 | 103 | |
104 | 104 | $generator->createClassUse([ |
105 | 105 | Utils::getNamespace($entityClass) |
@@ -129,15 +129,15 @@ discard block |
||
129 | 129 | |
130 | 130 | |
131 | 131 | //set builder map |
132 | - $generator = new Generator($this->directory['builderDir'],'BuilderMap'); |
|
132 | + $generator = new Generator($this->directory['builderDir'], 'BuilderMap'); |
|
133 | 133 | |
134 | - if(!file_exists($this->directory['builderDir'].''.DIRECTORY_SEPARATOR.'BuilderMap.php')){ |
|
134 | + if (!file_exists($this->directory['builderDir'].''.DIRECTORY_SEPARATOR.'BuilderMap.php')) { |
|
135 | 135 | |
136 | 136 | $this->setAnnotations(); |
137 | 137 | $generator->createClass(); |
138 | 138 | } |
139 | 139 | |
140 | - if(!file_exists($this->touch['model/model'])){ |
|
140 | + if (!file_exists($this->touch['model/model'])) { |
|
141 | 141 | |
142 | 142 | $generator->createMethod([ |
143 | 143 | strtolower($this->argument['file']) |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | } |
159 | 159 | |
160 | 160 | //set project touch |
161 | - $this->file->touch($this,[ |
|
161 | + $this->file->touch($this, [ |
|
162 | 162 | 'stub'=>'Model_Create' |
163 | 163 | ]); |
164 | 164 | |
@@ -169,11 +169,11 @@ discard block |
||
169 | 169 | /** |
170 | 170 | * @return bool |
171 | 171 | */ |
172 | - private function setAnnotations(){ |
|
172 | + private function setAnnotations() { |
|
173 | 173 | |
174 | 174 | $entityMap = app()->path()->model().''.DIRECTORY_SEPARATOR.'Entity'.DIRECTORY_SEPARATOR.'EntityMap.php'; |
175 | 175 | |
176 | - if(file_exists($entityMap)){ |
|
176 | + if (file_exists($entityMap)) { |
|
177 | 177 | |
178 | 178 | Utils::changeClass(path()->serviceAnnotations().'.php', |
179 | 179 | [ |
@@ -219,7 +219,9 @@ discard block |
||
219 | 219 | $repositoryAdapterName = $repositoryName.'Adapter'; |
220 | 220 | $repositoryNamespace = app()->namespace()->repository().'\\'.$repositoryName.'\\'.$repositoryAdapterName; |
221 | 221 | |
222 | - if($namespace) return $repositoryNamespace; |
|
222 | + if($namespace) { |
|
223 | + return $repositoryNamespace; |
|
224 | + } |
|
223 | 225 | |
224 | 226 | //and eventually we conclude the adapter class of the repository package as an instance. |
225 | 227 | return app()->resolve($repositoryNamespace)->adapter(); |
@@ -290,8 +292,7 @@ discard block |
||
290 | 292 | |
291 | 293 | if(self::app()->has('locale')){ |
292 | 294 | $defaultLocale = self::app()->get('locale'); |
293 | - } |
|
294 | - else{ |
|
295 | + } else{ |
|
295 | 296 | $defaultLocale = config('app.locale'); |
296 | 297 | } |
297 | 298 |
@@ -30,31 +30,31 @@ discard block |
||
30 | 30 | * @param bool $reports |
31 | 31 | * @return mixed|string |
32 | 32 | */ |
33 | - public static function annotationsLoaders($service,$arg,$reports=false) |
|
33 | + public static function annotationsLoaders($service, $arg, $reports = false) |
|
34 | 34 | { |
35 | 35 | static::$reports = $reports; |
36 | 36 | |
37 | 37 | //factory runner |
38 | - if($service=="factory"){ |
|
38 | + if ($service=="factory") { |
|
39 | 39 | return self::factory(); |
40 | 40 | } |
41 | 41 | //if $name starts with $needles for repository |
42 | - if(Str::endsWith($service,'Repository')){ |
|
42 | + if (Str::endsWith($service, 'Repository')) { |
|
43 | 43 | return self::repository($service); |
44 | 44 | } |
45 | 45 | |
46 | 46 | //if $name starts with $needles for source |
47 | - if(Str::endsWith($service,'Source')){ |
|
48 | - return self::source($service,$arg); |
|
47 | + if (Str::endsWith($service, 'Source')) { |
|
48 | + return self::source($service, $arg); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | //if $name starts with $needles for model |
52 | - if(Str::endsWith($service,'Builder')){ |
|
52 | + if (Str::endsWith($service, 'Builder')) { |
|
53 | 53 | return self::Builder(ucfirst($service)); |
54 | 54 | } |
55 | 55 | |
56 | 56 | |
57 | - if(method_exists(new self,$service)){ |
|
57 | + if (method_exists(new self, $service)) { |
|
58 | 58 | return self::$service($arg); |
59 | 59 | } |
60 | 60 | |
@@ -106,12 +106,12 @@ discard block |
||
106 | 106 | */ |
107 | 107 | private static function builder($service) |
108 | 108 | { |
109 | - if(static::$reports){ |
|
110 | - self::writeTrace(debug_backtrace(),'builders',$service); |
|
109 | + if (static::$reports) { |
|
110 | + self::writeTrace(debug_backtrace(), 'builders', $service); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | //we are making a namespace assignment for the builder. |
114 | - $builder=app()->namespace()->builder().'\BuilderMap'; |
|
114 | + $builder = app()->namespace()->builder().'\BuilderMap'; |
|
115 | 115 | |
116 | 116 | //we are getting builder instance. |
117 | 117 | return app()->resolve($builder); |
@@ -139,16 +139,16 @@ discard block |
||
139 | 139 | * @param array $bind |
140 | 140 | * @return mixed |
141 | 141 | */ |
142 | - public function container($instance,$class,$bind=array()) |
|
142 | + public function container($instance, $class, $bind = array()) |
|
143 | 143 | { |
144 | - if(!property_exists($instance->container(),$class)){ |
|
144 | + if (!property_exists($instance->container(), $class)) { |
|
145 | 145 | throw new \InvalidArgumentException('container object false for ('.$class.') object'); |
146 | 146 | } |
147 | 147 | |
148 | - $container=$instance->container()->{$class}; |
|
148 | + $container = $instance->container()->{$class}; |
|
149 | 149 | |
150 | - if(!is_array($instance->container()->{$class}) AND Utils::isNamespaceExists($container)){ |
|
151 | - return $instance->resolve($container,$bind); |
|
150 | + if (!is_array($instance->container()->{$class}) AND Utils::isNamespaceExists($container)) { |
|
151 | + return $instance->resolve($container, $bind); |
|
152 | 152 | } |
153 | 153 | return $instance->container()->{$class}; |
154 | 154 | } |
@@ -158,8 +158,8 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function createAppInstance($object) |
160 | 160 | { |
161 | - if(!defined('appInstance')){ |
|
162 | - define('appInstance',(base64_encode(serialize($object)))); |
|
161 | + if (!defined('appInstance')) { |
|
162 | + define('appInstance', (base64_encode(serialize($object)))); |
|
163 | 163 | } |
164 | 164 | } |
165 | 165 | |
@@ -167,9 +167,9 @@ discard block |
||
167 | 167 | * @param array $arg |
168 | 168 | * @return mixed |
169 | 169 | */ |
170 | - private static function date($arg=array()) |
|
170 | + private static function date($arg = array()) |
|
171 | 171 | { |
172 | - $locale = (count($arg)=="0") ? config('app.locale','en') : current($arg); |
|
172 | + $locale = (count($arg)=="0") ? config('app.locale', 'en') : current($arg); |
|
173 | 173 | |
174 | 174 | return app()->resolve(Date::class)->setLocale($locale); |
175 | 175 | } |
@@ -189,8 +189,8 @@ discard block |
||
189 | 189 | { |
190 | 190 | //we save an instance for the entire application |
191 | 191 | //and add it to the helper file to be accessed from anywhere in the application. |
192 | - if(!isset(self::$instance['appInstance'])){ |
|
193 | - self::$instance['appInstance']=unserialize(base64_decode(appInstance)); |
|
192 | + if (!isset(self::$instance['appInstance'])) { |
|
193 | + self::$instance['appInstance'] = unserialize(base64_decode(appInstance)); |
|
194 | 194 | return self::$instance['appInstance']; |
195 | 195 | } |
196 | 196 | return self::$instance['appInstance']; |
@@ -217,9 +217,9 @@ discard block |
||
217 | 217 | */ |
218 | 218 | private static function queue() |
219 | 219 | { |
220 | - if(!isset(self::$instance['queue'])){ |
|
220 | + if (!isset(self::$instance['queue'])) { |
|
221 | 221 | |
222 | - self::$instance['queue']=(new Queue()); |
|
222 | + self::$instance['queue'] = (new Queue()); |
|
223 | 223 | return self::$instance['queue']; |
224 | 224 | |
225 | 225 | } |
@@ -231,22 +231,22 @@ discard block |
||
231 | 231 | * @param bool $namespace |
232 | 232 | * @return string |
233 | 233 | */ |
234 | - public static function repository($service,$namespace=false) |
|
234 | + public static function repository($service, $namespace = false) |
|
235 | 235 | { |
236 | - if(static::$reports){ |
|
237 | - self::writeTrace(debug_backtrace(),'repositories',$service); |
|
236 | + if (static::$reports) { |
|
237 | + self::writeTrace(debug_backtrace(), 'repositories', $service); |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | //I can get the repository name from the magic method as a salt repository, |
241 | 241 | //after which we will edit it as an adapter namespace. |
242 | - $repositoryName=ucfirst(preg_replace('@Repository@is','',$service)); |
|
242 | + $repositoryName = ucfirst(preg_replace('@Repository@is', '', $service)); |
|
243 | 243 | |
244 | 244 | //If we then configure the name of the simple repository to be an adapter |
245 | 245 | //then we will give the user an example of the adapter class in each repository call. |
246 | 246 | $repositoryAdapterName = $repositoryName.'Adapter'; |
247 | 247 | $repositoryNamespace = app()->namespace()->repository().'\\'.$repositoryName.'\\'.$repositoryAdapterName; |
248 | 248 | |
249 | - if($namespace) return $repositoryNamespace; |
|
249 | + if ($namespace) return $repositoryNamespace; |
|
250 | 250 | |
251 | 251 | //and eventually we conclude the adapter class of the repository package as an instance. |
252 | 252 | return app()->resolve($repositoryNamespace)->adapter(); |
@@ -255,9 +255,9 @@ discard block |
||
255 | 255 | /** |
256 | 256 | * @param $trace |
257 | 257 | */ |
258 | - private static function writeTrace($trace,$type,$service) |
|
258 | + private static function writeTrace($trace, $type, $service) |
|
259 | 259 | { |
260 | - if(self::app()->isLocale()){ |
|
260 | + if (self::app()->isLocale()) { |
|
261 | 261 | $trace = $trace[2]; |
262 | 262 | |
263 | 263 | $time = time(); |
@@ -268,9 +268,9 @@ discard block |
||
268 | 268 | |
269 | 269 | $filenamespace = Utils::getNamespace($trace['file']); |
270 | 270 | |
271 | - if(!in_array($filenamespace,!is_array($getJsonFile) ? [] : $getJsonFile)){ |
|
272 | - JsonHandler::set('annotation.'.$type.'.'.$service.'.file.'.$time,$filenamespace); |
|
273 | - JsonHandler::set('annotation.'.$type.'.'.$service.'.line.'.$time,$trace['line']); |
|
271 | + if (!in_array($filenamespace, !is_array($getJsonFile) ? [] : $getJsonFile)) { |
|
272 | + JsonHandler::set('annotation.'.$type.'.'.$service.'.file.'.$time, $filenamespace); |
|
273 | + JsonHandler::set('annotation.'.$type.'.'.$service.'.line.'.$time, $trace['line']); |
|
274 | 274 | } |
275 | 275 | } |
276 | 276 | } |
@@ -280,17 +280,17 @@ discard block |
||
280 | 280 | * @param $arg |
281 | 281 | * @return mixed |
282 | 282 | */ |
283 | - private static function source($service,$arg) |
|
283 | + private static function source($service, $arg) |
|
284 | 284 | { |
285 | 285 | //get Source path |
286 | - $service=ucfirst($service); |
|
287 | - $getCalledClass=str_replace('\\'.class_basename($arg[0]),'',get_class($arg[0])); |
|
288 | - $getCalledClass=class_basename($getCalledClass); |
|
286 | + $service = ucfirst($service); |
|
287 | + $getCalledClass = str_replace('\\'.class_basename($arg[0]), '', get_class($arg[0])); |
|
288 | + $getCalledClass = class_basename($getCalledClass); |
|
289 | 289 | |
290 | - $service=str_replace($getCalledClass,'',$service); |
|
290 | + $service = str_replace($getCalledClass, '', $service); |
|
291 | 291 | |
292 | 292 | //run service for endpoint |
293 | - $serviceSource=StaticPathModel::appSourceEndpoint().'\\'.$getCalledClass.'\\'.$service.'\Main'; |
|
293 | + $serviceSource = StaticPathModel::appSourceEndpoint().'\\'.$getCalledClass.'\\'.$service.'\Main'; |
|
294 | 294 | return app()->resolve($serviceSource); |
295 | 295 | } |
296 | 296 | |
@@ -299,9 +299,9 @@ discard block |
||
299 | 299 | */ |
300 | 300 | public static function redis() |
301 | 301 | { |
302 | - if(!isset(self::$instance['redis'])){ |
|
302 | + if (!isset(self::$instance['redis'])) { |
|
303 | 303 | |
304 | - self::$instance['redis']=(new Redis())->client(); |
|
304 | + self::$instance['redis'] = (new Redis())->client(); |
|
305 | 305 | return self::$instance['redis']; |
306 | 306 | |
307 | 307 | } |
@@ -312,13 +312,13 @@ discard block |
||
312 | 312 | * @param null $param |
313 | 313 | * @return array|null|string |
314 | 314 | */ |
315 | - public function route($param=null) |
|
315 | + public function route($param = null) |
|
316 | 316 | { |
317 | - $kernel=self::getAppInstance()->kernel; |
|
317 | + $kernel = self::getAppInstance()->kernel; |
|
318 | 318 | |
319 | - $saltRouteParameters=$kernel->routeParameters; |
|
319 | + $saltRouteParameters = $kernel->routeParameters; |
|
320 | 320 | |
321 | - if($param===null){ |
|
321 | + if ($param===null) { |
|
322 | 322 | return $saltRouteParameters; |
323 | 323 | } |
324 | 324 | |
@@ -334,25 +334,25 @@ discard block |
||
334 | 334 | * @param array $select |
335 | 335 | * @return mixed|string |
336 | 336 | */ |
337 | - public function translator($data,$select=array()) |
|
337 | + public function translator($data, $select = array()) |
|
338 | 338 | { |
339 | 339 | $languageDir = path()->appLanguage(); |
340 | 340 | |
341 | - $lang=(new Lingua($languageDir)); |
|
341 | + $lang = (new Lingua($languageDir)); |
|
342 | 342 | |
343 | - if(self::app()->has('locale')){ |
|
343 | + if (self::app()->has('locale')) { |
|
344 | 344 | $defaultLocale = self::app()->get('locale'); |
345 | 345 | } |
346 | - else{ |
|
346 | + else { |
|
347 | 347 | $defaultLocale = config('app.locale'); |
348 | 348 | } |
349 | 349 | |
350 | - if(!file_exists($languageDir.''.DIRECTORY_SEPARATOR.''.$defaultLocale)){ |
|
350 | + if (!file_exists($languageDir.''.DIRECTORY_SEPARATOR.''.$defaultLocale)) { |
|
351 | 351 | $defaultLocale = config('app.fallback_locale'); |
352 | 352 | } |
353 | 353 | |
354 | - if(count($select)){ |
|
355 | - return $lang->include(['default'])->locale($defaultLocale)->get($data,$select); |
|
354 | + if (count($select)) { |
|
355 | + return $lang->include(['default'])->locale($defaultLocale)->get($data, $select); |
|
356 | 356 | } |
357 | 357 | |
358 | 358 | return $lang->include(['default'])->locale($defaultLocale)->get($data); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param null $default |
15 | 15 | * @return mixed |
16 | 16 | */ |
17 | - public function input($key, $default=null); |
|
17 | + public function input($key, $default = null); |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @param $key |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected function getAutoGenerators() |
33 | 33 | { |
34 | - if(property_exists($this,'auto_generators')){ |
|
34 | + if (property_exists($this, 'auto_generators')) { |
|
35 | 35 | return $this->auto_generators; |
36 | 36 | } |
37 | 37 | return []; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | protected function getAutoGeneratorsDontOverwrite() |
47 | 47 | { |
48 | - if(property_exists($this,'auto_generators_dont_overwrite')){ |
|
48 | + if (property_exists($this, 'auto_generators_dont_overwrite')) { |
|
49 | 49 | return $this->auto_generators_dont_overwrite; |
50 | 50 | } |
51 | 51 | return []; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | protected function getClientObjects() |
61 | 61 | { |
62 | - return array_diff_key($this->getObjects(),['inputs'=>[]]); |
|
62 | + return array_diff_key($this->getObjects(), ['inputs'=>[]]); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function getGenerators() |
71 | 71 | { |
72 | - if(property_exists($this,'generators')){ |
|
72 | + if (property_exists($this, 'generators')) { |
|
73 | 73 | return $this->generators; |
74 | 74 | } |
75 | 75 | return []; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function getGeneratorsDontOverwrite() |
85 | 85 | { |
86 | - if(property_exists($this,'generators_dont_overwrite')){ |
|
86 | + if (property_exists($this, 'generators_dont_overwrite')) { |
|
87 | 87 | return $this->generators_dont_overwrite; |
88 | 88 | } |
89 | 89 | return []; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @param $key |
23 | 23 | * @return mixed |
24 | 24 | */ |
25 | - abstract function annotation($method,$key); |
|
25 | + abstract function annotation($method, $key); |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * get input values from request object |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @param $reflection |
54 | 54 | */ |
55 | - public function setReflection($reflection){ |
|
55 | + public function setReflection($reflection) { |
|
56 | 56 | |
57 | 57 | $this->request = ClosureDispatcher::bind($reflection); |
58 | 58 | } |
@@ -8,89 +8,89 @@ |
||
8 | 8 | * @param null|string $msg |
9 | 9 | * @return mixed |
10 | 10 | */ |
11 | - public function accessDeniedHttpException($msg=null); |
|
11 | + public function accessDeniedHttpException($msg = null); |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * @param null|string $msg |
15 | 15 | * @return mixed |
16 | 16 | */ |
17 | - public function invalidArgument($msg=null); |
|
17 | + public function invalidArgument($msg = null); |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @param null|string $msg |
21 | 21 | * @return mixed |
22 | 22 | */ |
23 | - public function badFunctionCall($msg=null); |
|
23 | + public function badFunctionCall($msg = null); |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @param null|string $msg |
27 | 27 | * @return mixed |
28 | 28 | */ |
29 | - public function badMethodCall($msg=null); |
|
29 | + public function badMethodCall($msg = null); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param null|string $msg |
33 | 33 | * @return mixed |
34 | 34 | */ |
35 | - public function domain($msg=null); |
|
35 | + public function domain($msg = null); |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @param null|string $msg |
39 | 39 | * @return mixed |
40 | 40 | */ |
41 | - public function length($msg=null); |
|
41 | + public function length($msg = null); |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @param null|string $msg |
45 | 45 | * @return mixed |
46 | 46 | */ |
47 | - public function logic($msg=null); |
|
47 | + public function logic($msg = null); |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * @param null|string $msg |
51 | 51 | * @return mixed |
52 | 52 | */ |
53 | - public function notFoundException($msg=null); |
|
53 | + public function notFoundException($msg = null); |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @param null|string $msg |
57 | 57 | * @return mixed |
58 | 58 | */ |
59 | - public function fileNotFoundException($msg=null); |
|
59 | + public function fileNotFoundException($msg = null); |
|
60 | 60 | |
61 | 61 | /** |
62 | 62 | * @param null|string $msg |
63 | 63 | * @return mixed |
64 | 64 | */ |
65 | - public function outOfRange($msg=null); |
|
65 | + public function outOfRange($msg = null); |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @param null|string $msg |
69 | 69 | * @return mixed |
70 | 70 | */ |
71 | - public function overflow($msg=null); |
|
71 | + public function overflow($msg = null); |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * @param null|string $msg |
75 | 75 | * @return mixed |
76 | 76 | */ |
77 | - public function range($msg=null); |
|
77 | + public function range($msg = null); |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * @param null|string $msg |
81 | 81 | * @return mixed |
82 | 82 | */ |
83 | - public function runtime($msg=null); |
|
83 | + public function runtime($msg = null); |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * @param null|string $msg |
87 | 87 | * @return mixed |
88 | 88 | */ |
89 | - public function underflow($msg=null); |
|
89 | + public function underflow($msg = null); |
|
90 | 90 | |
91 | 91 | /** |
92 | 92 | * @param null|string $msg |
93 | 93 | * @return mixed |
94 | 94 | */ |
95 | - public function unexpectedValue($msg=null); |
|
95 | + public function unexpectedValue($msg = null); |
|
96 | 96 | } |
97 | 97 | \ No newline at end of file |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return null |
30 | 30 | * |
31 | 31 | */ |
32 | - public function accessDeniedHttpException($msg=null) |
|
32 | + public function accessDeniedHttpException($msg = null) |
|
33 | 33 | { |
34 | 34 | return $this->accessDeniedHttp($msg); |
35 | 35 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @param null|string $msg |
41 | 41 | */ |
42 | - public function invalidArgument($msg=null) |
|
42 | + public function invalidArgument($msg = null) |
|
43 | 43 | { |
44 | 44 | throw new InvalidArgumentException($msg); |
45 | 45 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @param null|string $msg |
51 | 51 | */ |
52 | - public function badFunctionCall($msg=null) |
|
52 | + public function badFunctionCall($msg = null) |
|
53 | 53 | { |
54 | 54 | throw new BadFunctionCallException($msg); |
55 | 55 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @param null|string $msg |
61 | 61 | */ |
62 | - public function badMethodCall($msg=null) |
|
62 | + public function badMethodCall($msg = null) |
|
63 | 63 | { |
64 | 64 | throw new BadMethodCallException($msg); |
65 | 65 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @param null|string $msg |
71 | 71 | */ |
72 | - public function domain($msg=null) |
|
72 | + public function domain($msg = null) |
|
73 | 73 | { |
74 | 74 | throw new DomainException($msg); |
75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @param null|string $msg |
81 | 81 | */ |
82 | - public function length($msg=null) |
|
82 | + public function length($msg = null) |
|
83 | 83 | { |
84 | 84 | throw new LengthException($msg); |
85 | 85 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @param null|string $msg |
91 | 91 | */ |
92 | - public function logic($msg=null) |
|
92 | + public function logic($msg = null) |
|
93 | 93 | { |
94 | 94 | throw new LogicException($msg); |
95 | 95 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @return null |
102 | 102 | * |
103 | 103 | */ |
104 | - public function notFoundException($msg=null) |
|
104 | + public function notFoundException($msg = null) |
|
105 | 105 | { |
106 | 106 | return $this->notFound($msg); |
107 | 107 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * @return mixed|void |
114 | 114 | * |
115 | 115 | */ |
116 | - public function fileNotFoundException($msg=null) |
|
116 | + public function fileNotFoundException($msg = null) |
|
117 | 117 | { |
118 | 118 | return $this->fileNotFound($msg); |
119 | 119 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * |
124 | 124 | * @param null|string $msg |
125 | 125 | */ |
126 | - public function outOfRange($msg=null) |
|
126 | + public function outOfRange($msg = null) |
|
127 | 127 | { |
128 | 128 | throw new OutOfRangeException($msg); |
129 | 129 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * |
134 | 134 | * @param null|string $msg |
135 | 135 | */ |
136 | - public function overflow($msg=null) |
|
136 | + public function overflow($msg = null) |
|
137 | 137 | { |
138 | 138 | throw new OverflowException($msg); |
139 | 139 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @param null|string $msg |
145 | 145 | */ |
146 | - public function range($msg=null) |
|
146 | + public function range($msg = null) |
|
147 | 147 | { |
148 | 148 | throw new RangeException($msg); |
149 | 149 | } |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * |
154 | 154 | * @param null|string $msg |
155 | 155 | */ |
156 | - public function runtime($msg=null) |
|
156 | + public function runtime($msg = null) |
|
157 | 157 | { |
158 | 158 | throw new RuntimeException($msg); |
159 | 159 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * |
164 | 164 | * @param null|string $msg |
165 | 165 | */ |
166 | - public function underflow($msg=null) |
|
166 | + public function underflow($msg = null) |
|
167 | 167 | { |
168 | 168 | throw new UnderflowException($msg); |
169 | 169 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * |
174 | 174 | * @param null|string $msg |
175 | 175 | */ |
176 | - public function unexpectedValue($msg=null) |
|
176 | + public function unexpectedValue($msg = null) |
|
177 | 177 | { |
178 | 178 | throw new UnexpectedValueException($msg); |
179 | 179 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @param null $default |
21 | 21 | * @return mixed |
22 | 22 | */ |
23 | - public function input($key, $default=null); |
|
23 | + public function input($key, $default = null); |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @param $key |
@@ -45,5 +45,5 @@ discard block |
||
45 | 45 | * @param $value |
46 | 46 | * @return void |
47 | 47 | */ |
48 | - public function set($key,$value); |
|
48 | + public function set($key, $value); |
|
49 | 49 | } |
50 | 50 | \ No newline at end of file |