Test Failed
Push — develop ( ff58ad...b8f9b2 )
by steve
13:44 queued 12s
created
neon/cms/form/fields/ImageCompare.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@
 block discarded – undo
48 48
 		];
49 49
     }
50 50
     
51
-    public function getValueDisplay($context='')
51
+    public function getValueDisplay($context = '')
52 52
 	{
53 53
 		$json = $this->getValue();
54 54
 		if (empty($json))
55 55
 			return neon()->formatter->asJson($this->getValue());
56
-		if ($context==='grid') {
56
+		if ($context === 'grid') {
57 57
 			$out = '';
58
-			foreach($json as $image) {
58
+			foreach ($json as $image) {
59 59
 				$url = neon()->firefly->getImage($image);
60 60
 				$out .= "<img src='$url' />";
61 61
 			}
Please login to merge, or discard this patch.
neon/firefly/services/ImageManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
 
82 82
 		if (Arr::get($params, 'fit', false)) {
83 83
 			// add callback functionality to retain maximal original image size
84
-			$image->fit($width, $height, function ($constraint) {
84
+			$image->fit($width, $height, function($constraint) {
85 85
 				$constraint->aspectRatio();
86 86
 				$constraint->upsize();
87 87
 			}, $params['fit']);
88 88
 		} elseif ($width || $height) {
89 89
 			$width = $width * $pd;
90 90
 			$height = $height * $pd;
91
-			$image->resize($width, $height, function ($constraint) {
91
+			$image->resize($width, $height, function($constraint) {
92 92
 				$constraint->aspectRatio();
93 93
 				$constraint->upsize();
94 94
 			});
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	{
135 135
 		$filter = Arr::get($params, 'filter', false);
136 136
 		if ($filter) {
137
-			$filters = explode(',',$filter);
137
+			$filters = explode(',', $filter);
138 138
 			if (in_array('greyscale', $filters, true)) {
139 139
 				$image->greyscale();
140 140
 			}
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 				$x = Arr::get($crop, 'x', null);
170 170
 				$y = Arr::get($crop, 'y', null);
171 171
 			}
172
-			if ($w == 0 && $h == 0 && $x == 0 && $y ==0) {
172
+			if ($w == 0 && $h == 0 && $x == 0 && $y == 0) {
173 173
 				return $image;
174 174
 			}
175 175
 			$image->crop($w, $h, $x, $y);
Please login to merge, or discard this patch.
neon/firefly/controllers/FileController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 		$id = $request->get('id');
38 38
 		if (!$firefly->fileManager->exists($id)) {
39 39
 			// show placeholder image - should be handled by image manager - controllers should not know
40
-			return neon()->response->sendFile(dirname(__DIR__) . '/assets/placeholder.jpg', 'No File', ['inline' => true]);
40
+			return neon()->response->sendFile(dirname(__DIR__).'/assets/placeholder.jpg', 'No File', ['inline' => true]);
41 41
 		}
42 42
 
43 43
 		// as the url is unique for a file we can be aggressive about caching
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 			return $firefly->fileManager->sendFile($id, (bool) $download);
56 56
 		} catch (\Exception $e) {
57 57
 			// if path unknown respond with a blank placeholder
58
-			return neon()->response->sendFile(dirname(__DIR__) . '/assets/placeholder.jpg', 'No File', ['inline' => true]);
58
+			return neon()->response->sendFile(dirname(__DIR__).'/assets/placeholder.jpg', 'No File', ['inline' => true]);
59 59
 		}
60 60
 	}
61 61
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 		$id = neon()->request->getRequired('id');
82 82
 
83 83
 		// create a unique request key - add v2 to force use of new cached version
84
-		$requestKey = neon()->request->absoluteUrl . 'v10';
84
+		$requestKey = neon()->request->absoluteUrl.'v10';
85 85
 
86 86
 		// see if we already have this in cache and the browser already has it too
87 87
 		// We want to remove the need to process images when ever possible
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 */
133 133
 	public function generatePublicFile($id, $imageContent)
134 134
 	{
135
-		$dir = substr($id,0, 3);
135
+		$dir = substr($id, 0, 3);
136 136
 		$publicDir = neon()->getAlias("@webroot/assets/firefly/$dir");
137 137
 		if (!file_exists($publicDir)) {
138 138
 			FileHelper::createDirectory($publicDir);
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 * Handle a request that can return a 304 not modified header
168 168
 	 * @param bool|string $cacheKey - default false - if cache key is specified
169 169
 	 */
170
-	public function handleNotModified($cacheKey=false)
170
+	public function handleNotModified($cacheKey = false)
171 171
 	{
172 172
 		$requestHeaders = neon()->request->headers;
173 173
 		$browserHasCache = (isset($requestHeaders['If-Modified-Since']) || isset($requestHeaders['If-None-Match']));
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	{
184 184
 		header($_SERVER['SERVER_PROTOCOL'].' 304 Not modified');
185 185
 		header('Cache-Control: private, max-age=30000000, immutable, only-if-cached');
186
-		header('Expires: ' . Carbon::now()->addYear(10)->toRfc1123String());
186
+		header('Expires: '.Carbon::now()->addYear(10)->toRfc1123String());
187 187
 		exit;
188 188
 	}
189 189
 
Please login to merge, or discard this patch.
neon/cms/controllers/RenderController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
 	 * slug it uses - without this property the canonical function will return the url of the first blog-post
83 83
 	 * (collection page) it finds.
84 84
 	 */
85
-	public function actionPage($nice_id, $slug='')
85
+	public function actionPage($nice_id, $slug = '')
86 86
 	{
87 87
 		\Neon::beginProfile('COBE::RENDER_ACTION', 'cobe');
88 88
 		$cms = $this->getCms();
89 89
 		$page = $cms->getPage();
90 90
 		// check the page with the nice_id exists
91
-		if (! $page->setById($nice_id)) {
91
+		if (!$page->setById($nice_id)) {
92 92
 			$this->pageNotFound();
93 93
 		}
94 94
 		//return neon()->view->injectHtml('');
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		}
104 104
 
105 105
 		// Don't display draft pages unless in edit mode.
106
-		if ($page->isStatusDraft() && ! $page->isInEditMode()) {
106
+		if ($page->isStatusDraft() && !$page->isInEditMode()) {
107 107
 			$this->pageNotFound();
108 108
 		}
109 109
 
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
 			->innerJoin(CmsPage::tableName(), 'cms_page.nice_id = cms_url.nice_id')
136 136
 			->where("status='PUBLISHED'")
137 137
 			->all()
138
-		)->reduce(function($carry, $url){
139
-			return $carry . "\t<url>\n\t\t<loc>" . url($url['url'], true) . "</loc>\n\t</url>" . "\n";
138
+		)->reduce(function($carry, $url) {
139
+			return $carry."\t<url>\n\t\t<loc>".url($url['url'], true)."</loc>\n\t</url>"."\n";
140 140
 		});
141 141
 		header('Content-Type:application/rss+xml');
142 142
 		echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
Please login to merge, or discard this patch.
neon/core/web/UrlManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 		if (strpos($url, '://') === false) {
29 29
 			$hostInfo = setting('cms', 'canonical', $urlManager->getHostInfo());
30 30
 			if (strncmp($url, '//', 2) === 0) {
31
-				$url = substr($hostInfo, 0, strpos($hostInfo, '://')) . ':' . $url;
31
+				$url = substr($hostInfo, 0, strpos($hostInfo, '://')).':'.$url;
32 32
 			} else {
33
-				$url = $hostInfo . $url;
33
+				$url = $hostInfo.$url;
34 34
 			}
35 35
 		}
36 36
 		return Url::ensureScheme($url, null);
Please login to merge, or discard this patch.
neon/cms/components/CmsUrlRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
 	 */
31 31
 	public function parseRequest($manager, $request)
32 32
 	{
33
-		$pathInfo = '/' . $request->getPathInfo();
33
+		$pathInfo = '/'.$request->getPathInfo();
34 34
 		$url = CmsUrl::find()->where(['url' => $pathInfo])->limit(1)->one();
35 35
 		// if the url is not in the url table then return false to continue processing other route rules
36 36
 		// typically in a neon setup the module/controller/action rule
37
-		if (! $url) return false;
37
+		if (!$url) return false;
38 38
 		// check if the url found represents a redirect
39 39
 		if ($url['redirect'] !== null) {
40 40
 			neon()->response->redirect($url['redirect'], 301)->send();
Please login to merge, or discard this patch.
neon/core/form/fields/el/SwitchInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	public function getComponentDetails()
41 41
 	{
42 42
 		return [
43
-			'name' => 'switch',  'icon' => 'fa fa-toggle-on', 'group' => 'element ui',
43
+			'name' => 'switch', 'icon' => 'fa fa-toggle-on', 'group' => 'element ui',
44 44
 		];
45 45
 	}
46 46
 
Please login to merge, or discard this patch.
neon/core/helpers/Html.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	public static function displayAsTags($tagsArray, $class = 'label label-info')
20 20
 	{
21 21
 		$out = '';
22
-		foreach($tagsArray as $tag) {
22
+		foreach ($tagsArray as $tag) {
23 23
 			$out .= "<span class=\"$class\">$tag</span>";
24 24
 		}
25 25
 		return $out;
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
 	 *  - specify $options['icon']
37 37
 	 * @return string Html for the custom button
38 38
 	 */
39
-	public static function buttonCustom($url, $text, array $options=[])
39
+	public static function buttonCustom($url, $text, array $options = [])
40 40
 	{
41
-		$options['class'] = 'btn '. Arr::get($options, 'class', '');
41
+		$options['class'] = 'btn '.Arr::get($options, 'class', '');
42 42
 		$icon = Arr::remove($options, 'icon', '');
43 43
 		return self::a("<i class=\"$icon\"></i> ".$text, $url, $options);
44 44
 	}
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
 	 * @param string $text - button text
51 51
 	 * @return string Html for an edit button
52 52
 	 */
53
-	public static function buttonEdit($url, $text='Edit', $options=[])
53
+	public static function buttonEdit($url, $text = 'Edit', $options = [])
54 54
 	{
55 55
 		$options['icon'] = 'fa fa-pencil';
56
-		$options['class'] = 'btn-default ' . Arr::get($options, 'class', '');
56
+		$options['class'] = 'btn-default '.Arr::get($options, 'class', '');
57 57
 		return self::buttonCustom($url, $text, $options);
58 58
 	}
59 59
 
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
 	 * @see \yii\helpers\Url::to
66 66
 	 * @return string Html
67 67
 	 */
68
-	public static function buttonDelete($url, $text='Delete', $options=[])
68
+	public static function buttonDelete($url, $text = 'Delete', $options = [])
69 69
 	{
70 70
 		$options['icon'] = 'fa fa-trash';
71
-		$options['class'] =  'btn-danger ' . Arr::get($options, 'class', '');
71
+		$options['class'] = 'btn-danger '.Arr::get($options, 'class', '');
72 72
 		return self::buttonCustom($url, $text, $options);
73 73
 	}
74 74
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 * @see \yii\helpers\Url::to
81 81
 	 * @return string Html
82 82
 	 */
83
-	public static function buttonAdd($url, $text='Add', $options=[])
83
+	public static function buttonAdd($url, $text = 'Add', $options = [])
84 84
 	{
85 85
 		$options['icon'] = 'fa fa-plus';
86 86
 		$options['class'] = 'btn-primary btn-add';
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 * @param string $text button text
95 95
 	 * @return string Html
96 96
 	 */
97
-	public static function buttonCancel($url='', $text='Cancel', $options=[])
97
+	public static function buttonCancel($url = '', $text = 'Cancel', $options = [])
98 98
 	{
99 99
 		$options['icon'] = 'fa fa-arrow-left';
100 100
 		$options['class'] = 'btn-default btn-cancel';
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	public static function checkbox($name, $checked = false, $options = [])
131 131
 	{
132 132
 		$checkbox = parent::checkbox($name, $checked, $options);
133
-		return '<div class="checkbox">' . $checkbox . '</div>';
133
+		return '<div class="checkbox">'.$checkbox.'</div>';
134 134
 	}
135 135
 
136 136
 	/**
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 	public static function radio($name, $checked = false, $options = [])
140 140
 	{
141 141
 		$radio = parent::radio($name, $checked, $options);
142
-		return '<div class="radio">' . $radio . '</div>';
142
+		return '<div class="radio">'.$radio.'</div>';
143 143
 	}
144 144
 
145 145
 	/**
@@ -239,13 +239,13 @@  discard block
 block discarded – undo
239 239
 	protected static function processTags($openingTags, &$tagsProcessed)
240 240
 	{
241 241
 		// append the closing tags to the list and add a comma for splitting later
242
-		$tagsStr = str_replace('>','>,',($openingTags.str_replace('<','</',$openingTags)));
242
+		$tagsStr = str_replace('>', '>,', ($openingTags.str_replace('<', '</', $openingTags)));
243 243
 		// create the replacement code with a highly unlikely set of strings
244 244
 		$replaceStr = str_replace(['</', '<', '/>', '>'], ['__NEWICON_CLOSELT__', '__NEWICON_LT__', '__NEWICON_CLOSERT__', '__NEWICON_RT__'], $tagsStr);
245 245
 
246 246
 		// now create the replacement and returned tags
247
-		$replaceTags = explode(',', substr($replaceStr,0,-1)); // ignore trailing comma
248
-		$returnTags = explode(',', substr($tagsStr,0,-1)); // ignore trailing comma
247
+		$replaceTags = explode(',', substr($replaceStr, 0, -1)); // ignore trailing comma
248
+		$returnTags = explode(',', substr($tagsStr, 0, -1)); // ignore trailing comma
249 249
 		$tagsProcessed[$openingTags] = ['replace'=>$replaceTags, 'return'=>$returnTags];
250 250
 	}
251 251
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 	 * @param string $empty - what to show if the field is empty
259 259
 	 * @return string html
260 260
 	 */
261
-	public static function highlight($search, $html, $empty='')
261
+	public static function highlight($search, $html, $empty = '')
262 262
 	{
263 263
 		if ($html === null)
264 264
 			return neon()->formatter->nullDisplay;
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 				// loadHtml seems to ignore the LIBXML_ERR_NONE setting
281 281
 				// we don;t care if we are not given perfectly formed html
282 282
 				// Even if we have serious issues in the html `$dom->saveHtml` makes a good expected effort
283
-				@$dom->loadHTML('<?xml encoding="utf-8" ?>' . $html, LIBXML_HTML_NOIMPLIED + LIBXML_HTML_NODEFDTD + LIBXML_NONET + LIBXML_ERR_NONE);
283
+				@$dom->loadHTML('<?xml encoding="utf-8" ?>'.$html, LIBXML_HTML_NOIMPLIED + LIBXML_HTML_NODEFDTD + LIBXML_NONET + LIBXML_ERR_NONE);
284 284
 				$xpath = new DOMXPath($dom);
285 285
 				$s = htmlentities($s);
286 286
 				$findStack = [];
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
 					// appendXml is useless and will break easily when exposed to characters
291 291
 					// preg_replace is a million times more robust....
292 292
 					// So keep the dom parser happy by replacing its internal text with an md5 key
293
-					$replace = preg_replace('/(' . preg_quote($s) . ')/i', '<span class="neonSearchHighlight">$1</span>', htmlentities($node->nodeValue));
294
-					$key = '{[' . md5($replace) . ']}';
293
+					$replace = preg_replace('/('.preg_quote($s).')/i', '<span class="neonSearchHighlight">$1</span>', htmlentities($node->nodeValue));
294
+					$key = '{['.md5($replace).']}';
295 295
 					$findStack[$key] = $replace;
296 296
 					$f->appendXML($key);
297 297
 					$node->parentNode->replaceChild($f, $node);
Please login to merge, or discard this patch.
neon/core/grid/column/Column.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 		return $this->_width;
174 174
 	}
175 175
 
176
-	public function __construct($config=[])
176
+	public function __construct($config = [])
177 177
 	{
178 178
 		parent::__construct($config);
179 179
 		if (!isset($config['key'])) {
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 	/**
274 274
 	 * @inheritDoc
275 275
 	 */
276
-	public function setIsSortable($sortable=true)
276
+	public function setIsSortable($sortable = true)
277 277
 	{
278 278
 		$this->_sortable = $sortable;
279 279
 		return $this;
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 		return $this->_sortable;
288 288
 	}
289 289
 
290
-	public function setAsIndex($bool=true)
290
+	public function setAsIndex($bool = true)
291 291
 	{
292 292
 		$this->grid->setIndexedByColumn($this->key);
293 293
 		// thi is a bit gnarly but tests for yii Active record data providers specifically
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 			return $this->_dataCellContentFunction;
356 356
 		}
357 357
 		// check for convention
358
-		$functionName = 'render' . $this->key;
358
+		$functionName = 'render'.$this->key;
359 359
 		if (method_exists($this->grid, $functionName) && $functionName !== 'renderfile') {
360 360
 			return $functionName;
361 361
 		}
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 	/**
427 427
 	 * @inheritDoc
428 428
 	 */
429
-	public function setDbField($field){
429
+	public function setDbField($field) {
430 430
 		$this->_dbField = $field;
431 431
 		return $this;
432 432
 	}
@@ -434,8 +434,8 @@  discard block
 block discarded – undo
434 434
 	/**
435 435
 	 * @inheritDoc
436 436
 	 */
437
-	public function getDbField(){
438
-		if ($this->_dbField === null){
437
+	public function getDbField() {
438
+		if ($this->_dbField === null) {
439 439
 			// set to be the key
440 440
 			$this->_dbField = $this->key;
441 441
 		}
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 	/**
453 453
 	 * @inheritDoc
454 454
 	 */
455
-	public function setDbSortField($field){
455
+	public function setDbSortField($field) {
456 456
 		$this->_dbSortField = $field;
457 457
 		return $this;
458 458
 	}
@@ -460,8 +460,8 @@  discard block
 block discarded – undo
460 460
 	/**
461 461
 	 * @inheritDoc
462 462
 	 */
463
-	public function getDbSortField(){
464
-		if ($this->_dbSortField === null){
463
+	public function getDbSortField() {
464
+		if ($this->_dbSortField === null) {
465 465
 			// set to be the key
466 466
 			$this->_dbSortField = $this->dbField;
467 467
 		}
@@ -510,9 +510,9 @@  discard block
 block discarded – undo
510 510
 		if ($this->grid->hasSort($this->key)) {
511 511
 			$sort = $this->grid->hasSortDescending() ? ' - ' : ' + ';
512 512
 		}
513
-		$sortParam = $this->grid->hasSortDescending() ? $this->key : '-' . $this->key;
513
+		$sortParam = $this->grid->hasSortDescending() ? $this->key : '-'.$this->key;
514 514
 		$url = neon()->getUrlManager()->createUrl([\Yii::$app->controller->getRoute(), $this->grid->id => ['sort' => $sortParam]]);
515
-		return Html::a($this->getTitle() . $sort, $url, ['data-sort'=>$sortParam]);
515
+		return Html::a($this->getTitle().$sort, $url, ['data-sort'=>$sortParam]);
516 516
 	}
517 517
 
518 518
 	/**
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 	public function getFilterField()
567 567
 	{
568 568
 		$field = $this->getBaseFilterField();
569
-		foreach($this->filterFieldConfig as $key => $value)
569
+		foreach ($this->filterFieldConfig as $key => $value)
570 570
 			$field[$key] = $value;
571 571
 		return $field;
572 572
 	}
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
 
583 583
 	public function setMemberConfig($config)
584 584
 	{
585
-		foreach($config as $key => $value) {
585
+		foreach ($config as $key => $value) {
586 586
 			if (isset($this->member->$key))
587 587
 				$this->member->$key = $value;
588 588
 		}
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 	/**
593 593
 	 * @inheritDoc
594 594
 	 */
595
-	public function getCellData($row, $noValue='-')
595
+	public function getCellData($row, $noValue = '-')
596 596
 	{
597 597
 		$data = null;
598 598
 		$key = $this->getKey();
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
 			if (is_array($display)) {
644 644
 				$display = implode(',', $display);
645 645
 			}
646
-			return "<span title=\"".str_replace('"',"'", html_entity_decode(strip_tags($display)))."\">$out</span>";
646
+			return "<span title=\"".str_replace('"', "'", html_entity_decode(strip_tags($display)))."\">$out</span>";
647 647
 		}
648 648
 		return $this->getCellData($model);
649 649
 	}
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
 	 */
654 654
 	public function getFieldName()
655 655
 	{
656
-		return $this->getGrid()->getId() . '[' . $this->key . '][search]';
656
+		return $this->getGrid()->getId().'['.$this->key.'][search]';
657 657
 	}
658 658
 
659 659
 	/**
@@ -727,12 +727,12 @@  discard block
 block discarded – undo
727 727
 		throw new \Exception('Unable to call a valid search function');
728 728
 	}
729 729
 
730
-	protected $_actions =[];
730
+	protected $_actions = [];
731 731
 
732 732
 	/**
733 733
 	 * @inheritDoc
734 734
 	 */
735
-	public function addRowAction($key, $text, $linkOptions=[])
735
+	public function addRowAction($key, $text, $linkOptions = [])
736 736
 	{
737 737
 		$linkOptions['text'] = $text;
738 738
 		$linkOptions['data-action'] = $key;
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 		}
759 759
 		$out = '<div class="neonGrid_rowActions">';
760 760
 		$i = 0;
761
-		foreach($this->_actions as $actionKey => $linkOptions) {
761
+		foreach ($this->_actions as $actionKey => $linkOptions) {
762 762
 			if ($i > 0) $out .= ' | ';
763 763
 			if (isset($linkOptions['function'])) {
764 764
 				$func = $linkOptions['function'];
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
 	 * @param array $arguments of arguments
786 786
 	 * @return mixed
787 787
 	 */
788
-	public function callFunction($function, $arguments=[])
788
+	public function callFunction($function, $arguments = [])
789 789
 	{
790 790
 		if (is_string($function)) {
791 791
 			return call_user_func_array([$this->grid, $function], $arguments);
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 			if (count($columnData)) {
811 811
 				$this->member->dataMapFilters = ['uuid' => $columnData];
812 812
 			}
813
-			foreach($models as $model) {
813
+			foreach ($models as $model) {
814 814
 				$this->member->makeMapRequest($this->getCellData($model, null));
815 815
 			}
816 816
 		}
Please login to merge, or discard this patch.