Some sweeping syntax changes for consistency:

(! foo) changed to ( ! foo)
|| changed to OR
changed newline standardization code in various places from preg_replace to str_replace
diff --git a/system/scaffolding/Scaffolding.php b/system/scaffolding/Scaffolding.php
index 807a3d7..89a9ed4 100644
--- a/system/scaffolding/Scaffolding.php
+++ b/system/scaffolding/Scaffolding.php
@@ -1,4 +1,4 @@
-<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

+<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 /**

  * CodeIgniter

  *

@@ -97,7 +97,7 @@
 	function add()

 	{	

 		$data = array(

-						'title'	=>  (! isset($this->lang['scaff_add'])) ? 'Add Data' : $this->lang['scaff_add'],

+						'title'	=>  ( ! isset($this->lang['scaff_add'])) ? 'Add Data' : $this->lang['scaff_add'],

 						'fields' => $this->CI->db->field_data($this->current_table),

 						'action' => $this->base_uri.'/insert'

 					);

@@ -172,7 +172,7 @@
 								);	

 

 		$data = array(

-						'title'	=>  (! isset($this->lang['scaff_view'])) ? 'View Data' : $this->lang['scaff_view'],

+						'title'	=>  ( ! isset($this->lang['scaff_view'])) ? 'View Data' : $this->lang['scaff_view'],

 						'query'		=> $query,

 						'fields'	=> $fields,

 						'primary'	=> $primary,

@@ -207,7 +207,7 @@
 		$query = $this->CI->db->get_where($this->current_table, array($primary => $id));

 

 		$data = array(

-						'title'	=>  (! isset($this->lang['scaff_edit'])) ? 'Edit Data' : $this->lang['scaff_edit'],

+						'title'	=>  ( ! isset($this->lang['scaff_edit'])) ? 'Edit Data' : $this->lang['scaff_edit'],

 						'fields'	=> $query->field_data(),

 						'query'		=> $query->row(),

 						'action'	=> $this->base_uri.'/update/'.$this->CI->uri->segment(4)

@@ -245,7 +245,7 @@
 	 */

 	function delete()

 	{

-		if (! isset($this->lang['scaff_del_confirm']))

+		if ( ! isset($this->lang['scaff_del_confirm']))

 		{

 			$message = 'Are you sure you want to delete the following row: '.$this->CI->uri->segment(4);

 		}

@@ -255,10 +255,10 @@
 		}

 		

 		$data = array(

-						'title'		=> (! isset($this->lang['scaff_delete'])) ? 'Delete Data' : $this->lang['scaff_delete'],

+						'title'		=> ( ! isset($this->lang['scaff_delete'])) ? 'Delete Data' : $this->lang['scaff_delete'],

 						'message'	=> $message,

-						'no'		=> anchor(array($this->base_uri, 'view'), (! isset($this->lang['scaff_no'])) ? 'No' : $this->lang['scaff_no']),

-						'yes'		=> anchor(array($this->base_uri, 'do_delete', $this->CI->uri->segment(4)), (! isset($this->lang['scaff_yes'])) ? 'Yes' : $this->lang['scaff_yes'])

+						'no'		=> anchor(array($this->base_uri, 'view'), ( ! isset($this->lang['scaff_no'])) ? 'No' : $this->lang['scaff_no']),

+						'yes'		=> anchor(array($this->base_uri, 'do_delete', $this->CI->uri->segment(4)), ( ! isset($this->lang['scaff_yes'])) ? 'Yes' : $this->lang['scaff_yes'])

 					);

 	

 		$this->CI->load->view('delete', $data);

@@ -286,6 +286,6 @@
 	}

 

 }

-
-/* End of file Scaffolding.php */
+

+/* End of file Scaffolding.php */

 /* Location: ./system/scaffolding/Scaffolding.php */
\ No newline at end of file