@@ -46,12 +46,12 @@ discard block |
||
46 | 46 | |
47 | 47 | $refreshFrequency = $this->getRefreshFrequency(); |
48 | 48 | |
49 | - while (1){ |
|
49 | + while (1) { |
|
50 | 50 | $data = $this->getSSEData(); |
51 | - if($data != '{}'){ |
|
51 | + if ($data != '{}') { |
|
52 | 52 | echo "event: ping\n"; |
53 | 53 | echo "\n\n"; |
54 | - echo 'data: ' . $this->getSSEData() . "\n\n"; |
|
54 | + echo 'data: '.$this->getSSEData()."\n\n"; |
|
55 | 55 | } |
56 | 56 | ob_end_flush(); |
57 | 57 | flush(); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | private function getRefreshFrequency() |
63 | 63 | { |
64 | - if(! isset($this->refreshFrequency)){ |
|
64 | + if (!isset($this->refreshFrequency)) { |
|
65 | 65 | $registry = app_getRegistry(); |
66 | 66 | $registry->changeDirectory('configuration'); |
67 | 67 | $registry->changeDirectory('SSE'); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | private function getCurrentUser() |
82 | 82 | { |
83 | - if(isset($this->currentUser)){ |
|
83 | + if (isset($this->currentUser)) { |
|
84 | 84 | return $this->currentUser; |
85 | 85 | } |
86 | 86 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | { |
28 | 28 | public function __construct($action, $code = 0) |
29 | 29 | { |
30 | - $message = 'Unknown method "' . $action->getController() . '::' . $action->getMethod() . '"'; |
|
30 | + $message = 'Unknown method "'.$action->getController().'::'.$action->getMethod().'"'; |
|
31 | 31 | parent::__construct($message, $code); |
32 | 32 | } |
33 | 33 | } |
34 | 34 | \ No newline at end of file |
@@ -72,7 +72,7 @@ |
||
72 | 72 | public function getObjectTitle() |
73 | 73 | { |
74 | 74 | $element = app_translate('object'); |
75 | - if($description = $this->getRecordSet()->getDescription()){ |
|
75 | + if ($description = $this->getRecordSet()->getDescription()) { |
|
76 | 76 | $element = mb_strtolower(app_translate($description)); |
77 | 77 | } |
78 | 78 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function getDeletedBy() |
55 | 55 | { |
56 | - if(! $this->record->deletedBy){ |
|
56 | + if (!$this->record->deletedBy) { |
|
57 | 57 | return null; |
58 | 58 | } |
59 | 59 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | public function getDeletedOn() |
69 | 69 | { |
70 | 70 | $set = $this->getRecordSet(); |
71 | - if(! $set->deletedOn->isValueSet($this->record->deletedOn)){ |
|
71 | + if (!$set->deletedOn->isValueSet($this->record->deletedOn)) { |
|
72 | 72 | return null; |
73 | 73 | } |
74 | 74 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | $portlet_path = explode('_', get_class($this)); |
81 | 81 | |
82 | - return implode('/', $app_path) . '/' . $portlet_path[count($portlet_path) - 1]; |
|
82 | + return implode('/', $app_path).'/'.$portlet_path[count($portlet_path) - 1]; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $classname = get_class($this); |
91 | 91 | $suffix = mb_substr($classname, mb_strlen('App_PortletDefinition_')); |
92 | - $classname = 'App_PortletUi_' . $suffix; |
|
92 | + $classname = 'App_PortletUi_'.$suffix; |
|
93 | 93 | |
94 | 94 | return new $classname($this->App()); |
95 | 95 | } |
@@ -2,6 +2,6 @@ |
||
2 | 2 | |
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
5 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
6 | 6 | |
7 | 7 | return ComposerAutoloaderInit0aaa67be5f7bedbc88eff25aa142ea59::getLoader(); |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | $issues = array(); |
6 | 6 | |
7 | 7 | if (!(PHP_VERSION_ID >= 50300)) { |
8 | - $issues[] = 'Your Composer dependencies require a PHP version ">= 5.3.0". You are running ' . PHP_VERSION . '.'; |
|
8 | + $issues[] = 'Your Composer dependencies require a PHP version ">= 5.3.0". You are running '.PHP_VERSION.'.'; |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | if ($issues) { |
@@ -14,13 +14,13 @@ discard block |
||
14 | 14 | } |
15 | 15 | if (!ini_get('display_errors')) { |
16 | 16 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
17 | - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); |
|
17 | + fwrite(STDERR, 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.implode(PHP_EOL, $issues).PHP_EOL.PHP_EOL); |
|
18 | 18 | } elseif (!headers_sent()) { |
19 | - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; |
|
19 | + echo 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)).PHP_EOL.PHP_EOL; |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | trigger_error( |
23 | - 'Composer detected issues in your platform: ' . implode(' ', $issues), |
|
23 | + 'Composer detected issues in your platform: '.implode(' ', $issues), |
|
24 | 24 | E_USER_ERROR |
25 | 25 | ); |
26 | 26 | } |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Capwelton\\LibApp\\' => array($baseDir . '/programs'), |
|
9 | + 'Capwelton\\LibApp\\' => array($baseDir.'/programs'), |
|
10 | 10 | ); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | return self::$loader; |
23 | 23 | } |
24 | 24 | |
25 | - require __DIR__ . '/platform_check.php'; |
|
25 | + require __DIR__.'/platform_check.php'; |
|
26 | 26 | |
27 | 27 | spl_autoload_register(array('ComposerAutoloaderInit0aaa67be5f7bedbc88eff25aa142ea59', 'loadClassLoader'), true, true); |
28 | 28 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); |
@@ -30,21 +30,21 @@ discard block |
||
30 | 30 | |
31 | 31 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
32 | 32 | if ($useStaticLoader) { |
33 | - require __DIR__ . '/autoload_static.php'; |
|
33 | + require __DIR__.'/autoload_static.php'; |
|
34 | 34 | |
35 | 35 | call_user_func(\Composer\Autoload\ComposerStaticInit0aaa67be5f7bedbc88eff25aa142ea59::getInitializer($loader)); |
36 | 36 | } else { |
37 | - $map = require __DIR__ . '/autoload_namespaces.php'; |
|
37 | + $map = require __DIR__.'/autoload_namespaces.php'; |
|
38 | 38 | foreach ($map as $namespace => $path) { |
39 | 39 | $loader->set($namespace, $path); |
40 | 40 | } |
41 | 41 | |
42 | - $map = require __DIR__ . '/autoload_psr4.php'; |
|
42 | + $map = require __DIR__.'/autoload_psr4.php'; |
|
43 | 43 | foreach ($map as $namespace => $path) { |
44 | 44 | $loader->setPsr4($namespace, $path); |
45 | 45 | } |
46 | 46 | |
47 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
47 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
48 | 48 | if ($classMap) { |
49 | 49 | $loader->addClassMap($classMap); |
50 | 50 | } |