@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | // if there is manifest propery in the resta |
| 36 | 36 | // in this case,manifest property is manifest class |
| 37 | - if($app['isAvailableStore']){
|
|
| 37 | + if ($app['isAvailableStore']) {
|
|
| 38 | 38 | $this->manifest = $this->manifest->resolve("Src\Manifest");
|
| 39 | 39 | } |
| 40 | 40 | |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | {
|
| 62 | 62 | $app = clone $this; |
| 63 | 63 | |
| 64 | - return $this->manifest->call(function() use ($maker,$app){
|
|
| 64 | + return $this->manifest->call(function() use ($maker, $app){
|
|
| 65 | 65 | |
| 66 | 66 | // As a parameter, the maker variable comes as |
| 67 | 67 | // the name of the list to be booted. |
| 68 | - if(isset($this->{$maker})){
|
|
| 68 | + if (isset($this->{$maker})) {
|
|
| 69 | 69 | |
| 70 | 70 | //get default maker list |
| 71 | 71 | $app->setMakerList($this->{$maker});
|
@@ -73,13 +73,13 @@ discard block |
||
| 73 | 73 | // we set this condition for users to boot the classes they want in the kernel groups. |
| 74 | 74 | // in the manifesto, if the kernel groups method returns an class of arrays |
| 75 | 75 | // then these classes will automatically join the kernel groups installation. |
| 76 | - if(isset($this->run) && isset($this->run[$maker]) && is_array($this->run[$maker])){
|
|
| 76 | + if (isset($this->run) && isset($this->run[$maker]) && is_array($this->run[$maker])) {
|
|
| 77 | 77 | |
| 78 | 78 | $appMaker = $this->run[$maker]; |
| 79 | 79 | |
| 80 | 80 | // if the makerExtend value in the manifest is a method, |
| 81 | 81 | // in this case, the method is executed instead of the object |
| 82 | - if(method_exists($this,$maker)){
|
|
| 82 | + if (method_exists($this, $maker)) {
|
|
| 83 | 83 | $this->{$maker}(app());
|
| 84 | 84 | } |
| 85 | 85 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | // revision maker |
| 95 | 95 | // group name to boot |
| 96 | - if(isset($this->revision)){
|
|
| 96 | + if (isset($this->revision)) {
|
|
| 97 | 97 | $app->revisionMaker($this->revision); |
| 98 | 98 | } |
| 99 | 99 | |
@@ -109,19 +109,19 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function revisionMaker($revision) |
| 111 | 111 | {
|
| 112 | - if(is_array($revision) && count($this->makerList)){
|
|
| 112 | + if (is_array($revision) && count($this->makerList)) {
|
|
| 113 | 113 | |
| 114 | 114 | //We return to the boot list and perform a revision check. |
| 115 | - foreach ($this->makerList as $makerKey=>$makerValue){
|
|
| 115 | + foreach ($this->makerList as $makerKey=>$makerValue) {
|
|
| 116 | 116 | |
| 117 | 117 | // the revision list is presented as a helper method to prevent |
| 118 | 118 | // the listener application being booted from taking the entire listener individually. |
| 119 | - if(count($revision) && isset($revision[$makerKey]) && Utils::isNamespaceExists($revision[$makerKey])){
|
|
| 119 | + if (count($revision) && isset($revision[$makerKey]) && Utils::isNamespaceExists($revision[$makerKey])) {
|
|
| 120 | 120 | $this->makerList[$makerKey] = $revision[$makerKey]; |
| 121 | 121 | |
| 122 | 122 | // if a kernel group key that is changed to revision is an actual class, |
| 123 | 123 | // we will save this class to the container object. |
| 124 | - $this->app->register('revision',$makerValue,$revision[$makerKey]);
|
|
| 124 | + $this->app->register('revision', $makerValue, $revision[$makerKey]);
|
|
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | } |