浏览代码

Correct small typo in header (#5092)

* Correct small typo in header
from 7 years ago

* Delete 2 unused files
Joan Miquel 6 年之前
父节点
当前提交
e225534dfe

+ 1 - 1
frameworks/PHP/kumbiaphp/bench/app/controllers/db_controller.php

@@ -5,7 +5,7 @@ class DbController extends AppController
     protected function before_filter()
     {
         View::select(null, null);
-        header('Content-type: application/json');
+        header('Content-Type: application/json');
     }
 
     public function index()

+ 1 - 1
frameworks/PHP/kumbiaphp/bench/app/controllers/index_controller.php

@@ -10,7 +10,7 @@ class IndexController extends AppController
     public function index()
     {
         View::select(null, null);
-        header('Content-type: text/plain');
+        header('Content-Type: text/plain');
         echo 'Hello, World!';
     }
 }

+ 1 - 1
frameworks/PHP/kumbiaphp/bench/app/controllers/json_controller.php

@@ -6,7 +6,7 @@ class JsonController extends AppController
     public function index()
     {
         View::select(null, null);
-        header('Content-type: application/json');
+        header('Content-Type: application/json');
         echo json_encode(['message' => 'Hello, World!']);
     }
 }

+ 1 - 1
frameworks/PHP/kumbiaphp/bench/app/controllers/raw_controller.php

@@ -7,7 +7,7 @@ class RawController extends AppController
     protected function before_filter()
     {
         View::select(null, null);
-        header('Content-type: application/json');
+        header('Content-Type: application/json');
 
         $this->pdo = new PDO('mysql:host=tfb-database;dbname=hello_world', 'benchmarkdbuser', 'benchmarkdbpass', [
             PDO::ATTR_PERSISTENT => true

+ 0 - 2
frameworks/PHP/kumbiaphp/bench/app/views/_shared/templates/hello.phtml

@@ -1,2 +0,0 @@
-<?php header('Content-type: text/plain') ?>
-Hello, World!

+ 0 - 4
frameworks/PHP/kumbiaphp/bench/app/views/_shared/templates/json.phtml

@@ -1,4 +0,0 @@
-<?php
-/*mime type para el contenido*/
-header('Content-type: application/json');
-echo json_encode($data);

+ 1 - 1
frameworks/PHP/php/dborm.php

@@ -1,6 +1,6 @@
 <?php
 // Set content type
-header('Content-type: application/json');
+header('Content-Type: application/json');
 
 // Database connection
 // http://www.php.net/manual/en/ref.pdo-mysql.php

+ 1 - 1
frameworks/PHP/php/dbquery.php

@@ -1,5 +1,5 @@
 <?php
-header('Content-type: application/json');
+header('Content-Type: application/json');
 
 // Database connection
 // http://www.php.net/manual/en/ref.pdo-mysql.php

+ 1 - 1
frameworks/PHP/php/dbraw.php

@@ -1,5 +1,5 @@
 <?php
-header('Content-type: application/json');
+header('Content-Type: application/json');
 
 // Database connection
 // http://www.php.net/manual/en/ref.pdo-mysql.php

+ 1 - 1
frameworks/PHP/php/eloquent/db-eloquent.php

@@ -1,6 +1,6 @@
 <?php
 // Set content type
-header('Content-type: application/json');
+header('Content-Type: application/json');
 
 require __DIR__.'/boot-eloquent.php';
 

+ 1 - 1
frameworks/PHP/php/eloquent/db-laravel-query-builder.php

@@ -1,6 +1,6 @@
 <?php
 // Set content type
-header('Content-type: application/json');
+header('Content-Type: application/json');
 
 require __DIR__.'/init-capsule.php';
 

+ 1 - 1
frameworks/PHP/php/eloquent/update-eloquent.php

@@ -25,5 +25,5 @@ while ($query_count--) {
 
 // Use the PHP standard JSON encoder.
 // http://www.php.net/manual/en/function.json-encode.php
-header('Content-type: application/json');
+header('Content-Type: application/json');
 echo json_encode($arr);

+ 1 - 1
frameworks/PHP/php/json.php

@@ -1,6 +1,6 @@
 <?php
 // Set content type
-header('Content-type: application/json');
+header('Content-Type: application/json');
 
 // Use the PHP standard JSON encoder.
 // http://www.php.net/manual/en/function.json-encode.php

+ 1 - 1
frameworks/PHP/php/plaintext.php

@@ -2,6 +2,6 @@
 // Plaintext Test
 
 // Set content type
-header('Content-type: text/plain');
+header('Content-Type: text/plain');
 
 echo 'Hello, World!';

+ 1 - 1
frameworks/PHP/php/updateraw.php

@@ -1,5 +1,5 @@
 <?php
-header('Content-type: application/json');
+header('Content-Type: application/json');
 
 // Database connection
 // http://www.php.net/manual/en/ref.pdo-mysql.php

+ 1 - 1
frameworks/PHP/ubiquity/app/controllers/Db.php

@@ -10,7 +10,7 @@ use models\World;
 class Db extends \Ubiquity\controllers\Controller {
 
 	public function initialize() {
-		\header('Content-type: application/json');
+		\header('Content-Type: application/json');
 		\Ubiquity\cache\CacheManager::startProd(\Ubiquity\controllers\Startup::$config);
 		DAO::setModelDatabase(World::class);
 	}