Completed
Push — master ( 61ab55...c11597 )
by Jared
02:12
created
src/Cacheable.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 
38 38
         if (self::$cachePool) {
39 39
             // First, attempts to load the model from the caching layer.
40
-             // If that fails, then attempts to load the model from the
41
-             // database layer.
40
+                // If that fails, then attempts to load the model from the
41
+                // database layer.
42 42
             $item = $this->getCacheItem();
43 43
             $values = $item->get();
44 44
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         // cache the local properties
164 164
         $this->getCacheItem()
165
-             ->set($this->_values, $this->getCacheTTL());
165
+                ->set($this->_values, $this->getCacheTTL());
166 166
 
167 167
         return $this;
168 168
     }
Please login to merge, or discard this patch.
src/Driver/DatabaseDriver.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 
46 46
         try {
47 47
             return $db->insert($values)
48
-                      ->into($tablename)
49
-                      ->execute() instanceof PDOStatement;
48
+                        ->into($tablename)
49
+                        ->execute() instanceof PDOStatement;
50 50
         } catch (PDOException $original) {
51 51
             $e = new DriverException('An error occurred in the database driver when creating the '.$model::modelName().': '.$original->getMessage());
52 52
             $e->setException($original);
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
 
75 75
         try {
76 76
             $row = $db->select('*')
77
-                      ->from($tablename)
78
-                      ->where($model->ids())
79
-                      ->one();
77
+                        ->from($tablename)
78
+                        ->where($model->ids())
79
+                        ->one();
80 80
         } catch (PDOException $original) {
81 81
             $e = new DriverException('An error occurred in the database driver when loading an instance of '.$model::modelName().': '.$original->getMessage());
82 82
             $e->setException($original);
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
 
103 103
         try {
104 104
             return $db->update($tablename)
105
-                      ->values($values)
106
-                      ->where($model->ids())
107
-                      ->execute() instanceof PDOStatement;
105
+                        ->values($values)
106
+                        ->where($model->ids())
107
+                        ->execute() instanceof PDOStatement;
108 108
         } catch (PDOException $original) {
109 109
             $e = new DriverException('An error occurred in the database driver when updating the '.$model::modelName().': '.$original->getMessage());
110 110
             $e->setException($original);
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
 
120 120
         try {
121 121
             return $db->delete($tablename)
122
-                      ->where($model->ids())
123
-                      ->execute() instanceof PDOStatement;
122
+                        ->where($model->ids())
123
+                        ->execute() instanceof PDOStatement;
124 124
         } catch (PDOException $original) {
125 125
             $e = new DriverException('An error occurred in the database driver while deleting the '.$model::modelName().': '.$original->getMessage());
126 126
             $e->setException($original);
Please login to merge, or discard this patch.