@@ -57,9 +57,9 @@ |
||
57 | 57 | $helper->setOption('theme', 'modern'); |
58 | 58 | $helper->setOption('selector', 'div.tinymce_light'); |
59 | 59 | |
60 | - if (in_array($lang, [ 'de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr' ])) { |
|
60 | + if (in_array($lang, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) { |
|
61 | 61 | $helper->setOption('language', $lang); |
62 | - $helper->setOption('language_url', $basePath('modules/Core/js/tinymce-lang/') . $lang . '.js'); |
|
62 | + $helper->setOption('language_url', $basePath('modules/Core/js/tinymce-lang/').$lang.'.js'); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return $helper; |
@@ -72,7 +72,7 @@ |
||
72 | 72 | try { |
73 | 73 | $constructorArgs[] = $container->get($serviceName); |
74 | 74 | } catch (\Exception $x) { |
75 | - echo __CLASS__ . " couldn't create an instance of {$p->getName()} to satisfy the constructor for $requestedName."; |
|
75 | + echo __CLASS__." couldn't create an instance of {$p->getName()} to satisfy the constructor for $requestedName."; |
|
76 | 76 | exit; |
77 | 77 | } |
78 | 78 | } |
@@ -26,6 +26,6 @@ |
||
26 | 26 | $repositories = $container->get('repositories'); |
27 | 27 | $coreFileEvents = $container->get('Core/File/Events'); |
28 | 28 | |
29 | - return new FileController($repositories,$coreFileEvents); |
|
29 | + return new FileController($repositories, $coreFileEvents); |
|
30 | 30 | } |
31 | 31 | } |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | $queryBuilder->find($this->getEntityClassName($requestedName)); |
77 | 77 | |
78 | 78 | $filterManager = $container->get('FilterManager'); |
79 | - $filterName = 'PaginationQuery/' . $requestedName; |
|
79 | + $filterName = 'PaginationQuery/'.$requestedName; |
|
80 | 80 | |
81 | 81 | if ($filterManager->has($filterName)) { |
82 | - $filter = $filterManager->get('PaginationQuery/' . $requestedName); |
|
82 | + $filter = $filterManager->get('PaginationQuery/'.$requestedName); |
|
83 | 83 | $queryBuilder = $filter->filter($options, $queryBuilder); |
84 | 84 | } |
85 | 85 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @param array|null $options |
99 | 99 | * @return bool |
100 | 100 | */ |
101 | - public function canCreate(ContainerInterface $container, $requestedName, array $options=null) |
|
101 | + public function canCreate(ContainerInterface $container, $requestedName, array $options = null) |
|
102 | 102 | { |
103 | 103 | $class = $this->getEntityClassName($requestedName); |
104 | 104 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | case ImagineOptions::LIB_GD: |
47 | 47 | case ImagineOptions::LIB_IMAGICK: |
48 | 48 | case ImagineOptions::LIB_GMAGICK: |
49 | - $imagineClass = '\Imagine\\' . $lib . '\Imagine'; |
|
49 | + $imagineClass = '\Imagine\\'.$lib.'\Imagine'; |
|
50 | 50 | $imagine = new $imagineClass; |
51 | 51 | break; |
52 | 52 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | public function getFileEntity() |
94 | 94 | { |
95 | - if (! $this->fileEntity instanceof FileInterface) { |
|
95 | + if (!$this->fileEntity instanceof FileInterface) { |
|
96 | 96 | throw new \RuntimeException('No file entity set or it does not implement \Core\Entity\FileInterface.'); |
97 | 97 | } |
98 | 98 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | public function filter($value) |
103 | 103 | { |
104 | - if (! is_array($value) || ! isset($value['tmp_name']) || ((isset($value['error']) && UPLOAD_ERR_NO_FILE == $value['error']))) { |
|
104 | + if (!is_array($value) || !isset($value['tmp_name']) || ((isset($value['error']) && UPLOAD_ERR_NO_FILE == $value['error']))) { |
|
105 | 105 | return null; |
106 | 106 | } |
107 | 107 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | : SnapshotMeta::class; |
38 | 38 | |
39 | 39 | $this->snapshotMeta = new $snapshotMetaClass(); |
40 | - $this->snapshotEntity = $source; |
|
40 | + $this->snapshotEntity = $source; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public function getOriginalEntity() |
@@ -72,7 +72,7 @@ |
||
72 | 72 | * @throws \Core\Entity\Exception\OutOfBoundsException if the property does not exists. |
73 | 73 | * @since 0.25 |
74 | 74 | */ |
75 | - public function notEmpty($property, array $args=[]); |
|
75 | + public function notEmpty($property, array $args = []); |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Checks, if this entity has a property. |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | return $this->$method($value); |
50 | 50 | } |
51 | 51 | |
52 | - throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this). "'"); |
|
52 | + throw new OutOfBoundsException("'$property' is not a valid property of '".get_class($this)."'"); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | if (method_exists($this, $method)) { |
77 | 77 | return $this->$method(); |
78 | 78 | } |
79 | - throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'"); |
|
79 | + throw new OutOfBoundsException("'$property' is not a valid property of '".get_class($this)."'"); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |