@@ -92,7 +92,7 @@  | 
                                                    ||
| 92 | 92 | }  | 
                                                        
| 93 | 93 | return $returnedValue;  | 
                                                        
| 94 | 94 |          } else { | 
                                                        
| 95 | -            trigger_error('the method ' . $name . ' does not exists on ' . get_class($this) . ' and there is no widget defined with the setInheritedItem method'); | 
                                                        |
| 95 | +            trigger_error('the method '.$name.' does not exists on '.get_class($this).' and there is no widget defined with the setInheritedItem method'); | 
                                                        |
| 96 | 96 | }  | 
                                                        
| 97 | 97 | }  | 
                                                        
| 98 | 98 | |
@@ -102,7 +102,7 @@ discard block  | 
                                                    ||
| 102 | 102 | $shortName = $reflection->getName();  | 
                                                        
| 103 | 103 | }  | 
                                                        
| 104 | 104 | $app_path = BabFunctionalities::getPath($shortName);  | 
                                                        
| 105 | - return $app_path . '*' . get_class($this);  | 
                                                        |
| 105 | + return $app_path.'*'.get_class($this);  | 
                                                        |
| 106 | 106 | }  | 
                                                        
| 107 | 107 | |
| 108 | 108 | /**  | 
                                                        
@@ -112,7 +112,7 @@ discard block  | 
                                                    ||
| 112 | 112 |      { | 
                                                        
| 113 | 113 | $classname = get_class($this);  | 
                                                        
| 114 | 114 |          $suffix = mb_substr($classname, mb_strlen('AppPortletDefinition')); | 
                                                        
| 115 | - $classname = 'AppPortletUi' . $suffix;  | 
                                                        |
| 115 | + $classname = 'AppPortletUi'.$suffix;  | 
                                                        |
| 116 | 116 | |
| 117 | 117 | return new $classname($this->App());  | 
                                                        
| 118 | 118 | }  | 
                                                        
@@ -40,7 +40,7 @@  | 
                                                    ||
| 40 | 40 | use function Cofy\Utilities\Addon\bab_getAddonInfosInstance;  | 
                                                        
| 41 | 41 | use function Cofy\Utilities\Addon\bab_Widgets;  | 
                                                        
| 42 | 42 | |
| 43 | -require_once bab_getAddonInfosInstance('portlets')->getPhpPath() . 'portletbackend.class.php'; | 
                                                        |
| 43 | +require_once bab_getAddonInfosInstance('portlets')->getPhpPath().'portletbackend.class.php'; | 
                                                        |
| 44 | 44 | |
| 45 | 45 | class AppPortletUiContextual extends AppPortletUi implements portlet_PortletInterface  | 
                                                        
| 46 | 46 |  { | 
                                                        
@@ -101,7 +101,7 @@  | 
                                                    ||
| 101 | 101 |      { | 
                                                        
| 102 | 102 |          list(, $portletDefinitionName) = explode('*', $portletDefinitionId); | 
                                                        
| 103 | 103 | |
| 104 | - $meth = str_replace($this->App()->addonName . self::DEFAULT_DEFINITION_NAME, '', $portletDefinitionName);  | 
                                                        |
| 104 | + $meth = str_replace($this->App()->addonName.self::DEFAULT_DEFINITION_NAME, '', $portletDefinitionName);  | 
                                                        |
| 105 | 105 |          if (method_exists($this, $meth)) { | 
                                                        
| 106 | 106 | return $this->$meth();  | 
                                                        
| 107 | 107 | }  | 
                                                        
@@ -49,7 +49,7 @@  | 
                                                    ||
| 49 | 49 | $path->pop();  | 
                                                        
| 50 | 50 | }  | 
                                                        
| 51 | 51 |              $path->push('composer.json'); | 
                                                        
| 52 | -            if (! $path->fileExists()) { | 
                                                        |
| 52 | +            if (!$path->fileExists()) { | 
                                                        |
| 53 | 53 | return null;  | 
                                                        
| 54 | 54 | }  | 
                                                        
| 55 | 55 | |
@@ -41,7 +41,7 @@ discard block  | 
                                                    ||
| 41 | 41 | use function Cofy\Utilities\bab_GetDatabaseInstance;  | 
                                                        
| 42 | 42 | use function Cofy\Utilities\User\bab_isUserLogged;  | 
                                                        
| 43 | 43 | |
| 44 | -require_once dirname(__FILE__) . '/functions.php';  | 
                                                        |
| 44 | +require_once dirname(__FILE__).'/functions.php';  | 
                                                        |
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | function LibApp_upgrade($sVersionBase, $sVersionIni)  | 
                                                        
@@ -73,7 +73,7 @@ discard block  | 
                                                    ||
| 73 | 73 | $App->CustomContainerSet()  | 
                                                        
| 74 | 74 | );  | 
                                                        
| 75 | 75 | |
| 76 | -    foreach($sets as $set){ | 
                                                        |
| 76 | +    foreach ($sets as $set) { | 
                                                        |
| 77 | 77 | $sql .= $backend->setToSql($set);  | 
                                                        
| 78 | 78 | }  | 
                                                        
| 79 | 79 | |
@@ -99,14 +99,14 @@ discard block  | 
                                                    ||
| 99 | 99 | |
| 100 | 100 | $babBody = bab_getBody();  | 
                                                        
| 101 | 101 |      $addon = bab_getAddonInfosInstance('libapp'); | 
                                                        
| 102 | - $babBody->addStyleSheet($addon->getStylePath() . '/libapp.min.css');  | 
                                                        |
| 103 | - $babBody->addJavascriptFile($addon->getTemplatePath() . 'libapp.js');  | 
                                                        |
| 102 | + $babBody->addStyleSheet($addon->getStylePath().'/libapp.min.css');  | 
                                                        |
| 103 | + $babBody->addJavascriptFile($addon->getTemplatePath().'libapp.js');  | 
                                                        |
| 104 | 104 | $App = app_App();  | 
                                                        
| 105 | 105 |      if ($App && $App->isSSEEnabled()) { | 
                                                        
| 106 | - $babBody->addJavascriptFile($addon->getTemplatePath() . 'notification.js');  | 
                                                        |
| 106 | + $babBody->addJavascriptFile($addon->getTemplatePath().'notification.js');  | 
                                                        |
| 107 | 107 |          if (bab_isUserLogged()) { | 
                                                        
| 108 | -            $babBody->babecho('<script>window.libapp={"sseServerUrl": "' . $App->Controller()->SSE()->server()->url() . '"}</script>'); | 
                                                        |
| 109 | - $babBody->addJavascriptFile($addon->getTemplatePath() . 'sse.js');  | 
                                                        |
| 108 | +            $babBody->babecho('<script>window.libapp={"sseServerUrl": "'.$App->Controller()->SSE()->server()->url().'"}</script>'); | 
                                                        |
| 109 | + $babBody->addJavascriptFile($addon->getTemplatePath().'sse.js');  | 
                                                        |
| 110 | 110 | }  | 
                                                        
| 111 | 111 | }  | 
                                                        
| 112 | 112 | }  | 
                                                        
@@ -126,7 +126,7 @@ discard block  | 
                                                    ||
| 126 | 126 |      @BabFunctionality::includefile('Portletbackend'); | 
                                                        
| 127 | 127 |      if (class_exists('FuncPortletbackend')) { | 
                                                        
| 128 | 128 |          $addon = bab_getAddonInfosInstance('libapp'); | 
                                                        
| 129 | - $path = APP_PORTLET_PATH . '/FuncPortletbackendApp.php';  | 
                                                        |
| 129 | + $path = APP_PORTLET_PATH.'/FuncPortletbackendApp.php';  | 
                                                        |
| 130 | 130 | require_once $path;  | 
                                                        
| 131 | 131 | $functionalities = new BabFunctionalities();  | 
                                                        
| 132 | 132 |          $functionalities->register('Portletbackend/App',); | 
                                                        
@@ -33,7 +33,7 @@  | 
                                                    ||
| 33 | 33 |  { | 
                                                        
| 34 | 34 | public function __construct($action, $code = 0)  | 
                                                        
| 35 | 35 |      { | 
                                                        
| 36 | - $message = 'Unknown method "' . $action->getController() . '::' . $action->getMethod() . '"';  | 
                                                        |
| 36 | + $message = 'Unknown method "'.$action->getController().'::'.$action->getMethod().'"';  | 
                                                        |
| 37 | 37 | parent::__construct($message, $code);  | 
                                                        
| 38 | 38 | }  | 
                                                        
| 39 | 39 | }  | 
                                                        
@@ -66,7 +66,7 @@ discard block  | 
                                                    ||
| 66 | 66 | */  | 
                                                        
| 67 | 67 | public function getDeletedBy()  | 
                                                        
| 68 | 68 |      { | 
                                                        
| 69 | -        if (! $this->record->deletedBy) { | 
                                                        |
| 69 | +        if (!$this->record->deletedBy) { | 
                                                        |
| 70 | 70 | return null;  | 
                                                        
| 71 | 71 | }  | 
                                                        
| 72 | 72 | |
@@ -81,7 +81,7 @@ discard block  | 
                                                    ||
| 81 | 81 | public function getDeletedOn()  | 
                                                        
| 82 | 82 |      { | 
                                                        
| 83 | 83 | $set = $this->getRecordSet();  | 
                                                        
| 84 | -        if (! $set->deletedOn->isValueSet($this->record->deletedOn)) { | 
                                                        |
| 84 | +        if (!$set->deletedOn->isValueSet($this->record->deletedOn)) { | 
                                                        |
| 85 | 85 | return null;  | 
                                                        
| 86 | 86 | }  | 
                                                        
| 87 | 87 | |
@@ -79,7 +79,7 @@ discard block  | 
                                                    ||
| 79 | 79 |      { | 
                                                        
| 80 | 80 | $set = $this->getRecordSet();  | 
                                                        
| 81 | 81 | $record = $set->get($id);  | 
                                                        
| 82 | -        if (! $record) { | 
                                                        |
| 82 | +        if (!$record) { | 
                                                        |
| 83 | 83 | return true;  | 
                                                        
| 84 | 84 | }  | 
                                                        
| 85 | 85 | |
@@ -161,10 +161,10 @@ discard block  | 
                                                    ||
| 161 | 161 | ->display($notif->id))  | 
                                                        
| 162 | 162 |                      ->addClass('notificationBoxElement') | 
                                                        
| 163 | 163 | ->setOpenMode(WidgetLink::OPEN_DIALOG));  | 
                                                        
| 164 | -                if (! empty($notif->description)) { | 
                                                        |
| 164 | +                if (!empty($notif->description)) { | 
                                                        |
| 165 | 165 | $desc = $notif->description;  | 
                                                        
| 166 | 166 |                      if (strlen($desc) > 40) { | 
                                                        
| 167 | - $desc = trim(substr($desc, 0, 40)) . '...';  | 
                                                        |
| 167 | + $desc = trim(substr($desc, 0, 40)).'...';  | 
                                                        |
| 168 | 168 | }  | 
                                                        
| 169 | 169 | $el->addItem($W->Label($desc)  | 
                                                        
| 170 | 170 |                          ->addClass('notificationElementDescription'), 1); |