@@ -103,10 +103,10 @@ |
||
103 | 103 | */ |
104 | 104 | public function setFormId($formId) |
105 | 105 | { |
106 | - $this->formId = $formId . '-'; |
|
106 | + $this->formId = $formId.'-'; |
|
107 | 107 | |
108 | 108 | foreach ($this as $button) { |
109 | - $button->setAttribute('id', $this->formId . $button->getAttribute('id')); |
|
109 | + $button->setAttribute('id', $this->formId.$button->getAttribute('id')); |
|
110 | 110 | } |
111 | 111 | return $this; |
112 | 112 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | if ($this->repositoryName) { |
45 | 45 | $nameParts = explode('/', $this->repositoryName); |
46 | - $entityClass = $nameParts[0] . '\\Entity\\' . $nameParts[1]; |
|
46 | + $entityClass = $nameParts[0].'\\Entity\\'.$nameParts[1]; |
|
47 | 47 | $queryBuilder->find($entityClass); |
48 | 48 | } |
49 | 49 | return $this->createQuery($value, $queryBuilder); |
@@ -98,7 +98,7 @@ |
||
98 | 98 | $repository = $dm->getRepository($repositoryName); |
99 | 99 | |
100 | 100 | $criteria = array( |
101 | - 'permissions.assigned.' . $resourceId => array( |
|
101 | + 'permissions.assigned.'.$resourceId => array( |
|
102 | 102 | '$exists' => true |
103 | 103 | ) |
104 | 104 | ); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | public function get($key) |
23 | 23 | { |
24 | 24 | if (!isset($this->values[$key])) { |
25 | - throw new \OutOfBoundsException('Invalid key "' . $key . '"'); |
|
25 | + throw new \OutOfBoundsException('Invalid key "'.$key.'"'); |
|
26 | 26 | } |
27 | 27 | return $this->values[$key]; |
28 | 28 | } |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | |
46 | 46 | public function __call($method, $params) |
47 | 47 | { |
48 | - $type = substr($method, 0, 3); |
|
48 | + $type = substr($method, 0, 3); |
|
49 | 49 | |
50 | 50 | if ('get' == $type || 'set' == $type) { |
51 | - $filter = function ($match) { |
|
52 | - return '_' . strtolower($match[0]); |
|
51 | + $filter = function($match) { |
|
52 | + return '_'.strtolower($match[0]); |
|
53 | 53 | }; |
54 | 54 | $key = lcfirst(substr($method, 3)); |
55 | 55 | $key = preg_replace_callback('~([A-Z])~', $filter, $key); |
@@ -57,6 +57,6 @@ discard block |
||
57 | 57 | return 'get' == $type ? $this->get($key) : $this->set($key, (isset($params[0]) ? $params[0] : null)); |
58 | 58 | } |
59 | 59 | |
60 | - throw new \BadMethodCallException('Unknown method: ' . $method); |
|
60 | + throw new \BadMethodCallException('Unknown method: '.$method); |
|
61 | 61 | } |
62 | 62 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | public function closureToDatabase() |
72 | 72 | { |
73 | 73 | return ' |
74 | - /* CODE FROM: ' . __METHOD__ . ' */ |
|
74 | + /* CODE FROM: ' . __METHOD__.' */ |
|
75 | 75 | if (!$value instanceOf \DateTime) return null; |
76 | 76 | $return = array( |
77 | 77 | "date" => new \MongoDate($value->getTimestamp()), |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | public function closureToPhp() |
114 | 114 | { |
115 | 115 | return ' |
116 | - /* CODE FROM: ' . __METHOD__ . ' */ |
|
116 | + /* CODE FROM: ' . __METHOD__.' */ |
|
117 | 117 | if (!is_array($value) |
118 | 118 | || !isset($value["date"]) |
119 | 119 | || !$value["date"] instanceOf \MongoDate |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | public static function load($directory) |
38 | 38 | { |
39 | - $directory = rtrim($directory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
39 | + $directory = rtrim($directory, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
40 | 40 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
41 | 41 | $pattern = sprintf('%s{,*.}{config,%s}.php', $directory, $env); |
42 | 42 | $config = array(); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $notifications = $event->getNotifications(); |
42 | 42 | if (is_array($notifications) && !empty($notifications)) { |
43 | 43 | foreach ($notifications as $notification) { |
44 | - $headScript->appendScript('/* ' . $notification->getNotification() . ' */'); |
|
44 | + $headScript->appendScript('/* '.$notification->getNotification().' */'); |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 | } |
@@ -77,7 +77,7 @@ |
||
77 | 77 | } |
78 | 78 | $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver'); |
79 | 79 | |
80 | - $template = $viewModel->getTemplate() . '.ajax'; |
|
80 | + $template = $viewModel->getTemplate().'.ajax'; |
|
81 | 81 | if ($resolver->resolve($template)) { |
82 | 82 | $viewModel->setTemplate($template); |
83 | 83 | } else { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | if (!empty($capture)) { |
52 | 52 | if ($viewModel->isAppend()) { |
53 | 53 | $oldResult = $viewModel->{$capture}; |
54 | - $viewModel->setVariable($capture, $oldResult . $result); |
|
54 | + $viewModel->setVariable($capture, $oldResult.$result); |
|
55 | 55 | } else { |
56 | 56 | $viewModel->setVariable($capture, $result); |
57 | 57 | } |