@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | public function getAlias() |
| 111 | 111 | { |
| 112 | - return $this->menuItem->alias . '/' . $this->alias; |
|
| 112 | + return $this->menuItem->alias.'/'.$this->alias; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | public function getContainer() |
@@ -189,12 +189,12 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | public function getId() |
| 191 | 191 | { |
| 192 | - return $this->menuItem->id . '_' . md5(spl_object_hash($this) . $this->getAlias()); |
|
| 192 | + return $this->menuItem->id.'_'.md5(spl_object_hash($this).$this->getAlias()); |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | public function getNavId() |
| 196 | 196 | { |
| 197 | - return $this->menuItem->navId . '_' . $this->getChildOf(); |
|
| 197 | + return $this->menuItem->navId.'_'.$this->getChildOf(); |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | public function toArray() |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | if ($item) { |
| 57 | 57 | $link = $item->link; |
| 58 | 58 | |
| 59 | - if ($item->type == 2 && !empty($rule)) { |
|
| 59 | + if ($item->type == 2 && !empty($rule)) { |
|
| 60 | 60 | $routeParams = [$rule['route']]; |
| 61 | 61 | |
| 62 | 62 | foreach ($rule['params'] as $key => $value) { |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function parseRequest($manager, $request) |
| 16 | 16 | { |
| 17 | 17 | // add trace info |
| 18 | - Yii::info('LUYA-CMS CatchAllUrlRule is parsing the Request for path info \'' . $request->pathInfo .'\'', __METHOD__); |
|
| 18 | + Yii::info('LUYA-CMS CatchAllUrlRule is parsing the Request for path info \''.$request->pathInfo.'\'', __METHOD__); |
|
| 19 | 19 | |
| 20 | 20 | if (empty($request->pathInfo)) { |
| 21 | 21 | return false; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | public function parseRequest($manager, $request) |
| 19 | 19 | { |
| 20 | 20 | // add trace info |
| 21 | - Yii::info('LUYA-CMS RouteBehaviorUrlRule is parsing the Request for path info \'' . $request->pathInfo .'\'', __METHOD__); |
|
| 21 | + Yii::info('LUYA-CMS RouteBehaviorUrlRule is parsing the Request for path info \''.$request->pathInfo.'\'', __METHOD__); |
|
| 22 | 22 | // return the custom route |
| 23 | 23 | |
| 24 | 24 | $parts = explode("/", $request->pathInfo); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | foreach ($imageList as $image) { |
| 59 | 59 | if (array_key_exists($image['file_id'], $allStorageFileEntries)) { |
| 60 | - $filterImage = $image['filter_id'] . '_' . $allStorageFileEntries[$image['file_id']]['name_new_compound']; |
|
| 60 | + $filterImage = $image['filter_id'].'_'.$allStorageFileEntries[$image['file_id']]['name_new_compound']; |
|
| 61 | 61 | foreach ($storageFileList as $key => $file) { |
| 62 | 62 | if ($filterImage == pathinfo($file, PATHINFO_BASENAME)) { |
| 63 | 63 | unset($storageFileList[$key]); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | private function getFieldId($name) |
| 62 | 62 | { |
| 63 | - return Inflector::camel2id($this->id . $name); |
|
| 63 | + return Inflector::camel2id($this->id.$name); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | public function run() |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | // do we have option params for the button |
| 70 | 70 | $params = (array_key_exists('params', $this->options)) ? $this->options['params'] : []; |
| 71 | 71 | // create the angular controller name |
| 72 | - $controller = 'Controller'.Inflector::camelize($this->id) . Inflector::camelize($this->callback) . time(); |
|
| 72 | + $controller = 'Controller'.Inflector::camelize($this->id).Inflector::camelize($this->callback).time(); |
|
| 73 | 73 | // render and return the view with the specific params |
| 74 | 74 | return $this->render('@admin/views/aws/base/_callbackForm', [ |
| 75 | 75 | 'angularCrudControllerName' => $controller, |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | public function getHashName() |
| 75 | 75 | { |
| 76 | 76 | if ($this->_hashName === null) { |
| 77 | - $this->_hashName = sha1($this->getName() . $this->icon . $this->alias); |
|
| 77 | + $this->_hashName = sha1($this->getName().$this->icon.$this->alias); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | return $this->_hashName; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | // do we have option params for the button |
| 25 | 25 | $params = (array_key_exists('params', $options)) ? $options['params'] : []; |
| 26 | 26 | // create the angular controller name |
| 27 | - $controller = 'Controller'.Inflector::camelize($value) . Inflector::camelize($callback); |
|
| 27 | + $controller = 'Controller'.Inflector::camelize($value).Inflector::camelize($callback); |
|
| 28 | 28 | // render and return the view with the specific params |
| 29 | 29 | return $this->render('@admin/views/aws/base/_callbackButton', [ |
| 30 | 30 | 'angularCrudControllerName' => $controller, |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | public function getHttpSource() |
| 146 | 146 | { |
| 147 | - return Yii::$app->storage->httpPath . '/' . $this->itemArray['name_new_compound']; |
|
| 147 | + return Yii::$app->storage->httpPath.'/'.$this->itemArray['name_new_compound']; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | */ |
| 154 | 154 | public function getServerSource() |
| 155 | 155 | { |
| 156 | - return Yii::$app->storage->serverPath . '/' . $this->itemArray['name_new_compound']; |
|
| 156 | + return Yii::$app->storage->serverPath.'/'.$this->itemArray['name_new_compound']; |
|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | /** |