src/NukaCode/Bootstrap/Filesystem/Less/Variables.php
public function updateEntry($package)
	{
		$this->verifyCommand($package);

		$lines = file($this->less);

		// Set the new colors
		$lines[0] = '@bg:                ' . $package['bg'] . ";\n";
		$lines[1] = '@gray:              ' . $package['gray'] . ";\n";
		$lines[2] = '@brand-primary:     ' . $package['primary'] . ";\n";
		$lines[3] = '@brand-info:        ' . $package['info'] . ";\n";
		$lines[4] = '@brand-success:     ' . $package['success'] . ";\n";
		$lines[5] = '@brand-warning:     ' . $package['warning'] . ";\n";
		$lines[6] = '@brand-danger:      ' . $package['danger'] . ";\n";
		$lines[7] = '@menuColor:         ' . $package['menu'] . ";\n";

		$this->file->delete($this->less);
		$this->file->put($this->less, implode($lines));
	}
public function updateEntry($package)
	{
		$this->verifyCommand($package);

		$lines = file($this->less);

		// Set the new colors
		$lines[0] = '@bg:                ' . $package['bg'] . ";\n";
		$lines[1] = '@gray:              ' . $package['gray'] . ";\n";
		$lines[2] = '@brand-primary:     ' . $package['primary'] . ";\n";
		$lines[3] = '@brand-info:        ' . $package['info'] . ";\n";
		$lines[4] = '@brand-success:     ' . $package['success'] . ";\n";
		$lines[5] = '@brand-warning:     ' . $package['warning'] . ";\n";
		$lines[6] = '@brand-danger:      ' . $package['danger'] . ";\n";
		$lines[7] = '@menuColor:         ' . $package['menu'] . ";\n";

		$this->file->delete($this->less);
		$this->file->put($this->less, implode($lines));
	}
public function updateEntry ( $ package ) { $ this -> verifyCommand ( $ package ) ; $ lines = file ( $ this -> less ) ; // Set the new colors $ lines [ 0 ] = '@bg:                ' . $ package [ 'bg' ] . ";\n" ; $ lines [ 1 ] = '@gray:              ' . $ package [ 'gray' ] . ";\n" ; $ lines [ 2 ] = '@brand-primary:     ' . $ package [ 'primary' ] . ";\n" ; $ lines [ 3 ] = '@brand-info:        ' . $ package [ 'info' ] . ";\n" ; $ lines [ 4 ] = '@brand-success:     ' . $ package [ 'success' ] . ";\n" ; $ lines [ 5 ] = '@brand-warning:     ' . $ package [ 'warning' ] . ";\n" ; $ lines [ 6 ] = '@brand-danger:      ' . $ package [ 'danger' ] . ";\n" ; $ lines [ 7 ] = '@menuColor:         ' . $ package [ 'menu' ] . ";\n" ; $ this -> file -> delete ( $ this -> less ) ; $ this -> file -> put ( $ this -> less , implode ( $ lines ) ) ; }
Update the colors.less file to persist the changes

@param $package
Update the colors . less file to persist the changes