Completed
Push — dev ( 1806ac )
by Stone
12s
created
Core/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $specialNamespace = array_shift($url);
68 68
 
69 69
             //making sure we have a single backslash
70
-            $specialNamespace = rtrim($specialNamespace, '\\') . '\\';
70
+            $specialNamespace = rtrim($specialNamespace, '\\').'\\';
71 71
 
72 72
             //capitalize the special namespace
73 73
             $specialNamespace = $this->convertToStudlyCaps($specialNamespace);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     {
135 135
 
136 136
         //try to create the controller object
137
-        $fullControllerName = $this->currentNamespace . $this->currentController;
137
+        $fullControllerName = $this->currentNamespace.$this->currentController;
138 138
 
139 139
         //make sure the class exists before continuing
140 140
         if (!class_exists($fullControllerName)) {
Please login to merge, or discard this patch.
Core/Model.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
         if ($table === null) {
117 117
             $reflect = new \ReflectionClass(get_class($this));
118 118
             $table = $reflect->getShortName(); //this is to only get the model name, otherwise we get the full namespace
119
-            $table = $table . 's'; //adding the s since the table should be plural. Might be some special case where the plural isn't just with an s
119
+            $table = $table.'s'; //adding the s since the table should be plural. Might be some special case where the plural isn't just with an s
120 120
             $table = strtolower($table); //the database names are in lowercase
121 121
         }
122 122
 
123
-        if(Config::TABLE_PREFIX != '')
123
+        if (Config::TABLE_PREFIX != '')
124 124
         {
125 125
             $table = Config::TABLE_PREFIX.'_'.$table;
126 126
         }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         }
139 139
 
140 140
         //if we are here, then table doesn't exist, check for view
141
-        $view = 'v_' . $table;
141
+        $view = 'v_'.$table;
142 142
         $stmt->bindValue(':table', $view, PDO::PARAM_STR);
143 143
         $stmt->execute();
144 144
         $exists = $stmt->rowCount() > 0; //will return 1 if table exists or 0 if non existant
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     protected function getRowById($rowId, $table = ''): array
218 218
     {
219 219
         $tableName = $this->getTable($table);
220
-        $idName = 'id' . $tableName;
220
+        $idName = 'id'.$tableName;
221 221
         $sql = "SELECT * FROM $tableName WHERE $idName = :rowId";
222 222
         $this->query($sql);
223 223
         $this->bind(':rowId', $rowId);
Please login to merge, or discard this patch.